[gpodder-devel] poedit translator issue

  • From: gonzalo at tagenata.com (Gonçalo Cordeiro)
  • Date: Tue, 05 Jan 2010 14:13:31 +0100

Silvio Sisto escreveu:
>> Interesting, can you add this info to the Wiki?
>>
>>   http://wiki.gpodder.org/wiki/Translations
>>
>>
>>     
>
> done
>
>   
Hi all,
Silvio, I would suggest something like:

Gettext plural support

Recent development of GPodder (v.2.1) now includes Gettext plural forms.
PO headers needs to be checked for plural support for your language, 
e.g. for spanish:
|"Plural-Forms: nplurals=2; plural=(n != 1);\n"|
i.e. two forms, singular used for one only, should be included.
See: http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html
New languages should take POT file and initialize it, e.g for a spanish PO:

msginit --locale=es --input=gpodder.master.messages.pot

This way, original PO header:

# gPodder translation template.
# Copyright (C) 2006 Thomas Perl
# This file is distributed under the same license as the gPodder package.
# Thomas Perl <thp at perli.net>, 2006.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: gPodder \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-12-22 00:18+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

gets changed to:

# gPodder translation template.
# Copyright (C) 2006 Thomas Perl
# This file is distributed under the same license as the gPodder package.
# Thomas Perl <thp at perli.net>, 2006.
#
msgid ""
msgstr ""
"Project-Id-Version: gPodder \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-12-22 00:18+0100\n"
"PO-Revision-Date: 2010-01-05 14:06+0100\n"
"Last-Translator: name <some at email>\n"
"Language-Team: Spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ASCII\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

Normally, 'charset' should be changed to 'UTF-8' (not ASCII).

This a issue related to PO initialization for a given language, not 
application dependent.

Best regards,
Gon?alo Cordeiro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gonzalo.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
URL: 
<https://lists.berlios.de/pipermail/gpodder-devel/attachments/20100105/0bd9e9fa/attachment.vcf>

Other related posts: