Translation Team/Language Setup: Difference between revisions

Created page with 'Information needed to properly set up a language in Pootle: *Language Code [http://www.loc.gov/standards/iso639-2/php/code_list.php (ISO 639-1 or ISO 639-2)] *Number of plurals …'
 
 
(5 intermediate revisions by 3 users not shown)
Line 8: Line 8:
:It is very useful to set-up the first language administrator at the time the language is set up.  This can be done by providing the Pootle username of the person to be made language administrator.  This means they should register on Pootle, even before their language is set up, and then add their language after it is set up.  
:It is very useful to set-up the first language administrator at the time the language is set up.  This can be done by providing the Pootle username of the person to be made language administrator.  This means they should register on Pootle, even before their language is set up, and then add their language after it is set up.  


This information should be included in a message to the Localization list requesting that the language be established on the Pootle server.  It is preferred that the request is also filed as a ticket on the [http://bugs.sugarlabs.org/ Sugar Labs bug tracker] with teh component set to "localization"
This information should be included in a message to the Localization list requesting that the language be established on the Pootle server.  It is preferred that the request is also filed as a ticket on the [http://bugs.sugarlabs.org/ Sugar Labs bug tracker] with the component set to "localization"


== Language Plurals ==
== Language Plurals ==
Line 41: Line 41:
Another common plural equation is:
Another common plural equation is:


plural=(n > 1)
:plural=(n > 1)




Line 48: Line 48:
Arabic:
Arabic:


nplurals=6
:nplurals=6


plural= n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;  
:plural= n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;  


::''note that this is more complex than necessary as ''"&& n%100<=99"'' could be omitted without effect (this is due to conversion from CLDR format which uses "in 11..99")''


Russian:
Russian:


nplurals=3
:nplurals=3


plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10< =4 && (n%100<10 or n%100>=20) ? 1 : 2)  
:plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10< =4 && (n%100<10 or n%100>=20) ? 1 : 2)  


== Special Characters ==
== Special Characters ==