diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-04-25 23:16:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-26 05:34:40 -0700 |
commit | 12a59ef3137c84ae693227942fd40ee4dbdc8e88 (patch) | |
tree | 0bd53b5981dd0617cd7aff3900eb3fae192e93e3 /core/taxonomy.c | |
parent | dc9cf7bcbccba78c64c4e935341d816798b6dc03 (diff) | |
download | subsurface-12a59ef3137c84ae693227942fd40ee4dbdc8e88.tar.gz |
Correct divesite geocoding translation
See https://github.com/Subsurface-divelog/subsurface/issues/345. The
menues where not translated. The basis of this error is a simple
typo in core/taxonomy.c where the classname was mis-spelled in the
QT_TRANSLATE_NOOP. In addition, to pull and translate the strings
from C code, the normal tr() does not work, and the functionality
from the gettextfromc class is used.
Fixes: #345
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/taxonomy.c')
-rw-r--r-- | core/taxonomy.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/taxonomy.c b/core/taxonomy.c index 670d85ad0..65de11331 100644 --- a/core/taxonomy.c +++ b/core/taxonomy.c @@ -3,13 +3,13 @@ #include <stdlib.h> char *taxonomy_category_names[TC_NR_CATEGORIES] = { - QT_TRANSLATE_NOOP("getTextFromC", "None"), - QT_TRANSLATE_NOOP("getTextFromC", "Ocean"), - QT_TRANSLATE_NOOP("getTextFromC", "Country"), - QT_TRANSLATE_NOOP("getTextFromC", "State"), - QT_TRANSLATE_NOOP("getTextFromC", "County"), - QT_TRANSLATE_NOOP("getTextFromC", "Town"), - QT_TRANSLATE_NOOP("getTextFromC", "City") + QT_TRANSLATE_NOOP("gettextFromC", "None"), + QT_TRANSLATE_NOOP("gettextFromC", "Ocean"), + QT_TRANSLATE_NOOP("gettextFromC", "Country"), + QT_TRANSLATE_NOOP("gettextFromC", "State"), + QT_TRANSLATE_NOOP("gettextFromC", "County"), + QT_TRANSLATE_NOOP("gettextFromC", "Town"), + QT_TRANSLATE_NOOP("gettextFromC", "City") }; // these are the names for geoname.org |