Qt: fix some translation nitpicks

This commit is contained in:
Megamouse 2020-04-06 17:54:33 +02:00
parent 133e897c8b
commit e6a6d7e9bc
5 changed files with 14 additions and 14 deletions

View File

@ -62,7 +62,7 @@ debugger_frame::debugger_frame(std::shared_ptr<gui_settings> settings, QWidget *
m_choice_units->setMaximumWidth(500);
m_choice_units->setEditable(true);
m_choice_units->setInsertPolicy(QComboBox::NoInsert);
m_choice_units->lineEdit()->setPlaceholderText("Choose a thread");
m_choice_units->lineEdit()->setPlaceholderText(tr("Choose a thread"));
m_choice_units->completer()->setCompletionMode(QCompleter::PopupCompletion);
m_choice_units->completer()->setMaxVisibleItems(30);
m_choice_units->completer()->setFilterMode(Qt::MatchContains);

View File

@ -1549,7 +1549,7 @@
<item>
<widget class="QLabel" name="l_description">
<property name="text">
<string>This text should be replaced by an actual description.&lt;br/&gt;&lt;br/&gt;</string>
<string notr="true">This text should be replaced by an actual description.&lt;br/&gt;&lt;br/&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>

View File

@ -123,7 +123,7 @@ void save_manager_dialog::Init(std::string dir)
// Bottom bar
int icon_size = m_gui_settings->GetValue(gui::sd_icon_size).toInt();
m_icon_size = QSize(icon_size, icon_size);
QLabel* label_icon_size = new QLabel("Icon size:", this);
QLabel* label_icon_size = new QLabel(tr("Icon size:"), this);
QSlider* slider_icon_size = new QSlider(Qt::Horizontal, this);
slider_icon_size->setMinimum(60);
slider_icon_size->setMaximum(225);

View File

@ -1717,13 +1717,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="accuratePPUfma">
<property name="text">
<string>Accurate PPU FMA</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="accuratePPUfma">
<property name="text">
<string>Accurate PPU FMA</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="silenceAllLogs">
<property name="text">
@ -2133,7 +2133,7 @@
<string>Point your mouse at an option to display a description in here.
</string>
</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
@ -2411,7 +2411,7 @@
<item>
<widget class="QLabel" name="label_game_window_title_format">
<property name="text">
<string>FPS: 60 | Renderer | Version | Game [ID]</string>
<string notr="true">FPS: 60 | Renderer | Version | Game [ID]</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>

View File

@ -756,7 +756,7 @@ void trophy_manager_dialog::PopulateGameTable()
const int all_trophies = m_trophies_db[i]->trop_usr->GetTrophiesCount();
const int unlocked_trophies = m_trophies_db[i]->trop_usr->GetUnlockedTrophiesCount();
const int percentage = 100 * unlocked_trophies / all_trophies;
const QString progress = QString("%0% (%1/%2)").arg(percentage).arg(unlocked_trophies).arg(all_trophies);
const QString progress = tr("%0% (%1/%2)").arg(percentage).arg(unlocked_trophies).arg(all_trophies);
const QString name = qstr(m_trophies_db[i]->game_name).simplified();
custom_table_widget_item* icon_item = new custom_table_widget_item;
@ -789,7 +789,7 @@ void trophy_manager_dialog::PopulateTrophyTable()
const int unlocked_trophies = data->trop_usr->GetUnlockedTrophiesCount();
const int percentage = 100 * unlocked_trophies / all_trophies;
m_game_progress->setText(QString("Progress: %1% (%2/%3)").arg(percentage).arg(unlocked_trophies).arg(all_trophies));
m_game_progress->setText(tr("Progress: %1% (%2/%3)").arg(percentage).arg(unlocked_trophies).arg(all_trophies));
m_trophy_table->clearContents();
m_trophy_table->setRowCount(all_trophies);