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 <t...@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 <em...@address>\n"
"Language-Team: LANGUAGE <l...@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 <t...@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 <s...@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

<<attachment: gonzalo.vcf>>

_______________________________________________
gpodder-devel mailing list
gpodder-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpodder-devel

Reply via email to