[Sugar-devel] [PATCH 2/5] sl#2815: Localization fixes.
Simon Schampijer
simon at schampijer.de
Thu Feb 9 02:51:48 EST 2012
On 01/23/2012 05:46 PM, Sascha Silbe wrote:
> Excerpts from Ajay Garg's message of 2012-01-20 21:39:36 +0100:
>
>> Just one more question, can the "TRANS" label string span multiple lines?
>> That is, is something like ::
>>
>> # TRANS: first line text
>> # second line text
>> # third line text
>
> As the gettext documentation is rather sparse on this, I just gave it a
> try within the sugar package. Results:
>
> 1. We don't require the TRANS: prefix, so any comment will be included.
> We can require the TRANS: prefix by adding "--add-comments=TRANS" to
> XGETTEXT_OPTIONS in po/Makevars.
>
> So far, only a single developer comment (that could potentially
> confuse translators) has slipped into sugar.pot. All comments
> directed at translators are properly marked as TRANS:, so we could
> make this change now without any negative impact.
>
> 2. Multi-line comments are correctly handled (i.e. included in full)
> both with and without requiring the TRANS: prefix.
>
> Sascha
I pushed that one with the wording suggested by Chris and an adjusted
commit message.
id: 06d790a670ce2e8738ee119ce07b533f2703e600
Regards,
Simon
More information about the Sugar-devel
mailing list