Tweak Qt strings to be more translation friendly

This commit is contained in:
JosJuice
2018-03-04 19:08:57 +01:00
parent a436c6182b
commit 45040f00c6
6 changed files with 73 additions and 53 deletions

View File

@ -93,9 +93,9 @@ QGroupBox* NewPatchDialog::CreateEntry(int index)
auto* type_layout = new QHBoxLayout;
auto* remove = new QPushButton(tr("Remove"));
auto* byte = new QRadioButton(tr("byte"));
auto* word = new QRadioButton(tr("word"));
auto* dword = new QRadioButton(tr("dword"));
auto* byte = new QRadioButton(tr("8-bit"));
auto* word = new QRadioButton(tr("16-bit"));
auto* dword = new QRadioButton(tr("32-bit"));
type_layout->addWidget(byte);
type_layout->addWidget(word);

View File

@ -87,7 +87,11 @@ void PatchesWidget::OnEdit()
auto patch = m_patches[m_list->row(item)];
if (!patch.user_defined)
patch.name += tr(" (Copy)").toStdString();
{
// i18n: If there is a pre-defined patch with the name %1 and the user wants to edit it,
// a copy of it gets created with this name
patch.name = tr("%1 (Copy)").arg(QString::fromStdString(patch.name)).toStdString();
}
if (NewPatchDialog(patch).exec())
{