[Xfce-i18n] FYI about Tx: You souldn't add any comments in .po files

Masato Hashimoto cabezon.hashimoto at gmail.com
Wed Jul 17 18:14:06 CEST 2013


Hi Sergey,

On Wed, 17 Jul 2013 12:47:18 +0400
Sergey Alyoshin <alyoshin.s at gmail.com> wrote:

<snip>
> 
> Sometimes it is very useful to add comments as reminder, clarification,
> style or integrity for other translators.  Such comments has nothing to do
> with code.

Probably, Nick said like following style.

If a comment is put just before translatable string on the source:
>        if(diff == 0) {
>            /* TRANSLATORS: file was modified less than one day ago */
>            strftime(buffer, 128, _("Today at %X"), tfile);
>            return g_strdup(buffer);
>        } else if(diff == 1) {

gettext retrieves it as a comment for the translation and put it into the po file:
> #. TRANSLATORS: file was modified less than one day ago
> #: ../src/xfdesktop-file-utils.c:137
> #, c-format
> msgid "Today at %X"
> msgstr ""

Tx won't remove those gettext's output so moving each comments into 
source (by making patch and sending it to Nick) is one way to keep them.

Yes, it's annoying.
 
-- 
HASHIMOTO, Masato


More information about the Xfce-i18n mailing list