1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Added proper plural handling

This commit is contained in:
Martin Tůma 2016-10-19 23:15:42 +02:00
parent 1160c6d385
commit 425c75416a
2 changed files with 13 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="cs_CZ">
<TS version="2.1" language="cs_CZ">
<context>
<name>ElevationGraph</name>
<message>
@ -397,10 +397,14 @@
<source>No GPX files loaded</source>
<translation>Nejsou načteny žádné GPX soubory</translation>
</message>
<message>
<message numerus="yes">
<location filename="../src/gui.cpp" line="965"/>
<source>%1 files</source>
<translation>%1 souborů</translation>
<translation>
<numerusform>%1 soubor</numerusform>
<numerusform>%1 soubory</numerusform>
<numerusform>%1 souborů</numerusform>
</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="548"/>
@ -651,22 +655,22 @@
<context>
<name>ScaleItem</name>
<message>
<location filename="../src/scaleitem.cpp" line="90"/>
<location filename="../src/scaleitem.cpp" line="84"/>
<source>mi</source>
<translation>mi</translation>
</message>
<message>
<location filename="../src/scaleitem.cpp" line="91"/>
<location filename="../src/scaleitem.cpp" line="85"/>
<source>ft</source>
<translation>ft</translation>
</message>
<message>
<location filename="../src/scaleitem.cpp" line="93"/>
<location filename="../src/scaleitem.cpp" line="87"/>
<source>km</source>
<translation>km</translation>
</message>
<message>
<location filename="../src/scaleitem.cpp" line="94"/>
<location filename="../src/scaleitem.cpp" line="88"/>
<source>m</source>
<translation>m</translation>
</message>

View File

@ -962,7 +962,8 @@ void GUI::updateStatusBarInfo()
else if (_files.count() == 1)
_fileNameLabel->setText(_files.at(0));
else
_fileNameLabel->setText(tr("%1 files").arg(_files.count()));
_fileNameLabel->setText(tr("%1 files", "", _files.count())
.arg(_files.count()));
qreal d = distance();
Units units = _imperialUnitsAction->isChecked() ? Imperial : Metric;