summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2024-04-20 16:26:53 +0200
committerJosJuice <josjuice@gmail.com>2024-04-20 23:02:46 +0200
commit83b280d9032289d7e385d35a263ccbbe0ed29a98 (patch)
tree22ae36b3397bd1ae4512ccdb5c4117f43e0a822d /Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
parent017f72f43e6250697f1983c8ab6b692d0180d26c (diff)
i18n: Add comments and improve source strings
Diffstat (limited to 'Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp b/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
index a22c540e2e..e4c428684f 100644
--- a/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
+++ b/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
@@ -35,6 +35,7 @@ static QString s_last_figure_path;
InfinityBaseWindow::InfinityBaseWindow(QWidget* parent) : QWidget(parent)
{
+ // i18n: Window for managing Disney Infinity figures
setWindowTitle(tr("Infinity Manager"));
setObjectName(QStringLiteral("infinity_manager"));
setMinimumSize(QSize(700, 200));
@@ -164,7 +165,7 @@ void InfinityBaseWindow::LoadFigurePath(u8 slot, const QString& path)
{
QMessageBox::warning(
this, tr("Failed to open the Infinity file!"),
- tr("Failed to open the Infinity file(%1)!\nFile may already be in use on the base.")
+ tr("Failed to open the Infinity file:\n%1\n\nThe file may already be in use on the base.")
.arg(path),
QMessageBox::Ok);
return;
@@ -172,9 +173,10 @@ void InfinityBaseWindow::LoadFigurePath(u8 slot, const QString& path)
std::array<u8, IOS::HLE::USB::INFINITY_NUM_BLOCKS * IOS::HLE::USB::INFINITY_BLOCK_SIZE> file_data;
if (!inf_file.ReadBytes(file_data.data(), file_data.size()))
{
- QMessageBox::warning(this, tr("Failed to read the Infinity file!"),
- tr("Failed to read the Infinity file(%1)!\nFile was too small.").arg(path),
- QMessageBox::Ok);
+ QMessageBox::warning(
+ this, tr("Failed to read the Infinity file!"),
+ tr("Failed to read the Infinity file(%1):\n%1\n\nThe file was too small.").arg(path),
+ QMessageBox::Ok);
return;
}
@@ -274,6 +276,7 @@ CreateFigureDialog::CreateFigureDialog(QWidget* parent, u8 slot) : QDialog(paren
}
else
{
+ // i18n: This is used to create a file name. The string must end in ".bin".
QString str = tr("Unknown(%1).bin");
predef_name += str.arg(char_number);
}
@@ -289,7 +292,7 @@ CreateFigureDialog::CreateFigureDialog(QWidget* parent, u8 slot) : QDialog(paren
{
QMessageBox::warning(
this, tr("Failed to create Infinity file"),
- tr("Blank figure creation failed at:\n%1, try again with a different character")
+ tr("Blank figure creation failed at:\n%1\n\nTry again with a different character.")
.arg(m_file_path),
QMessageBox::Ok);
return;