mirror of https://github.com/stenzek/duckstation
Add support for plural forms in Qt forms
parent
4436e86a46
commit
edeed89648
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en_US">
|
||||
<context>
|
||||
<name>AudioSettingsWidget</name>
|
||||
<message numerus="yes">
|
||||
<source>Maximum Latency: %n frames (%1ms)</source>
|
||||
<translation>
|
||||
<numerusform>Maximum Latency: %n frame (%1ms)</numerusform>
|
||||
<numerusform>Maximum Latency: %n frames (%1ms)</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>EmulationSettingsWidget</name>
|
||||
<message numerus="yes">
|
||||
<source>Rewind for %n frame(s), lasting %1 second(s) will require up to %2MB of RAM and %3MB of VRAM.</source>
|
||||
<translation>
|
||||
<numerusform>Rewind for %n frame, lasting %1 second(s) will require up to %2MB of RAM and %3MB of VRAM.</numerusform>
|
||||
<numerusform>Rewind for %n frames, lasting %1 second(s) will require up to %2MB of RAM and %3MB of VRAM.</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>InputBindingWidget</name>
|
||||
<message numerus="yes">
|
||||
<source>%n bindings</source>
|
||||
<translation>
|
||||
<numerusform>%n binding</numerusform>
|
||||
<numerusform>%n bindings</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MemoryCardEditorDialog</name>
|
||||
<message numerus="yes">
|
||||
<source>%n block(s) free%1</source>
|
||||
<translation>
|
||||
<numerusform>%n block free%1</numerusform>
|
||||
<numerusform>%n blocks free%1</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
|
||||
set "linguist=..\..\..\dep\msvc\qt\5.15.0\msvc2017_64\bin"
|
||||
set context=../ ../../core/ ../../frontend-common/ -tr-function-alias translate+=TranslateString -tr-function-alias translate+=TranslateStdString -tr-function-alias QT_TRANSLATE_NOOP+=TRANSLATABLE -pluralonly
|
||||
|
||||
"%linguist%\lupdate.exe" %context% -ts duckstation-qt_en.ts
|
||||
pause
|
||||
|
||||
cd "%linguist%"
|
||||
start /B linguist.exe "%~dp0\duckstation-qt_en.ts"
|
||||
Loading…
Reference in New Issue