mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
Qt: Fix macro button display
This commit is contained in:
parent
7e07d2feb8
commit
539b406c95
|
@ -378,7 +378,7 @@ ControllerMacroEditWidget::ControllerMacroEditWidget(ControllerMacroWidget* pare
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
QListWidgetItem* item = new QListWidgetItem();
|
QListWidgetItem* item = new QListWidgetItem();
|
||||||
item->setText(tr(cinfo->name, bi.display_name));
|
item->setText(qApp->translate(cinfo->name, bi.display_name));
|
||||||
item->setCheckState((std::find(m_binds.begin(), m_binds.end(), &bi) != m_binds.end()) ? Qt::Checked :
|
item->setCheckState((std::find(m_binds.begin(), m_binds.end(), &bi) != m_binds.end()) ? Qt::Checked :
|
||||||
Qt::Unchecked);
|
Qt::Unchecked);
|
||||||
m_ui.bindList->addItem(item);
|
m_ui.bindList->addItem(item);
|
||||||
|
|
|
@ -1,12 +1,23 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="en_US">
|
<TS version="2.1" language="en_US">
|
||||||
|
<context>
|
||||||
|
<name>AchievementSettingsWidget</name>
|
||||||
|
<message numerus="yes">
|
||||||
|
<location filename="../achievementsettingswidget.cpp" line="164"/>
|
||||||
|
<location filename="../achievementsettingswidget.cpp" line="171"/>
|
||||||
|
<source>%n seconds</source>
|
||||||
|
<translation type="unfinished">
|
||||||
|
<numerusform></numerusform>
|
||||||
|
<numerusform></numerusform>
|
||||||
|
</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>EmuThread</name>
|
<name>EmuThread</name>
|
||||||
<message numerus="yes">
|
<message numerus="yes">
|
||||||
<location filename="../qthost.cpp" line="1211"/>
|
|
||||||
<source>%n points</source>
|
<source>%n points</source>
|
||||||
<translation>
|
<translation type="vanished">
|
||||||
<numerusform>%n point</numerusform>
|
<numerusform>%n point</numerusform>
|
||||||
<numerusform>%n points</numerusform>
|
<numerusform>%n points</numerusform>
|
||||||
</translation>
|
</translation>
|
||||||
|
@ -26,7 +37,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>InputBindingWidget</name>
|
<name>InputBindingWidget</name>
|
||||||
<message numerus="yes">
|
<message numerus="yes">
|
||||||
<location filename="../inputbindingwidgets.cpp" line="68"/>
|
<location filename="../inputbindingwidgets.cpp" line="69"/>
|
||||||
<source>%n bindings</source>
|
<source>%n bindings</source>
|
||||||
<translation>
|
<translation>
|
||||||
<numerusform>%n binding</numerusform>
|
<numerusform>%n binding</numerusform>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set "linguist=..\..\..\dep\msvc\qt\6.5.0\msvc2022_64\bin"
|
set "linguist=..\..\..\dep\msvc\deps-x64\bin"
|
||||||
set context=../ ../../core/ ../../util/ -tr-function-alias QT_TRANSLATE_NOOP+=TRANSLATE,QT_TRANSLATE_NOOP+=TRANSLATE_SV,QT_TRANSLATE_NOOP+=TRANSLATE_STR,QT_TRANSLATE_NOOP+=TRANSLATE_FS,QT_TRANSLATE_N_NOOP3+=TRANSLATE_FMT,QT_TRANSLATE_NOOP+=TRANSLATE_NOOP -pluralonly
|
set context=../ ../../core/ ../../util/ -tr-function-alias QT_TRANSLATE_NOOP+=TRANSLATE,QT_TRANSLATE_NOOP+=TRANSLATE_SV,QT_TRANSLATE_NOOP+=TRANSLATE_STR,QT_TRANSLATE_NOOP+=TRANSLATE_FS,QT_TRANSLATE_N_NOOP3+=TRANSLATE_FMT,QT_TRANSLATE_NOOP+=TRANSLATE_NOOP -pluralonly
|
||||||
|
|
||||||
"%linguist%\lupdate.exe" %context% -ts duckstation-qt_en.ts
|
"%linguist%\lupdate.exe" %context% -ts duckstation-qt_en.ts
|
||||||
|
|
Loading…
Reference in a new issue