Closed Bug 733579 Opened 12 years ago Closed 12 years ago

[plural-forms-rule] Need a plural forms rule for Fulah in Verbatim

Categories

(Webtools Graveyard :: Verbatim, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ibrahima.sarr, Assigned: Milos)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a2) Gecko/20120304 Firefox/12.0a2
Build ID: 20120304042010

Steps to reproduce:

Tried to translate SUMO strings


Actual results:

But for some strings translation fieds are already filled and cannot be edited. They are marked as "untranslated" on summary (percentage)

Look at: https://localize.mozilla.org/ff/sumo/translate.html?unitstates=fuzzy,untranslated
or 
https://localize.mozilla.org/ff/sumo/translate.html?unitstates=fuzzy,untranslated


Expected results:

These fiels should be editable and contain translation of the string.
Component: ff / Fulah → Verbatim
Product: Mozilla Localizations → Webtools
QA Contact: ff → verbatim
Version: unspecified → Trunk
That one seems to be because there is no information about plural forms in Pootle for your language.
Based on this page:
http://translate.sourceforge.net/wiki/l10n/pluralforms
I guess it should be
nplurals=2; plural=(n != 1) 

One of the admins can add it in the languages page in the admin panel.
Assignee: nobody → milos
Status: UNCONFIRMED → NEW
Ever confirmed: true
I can't tell what is the plural form of Fulah. I never undrstood that but I can help determine by giving examples.
(In reply to Swarnava Sengupta (:Swarnava) from comment #1)
> That one seems to be because there is no information about plural forms in
> Pootle for your language.
> Based on this page:
> http://translate.sourceforge.net/wiki/l10n/pluralforms
> I guess it should be
> nplurals=2; plural=(n != 1) 

On the page you provided I don't see plural forms rule for Fulah. Where did you get it?
(In reply to Milos Dinic [:Milos] from comment #3)
> On the page you provided I don't see plural forms rule for Fulah. Where did
> you get it?

actually its looks like the Bengali one thats why i thought
Still waiting for a solution.
Dwayne, Friedel,

Do you know why and when is this happening(ie. for which kind of strings)?
It happens in strings with plurals. Pootle needs the plural information in order to know how many text areas to display for the translation.

I guess we can start the process of working out the formula by email, Ibrahima.
OK, no problem Friedel,
Thanks
Summary: SUMO strings have translations already filled → [plural-forms-rule] Need a plural forms rule for Fulah in Verbatim
Ibrahima,

If you have a sentence with a number in it, ie. "I have `n` computer(s)", you need to know in how many ways we should form that sentence depending on the number `n`.

So, I'll give you 2 examples now, Serbian and English, which may help you understand what plural forms are.

English:

We can form this sentence in only 2 ways. If `n` is 1, then it would be:

    "I have _1 computer_"

If it's 0 or any other number greater than 1(including those that end with 1, like 11) it's going to be:

    "I have _5 computers_"
    "I have 21 computers"

That said, plural form for English is: "(n != 1)". So if number is not 1, it's plural(only one form of it), and everything else is singular. In some other languages, you have more than 1 form of plural, which you'll see in Serbian, which had complex rule for plural forms.

Serbian:

For Serbian, we use following plural forms rule:
(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)

Which basically represents 3 forms of plural:

    For numbers that end with 1: 1, 21, 31, 121... (1 cvet, 1271 cvet)
    For numbers that end with 2, 3 or 4: 2, 3, 4, 22, 24, 123, 554...(2 cveta)
    For numbers that end with 0, 5, 6, 7, 8 or 9: 5, 107, 929...(929 cvetova)

When we use this plural form in Verbatim, when it sees that a sentence has plurals in it, for Serbian it will allow me to translate it in all three ways, so that based on the number, Verbatim can use proper plural form.

Does that help in determining plural form?
Thank you for this... I Fulah, plural is ŋuite complex because the word in plural does not take an 's' like in English. It usually changes partialli or totally. Only 1 is followed by a singular word. 0 and all are followed by plural. The number is placed after the word as in these examples:
Let's take the word 'file' = 'fiilde' (plural= 'piille' >note only 1st letter changes here to make plural, but not always!
0 files = piille 0
1 file = fiilde 1 (only one that is different)
2 files = piille 2
3 files = piille 3
4 files = piille 4
5 files = piille 5
6 files = piille 6
10 files = piille 10
11 files = piille 11
20 files = piille 20
100 files = piille 100
101 files = piille 101

Let's take the word 'browser' = 'wanngorde' (plural= 'banngorɗe') >note only 1st letter changes here to make plural, but not always!
0 files = banngorɗe 0
1 file = wanngorde 1
2 files = banngorɗe 2
3 files = banngorɗe 3
4 files = banngorɗe 4
5 files = banngorɗe 5
6 files = banngorɗe 6
10 files = banngorɗe 10
11 files = banngorɗe 11
20 files = banngorɗe 20
100 files = banngorɗe 100
101 files = banngorɗe 101

Let take the word 'bookmark' = 'maantorol' (plural = 'maantore')

0 files = maantore 0
1 file = maantorol 1
2 files = maantore 2
3 files = maantore 3
4 files = maantore 4
5 files = maantore 5
6 files = maantore 6
10 files = maantore 10
11 files = maantore 11
20 files = maantore 20
100 files = maantore 100
101 files = maantore 101

If you have any questions, I'll be happy to answer.
Regards
Ibrahima,

This looks much like English plural form rules. So, there are only 2 forms:

    1) When a number is 1
    2) When a number isn't 1

?

If so, this should be `(n != 1)`.
Looks good!
I need to see this in action though just to make sure!
I have set up '(n != 1)' as a plural forms rule in Verbatim for Fulah. Please reopen this bug if you see any problems.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.