diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-22 03:38:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-22 04:19:23 -0700 |
commit | ba2b5d85059c8f08e1e3b0f92f274e80e7b81a39 (patch) | |
tree | eca51df63d7fb9e6014ded4a2e0125e55e8cb5b0 /translations | |
parent | 6e785a7bfc40bb6bf8780728c1a818abcac83c0e (diff) | |
download | subsurface-ba2b5d85059c8f08e1e3b0f92f274e80e7b81a39.tar.gz |
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>
Diffstat (limited to 'translations')
-rw-r--r-- | translations/CMakeLists.txt | 1 | ||||
-rw-r--r-- | translations/subsurface_en_US.ts | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index effa9812f..64a1e6bed 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -13,6 +13,7 @@ set(TRANSLATION_FILES subsurface_de_DE.ts subsurface_el_GR.ts subsurface_en_GB.ts + subsurface_en_US.ts subsurface_es_ES.ts subsurface_et_EE.ts subsurface_fi_FI.ts diff --git a/translations/subsurface_en_US.ts b/translations/subsurface_en_US.ts new file mode 100644 index 000000000..d859792c3 --- /dev/null +++ b/translations/subsurface_en_US.ts @@ -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> |