[Sugar-devel] [PATCH 2/5] sl#2815: Localization fixes.

Sascha Silbe silbe at activitycentral.com
Mon Jan 23 11:46:48 EST 2012


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

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120123/1bffdb3b/attachment.pgp>


More information about the Sugar-devel mailing list