[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: translation debugging problem
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2016-04-25 11:06:27
Message-ID: alpine.LNX.2.00.1604251303050.29597 () calcifer ! valdyas ! org
[Download RAW message or body]
Hi,
I'm trying to debug https://phabricator.kde.org/T2333 -- basically,
I know that the krita.po/mo files contain translations for some
strings that nevertheless aren't gettting translated. For instance:
#. i18n: context: Action (save_incremental_version), Actions (File), ActionCollection (Menu)
#. +> trunk5
#: krita/kritamenu.action:138
msgctxt "action"
msgid "Save Incremental &Version"
msgstr "$BA}J,%P!<%8%g%s$rJ]B8(J(&V)"
#. i18n: context: Action (save_incremental_version), Actions (File), ActionCollection (Menu)
#. +> trunk5
#: krita/kritamenu.action:140
msgctxt "action"
msgid "Save Incremental Version"
msgstr "$BA}J,%P!<%8%g%s$rJ]B8(J"
The strings are loaded from an xml file and translated like this:
QString quietlyTranslate(const QString &s) {
if (s.isEmpty()) {
return s;
}
if (i18n(s.toUtf8().constData()).isEmpty()) {
qDebug() << "No translation found for" << s;
return s;
}
qDebug() << s << "translates to" << i18n(s.toUtf8().constData());
return i18n(s.toUtf8().constData());
};
And in my debug output I get:
krita(7027)/(default) unknown: "Save Incremental &Version" translates to "$BA}J,%P!<%8%g%s$rJ]B8(J(&V)"
krita(7027)/(default) unknown: "Save Incremental Version" translates to "Save Incremental Version"
Which I don't understand, both strings are translated, both are in the krita.mo
file, there's only one translation domain, and one string gets translated,
and the other doesn't.
Does anyone have an idea where I should start looking?
--
Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic