summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-04-20 23:34:32 +0200
committerGitHub <noreply@github.com>2024-04-20 23:34:32 +0200
commitd3cf35019c0a201f201f2a80bf4354034a944dd6 (patch)
tree7322f8b9656ae3cb6b2a77bc453a608f6ef7f36d /Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
parenta46ffc5d08f791d057ccafa6a2f50935d017cea3 (diff)
parent83b280d9032289d7e385d35a263ccbbe0ed29a98 (diff)
Merge pull request #12726 from JosJuice/i18n-2024-04-20
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;