diff options
author | Maximilian Güntner <maximilian.guentner@gmail.com> | 2013-11-15 01:39:00 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-15 13:13:15 +0900 |
commit | 17fbb6b17f6a417f3178286225ce12cda49b36d9 (patch) | |
tree | fb6542c28fe37ab4ed5a12d2c3feffa3842f0704 /gettextfromc.cpp | |
parent | c0a6c136f04b8dcca1fb148894148195a1a31d60 (diff) | |
download | subsurface-17fbb6b17f6a417f3178286225ce12cda49b36d9.tar.gz |
Support translating UTF8 strings
Interpreting UTF8 encoded strings using tr() instead of trUtf8()
and encoding the string back to utf8 again leads to serious encoding
errors.
Fixes #230
Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gettextfromc.cpp')
-rw-r--r-- | gettextfromc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gettextfromc.cpp b/gettextfromc.cpp index c3b822ff5..fc11847fa 100644 --- a/gettextfromc.cpp +++ b/gettextfromc.cpp @@ -6,7 +6,7 @@ const char *gettextFromC::trGettext(const char *text) { QByteArray &result = translationCache[QByteArray(text)]; if (result.isEmpty()) - result = tr(text).toUtf8(); + result = trUtf8(text).toUtf8(); return result.constData(); } |