[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: translation debugging problem
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2016-04-26 6:13:48
Message-ID: alpine.LNX.2.00.1604260813350.29597 () calcifer ! valdyas ! org
[Download RAW message or body]


Thanks! I'll be trying that when I am home again!

On Mon, 25 Apr 2016, Albert Astals Cid wrote:

> El dilluns, 25 d'abril de 2016, a les 22:17:32 CEST, Nick Shaforostoff va
> escriure:
>> the first thing i would do is to change msgstr of translatable string and
>> see if the changes are visible to the code.
>>
>> also, what is strange is that msgctxt is non-empty, while to get translation
>> i18n is used and not i18nc.
>
> As Nick says your i18n call is wrong, you're not passing a context to i18n,
> the one that works is probably working by change because it's somewhere else
> defined too without the context.
>
> Cheers,
>  Albert
>
>>> msgctxt "action"
>>> msgid "Save Incremental &Version"
>>> msgstr "増分バージョンを保存(&V)"
>>
>> ...
>>
>>> return i18n(s.toUtf8().constData());
>>
>> also toLatin1() would be enough, i believe.
>> and even better is to pass msgid content as qbytearray or const char*
>> everywhere
>
>
>

-- 
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