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

View File

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