https://bugs.documentfoundation.org/show_bug.cgi?id=159631

--- Comment #4 from Racho <[email protected]> ---
(In reply to Jean-Pierre Ledure from comment #3)
> (In reply to Rafael Lima from comment #1)
> > @JPL do you think it's possible to consider this enhancement for the L10N
> > service?
> 
> I refer to
> https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-
> forms.html
> 
> Let's distinguish:
> 
> - "simple" plural forms: one form for a single value, another for >1 values.
> This could be implemented if enough demands are expressed through this
> channel. However a simple workaround is to put 2 Gettext() statements in an
>    If ... = 1 Then ... Else ... End If
> structure.
> 
> - complex plural forms where another translation is selected based on a
> formula. The number of concerned languages is low. Syntax analysis of the
> formula could lead to complex coding in Basic. I would not recommend tp make
> such a development, except, again, if there is a significant demand.

You are right, I make it this one line in basic, for Polish:

PluralForm = iif(Count = 1, "[0]", iif(Count mod 10>=2 and Count mod 10<=4 and
(Count mod 100<10 or Count mod 100>=20), "[1]", "[2]"))

My ask was to don't do it if it's in service.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to