kcoreaddons5 extraction
Alexander Potashev
aspotashev at gmail.com
Sat Mar 29 00:32:49 UTC 2014
2014-03-28 22:15 GMT+04:00 Luigi Toscano <luigi.toscano at tiscali.it>:
> On Friday 28 of March 2014 19:28:16 Yuri Chornoivan wrote:
>> Hi,
>>
>> https://projects.kde.org/projects/frameworks/kcoreaddons/repository/revision
>> s/master/entry/src/lib/kaboutdata.cpp#L258
>>
>> licenseShort = QCoreApplication::translate("KAboutLicense", "@item license
>> (short name)", "GPL v2");
>>
>> is extracted as (the same thing for the others)
>>
>> #:
>> ../../home/scripty/prod/git-unstable/frameworks_kcoreaddons/src/lib/kaboutda
>> ta.cpp:258 msgctxt "KAboutLicense|GPL v2"
>> msgid "@item license (short name)"
>> msgstr ""
>>
>> So what is wrong? Extraction script or the order of parameters for all
>> licenses?
Hello,
I didn't play with Qt i18n API much, but in this case it's clear from
the Qt docs [1] that the order of parameters in the code is wrong. The
source text (e.g. "GPL v2") is should be passed as the second
parameter, msgctxt "@item license (short name)" being the third one.
[1] http://qt-project.org/doc/qt-5.0/qtcore/qcoreapplication.html#translate
--
Alexander Potashev
More information about the Kde-frameworks-devel
mailing list