Implement Rule for "Two forms, singular used for one only"

Created on 28 December 2024, about 1 month ago

Two forms, singular used for one only

This is the form used in most existing programs since it is what English is using. A header entry would look like this:

Plural-Forms: nplurals=2; plural=n != 1;

(Note: this uses the feature of C expressions that boolean expressions have to value zero or one.)

Languages with this property include:

Germanic family
English, German, Dutch, Swedish, Danish, Norwegian, Faroese

Romanic family
Spanish, Portuguese, Italian

Latin/Greek family
Greek

Slavic family
Bulgarian

Finno-Ugric family
Finnish, Estonian

Semitic family
Hebrew

Austronesian family
Bahasa Indonesian

Artificial
Esperanto

Other languages using the same header entry are:

Finno-Ugric family
Hungarian

Turkic/Altaic family
Turkish

Hungarian does not appear to have a plural if you look at sentences involving cardinal numbers. For example, “1 apple” is “1 alma”, and “123 apples” is “123 alma”. But when the number is not explicit, the distinction between singular and plural exists: “the apple” is “az alma”, and “the apples” is “az almák”. Since ngettext has to support both types of sentences, it is classified here, under “two forms”.

The same holds for Turkish: “1 apple” is “1 elma”, and “123 apples” is “123 elma”. But when the number is omitted, the distinction between singular and plural exists: “the apple” is “elma”, and “the apples” is “elmalar”.

Reference: https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany D34dMan Hamburg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024