Patch for plural forms

Lists: pgadmin-hackers
From: Marek Černocký <marek(at)manet(dot)cz>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Patch for plural forms
Date: 2009-06-10 15:15:13
Message-ID: 1244646913.20153.60.camel@zabiny
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

I write patch for plural forms of translated texts. It solves second
problem from report by Heikki:

http://archives.postgresql.org/pgadmin-hackers/2009-05/msg00017.php

It use "wxPLURAL" instead "_". I also change "stringextract" script to
know this. Following steps required when patche is aplied:
- regenerate POT template
- merge it with PO files
PO files must have set Plural-Forms correctly, e.g. for czech it si:
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
\n"
You can find it in gettext documentation (section 10.2.5) or create new
PO file from POT by msginit with appropriate param -l.

Marek

Attachment Content-Type Size
plural.patch text/x-patch 19.9 KB

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Marek Černocký <marek(at)manet(dot)cz>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Patch for plural forms
Date: 2009-06-10 15:44:07
Message-ID: 937d27e10906100844sf39fb29na80e57070907f9db@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

2009/6/10 Marek Černocký <marek(at)manet(dot)cz>:
> I write patch for plural forms of translated texts. It solves second
> problem from report by Heikki:
>
> http://archives.postgresql.org/pgadmin-hackers/2009-05/msg00017.php
>
> It use "wxPLURAL" instead "_". I also change "stringextract" script to
> know this. Following steps required when patche is aplied:
> - regenerate POT template
> - merge it with PO files
> PO files must have set Plural-Forms correctly, e.g. for czech it si:
> "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
> \n"
> You can find it in gettext documentation (section 10.2.5) or create new
> PO file from POT by msginit with appropriate param -l.

Thanks - I've added your patch to the ticket at
http://code.pgadmin.org/trac/ticket/4

Unfortunately it's too late for 1.10.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com