[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] [PATCH] msgexec, msgfilter: Implement plural support
From: |
Stanislav Brabec |
Subject: |
Re: [bug-gettext] [PATCH] msgexec, msgfilter: Implement plural support |
Date: |
Thu, 15 May 2014 16:04:12 +0200 |
Ineiev wrote:
> Hello,
>
> On 05/15/2014 10:43 AM, Daiki Ueno wrote:
> > Stanislav Brabec <address@hidden> writes:
> >
> >> Add new variables that allow proper processing of plurals:
> >>
> >> msgexec: MSGEXEC_MSGID_PLURAL, MSGEXEC_PLURAL_FORM
> >>
> >> msgfilter: MSGFILTER_MSGID_PLURAL, MSGFILTER_PLURAL_FORM
> >>
> >> Without these new variables, command has no chance to discriminate
> >> between plural forms, as all have exactly the same environment.
>
> Is it possible to add also a variable for "previous" msgid?
Yes, it is be possible. But what would be the purpose of such variable?
I cannot imagine any use case: strings can be in a random order, and
string has no relation to the previous one. If you really need it, it is
easy to implement it in the command:
Just save MSG(FILTER|EXEC)_MSGID variable contents to a temporary file,
and retrieve it during next run.
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: address@hidden
Lihovarská 1060/12 tel: +49 911 7405384547
190 00 Praha 9 fax: +420 284 084 001
Czech Republic http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76