[kde-russian] Fwd: c-formatted strings in rkward__analysis.po
Juliette Tux
juliette.tux на gmail.com
Пн Дек 8 17:32:35 MSK 2014
Это опять мы, пинджаки.
У меня такой случай с "#, c-format" в пошке встретился в lxpanel (
http://mirror.rosalab.ru/rosa/server/6.6/repository/SRPMS/extra/release/lxpanel-0.6.1-1.res6.src.rpm
), причём кое-что из помеченного как c-format интерфейс подхватывает на
русском, кое-что упорно хочет показывать только на инглише. Пошка вот тут:
http://pastebin.com/dZwRsyMP
Можно более подробно на пальцах пояснить, что куда вставлять, чтобы
правильно собрать?
---------- Forwarded message ----------
From: Yuri Chornoivan <yurchor at ukr.net>
Date: 5 December 2014 at 08:26
Subject: Re: c-formatted strings in rkward__analysis.po
To: "kde-i18n-doc at kde.org" <kde-i18n-doc at kde.org>
написане Thu, 04 Dec 2014 22:38:48 +0200, Thomas Friedrichsmeier <
thomas.friedrichsmeier at ruhr-uni-bochum.de>:
Hi,
>
> On Thursday 04 December 2014 21:39:14 Yuri Chornoivan wrote:
>
>> Due to some subtle peculiarities of xgettext processing some extracted
>> strings (those with '%') are now wrongly c-formatted which prevents them
>> from to be translated well.
>>
>
> I see.
>
> It is usually enough to add "xgettext:no-c-format" for such messages to be
>> processed right, but it is evidently not the case this time (tested).
>>
>
> I guess that's because the extraction script just strips all comments that
> don't start with i18n: or translators:.
>
> Is there any way to post-process the file to replace #, c-format with #,
>> no-c-format ?
>>
>
> I've tried smartening up the extraction script to insert /* xgettext:no-c-
> format */ in front of the calls in question (after all comment stripping).
> This seems to produce the desired result. Please test.
>
> Thanks!
> Thomas
>
Now it works as expected. Many thanks for your work.
Best regards,
Yuri
--
С уважением, Дронова Юлия
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kde.ru/pipermail/kde-russian/attachments/20141208/da3441f9/attachment.html>
Подробная информация о списке рассылки kde-russian