Add en_US translation for plurals

This way in the en_US locale we no longer get shown the odd "dive(s)"
and instead get correct singular and plural forms.

Most of the patch is just a reindentation as it removes the if clause
that used to do the special case of NOT loading a translation for the
en_US case.

Right now we start with a trivial en_US translation file. My guess is
that this will be overwritten once we do the next round of "new strings,
new translations".

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-06-22 03:38:09 -07:00
parent 6e785a7bfc
commit ba2b5d8505
4 changed files with 38 additions and 23 deletions

View file

@ -0,0 +1,18 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="en_US" version="2.1">
<context>
<name>LocationFilterDelegate</name>
<message numerus="yes">
<location filename="../desktop-widgets/modeldelegates.cpp" line="504"/>
<source>, %n dive(s) here)</source>
<translation><numerusform>, %n dive here)</numerusform><numerusform>, %n dives here)</numerusform></translation>
</message>
</context>
<context>
<name>QObject</name>
<message numerus="yes">
<location filename="../core/qthelper.cpp" line="997"/>
<source>(%n dive(s))</source>
<translation><numerusform>(%n dive)</numerusform><numerusform>(%n dives)</numerusform></translation>
</message>
</context>
</TS>