Author Topic: Update of Transifex  (Read 1375 times)

Offline Valiant

  • NPC
  • **
  • Posts: 245
    • View Profile
Update of Transifex
« on: March 27, 2015, 09:33:41 AM »
I noticed an update of Transifex (at least for Russian translation). Now there are 4 translation sections: "one", "few", "many" and "other", while original English variant still has only 2: "one" and "other". Can someone explain me these 4 sections with examples (in English), so I can use them as a reference for correct translation?
« Last Edit: March 27, 2015, 09:38:49 AM by Valiant »

Offline Wuzzy

  • Survivor
  • ***
  • Posts: 276
    • View Profile
Re: Update of Transifex
« Reply #1 on: March 27, 2015, 10:26:38 AM »
This is called “grammatical number”.

In English, there is singular and plural.

One house.
Two houses
One liter.
Two liters.
0.5 liters.

In English, the rule is simple: If the number is exactly 1, it is singular (“one” in Transifex). Otherwise, it is plural (“other” in Transifex).


Grammatical number rules may be different for each language. I don't know anything about Russian, but it could be that Russian has a different grammatical number system than English. Which would mean it has more than just singular and plural.

To know what exactly these rules are, you must know Russian a little bit or ask someone who knows the language better than I do.

Offline Valiant

  • NPC
  • **
  • Posts: 245
    • View Profile
Re: Update of Transifex
« Reply #2 on: March 27, 2015, 11:01:02 AM »
I mean, I thought that these "one", "few" and so forth are for reference. I.e. "One house", "few houses", "many houses" and "other houses".
I wonder what Transifex meant by them.

EDT: that's not an update, as I understand, these 4 grammatical times are for some selected strings. 3 is more common.

Offline LazyCat-rus

  • Survivor
  • ***
  • Posts: 281
    • View Profile
Re: Update of Transifex
« Reply #3 on: April 02, 2015, 09:19:03 AM »
This is plural forms of gettext.
Russian lang have 3 plural forms:
1 thing - Just one
2-4 things - Many (but  not so big)
5-infinity things - Many

Every plural form for any language can be explained by special gettext string in .po file
Here is example for Welsh Language:
Code: [Select]
nplurals=4; plural=(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != 11) ? 2 : 3;where is:
nplurals=4 -- Means that language have 4 plural forms
(n==1) ? 0 - if things num is '1' then use first plural form
(n==2) ? 1 - if things num is '2' then use second plural form
(n != 8 && n != 11) ? 2 - if things num is not 8 or 11 then user third plural form
othewise use forth plural form.

For Russian is more complicated, i don't want describe this mess =)
Code: [Select]
Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
Most languages(like English) have simple plural form:
Code: [Select]
nplurals=2; plural=(n != 1);
And any translation system must respect plural forms of any language.

Offline Jeffreyraigh

  • Zombie Food
  • *
  • Posts: 2
    • View Profile
    • подарок коллега
Update of Transifex
« Reply #4 on: March 26, 2017, 09:02:09 PM »
Just downloaded a client update  to the CBT  this morning.  Giving you a heads up.   Adamas
Оригинальные подарки - материалы раздела   подарок мужчине коллеге по работе !