* .arg() doesn't handle plurals, replace %1 with %n and pass number to tr(), but only if there is an accompanying word for that we want singular/plural translations and only for whole numbers.
* Qt's translation methods only accept integers and we don't know what grammatical number form would be correct for floating-point numbers in different languages anyway.
* Add optional 2nd argument to SliderBase::SetFormat() to activate deferred plural handling:
SetFormat(QT_TRANSLATE_N_NOOP("olive::SliderBase", "%n unit(s)"), true)
* Generate en_US.ts with lupdate's -pluralonly option. Only source strings that require plural handling need to be translated (as long as the source language is American English).
55 lines
1.6 KiB
XML
55 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE TS>
|
|
<TS version="2.1" language="en_US">
|
|
<context>
|
|
<name>olive::Footage</name>
|
|
<message numerus="yes">
|
|
<source>%1: Audio - %n Channel(s), %2Hz</source>
|
|
<translation>
|
|
<numerusform>%1: Audio - %n Channel, %2Hz</numerusform>
|
|
<numerusform>%1: Audio - %n Channels, %2Hz</numerusform>
|
|
</translation>
|
|
</message>
|
|
</context>
|
|
<context>
|
|
<name>olive::MainStatusBar</name>
|
|
<message numerus="yes">
|
|
<source>Running %n background task(s)</source>
|
|
<translation>
|
|
<numerusform>Running %n background task</numerusform>
|
|
<numerusform>Running %n background tasks</numerusform>
|
|
</translation>
|
|
</message>
|
|
</context>
|
|
<context>
|
|
<name>olive::NodeParamViewArrayWidget</name>
|
|
<message numerus="yes">
|
|
<source>%n element(s)</source>
|
|
<translation>
|
|
<numerusform>%n element</numerusform>
|
|
<numerusform>%n elements</numerusform>
|
|
</translation>
|
|
</message>
|
|
</context>
|
|
<context>
|
|
<name>olive::ProjectImportTask</name>
|
|
<message numerus="yes">
|
|
<source>Importing %n file(s)</source>
|
|
<translation>
|
|
<numerusform>Importing %n file</numerusform>
|
|
<numerusform>Importing %n files</numerusform>
|
|
</translation>
|
|
</message>
|
|
</context>
|
|
<context>
|
|
<name>olive::SliderBase</name>
|
|
<message numerus="yes">
|
|
<source>%n minute(s)</source>
|
|
<translation>
|
|
<numerusform>%n minute</numerusform>
|
|
<numerusform>%n minutes</numerusform>
|
|
</translation>
|
|
</message>
|
|
</context>
|
|
</TS>
|