24 lines
979 B
Python
24 lines
979 B
Python
"""supply information about existing languages
|
|
"""
|
|
|
|
## every language information should contain (name, pluralformat)
|
|
LANGUAGE_INFO = {
|
|
"cs": ('Český', ('3', '(n==1) ? 0 : (n>=2 && n< =4) ? 1 : 2')),
|
|
"da": ('Dansk', ('2', '(n != 1)')),
|
|
"de": ('Deutsch', ('2', '(n != 1)')),
|
|
"en": ('English', ('2', '(n != 1)')),
|
|
"es": ('Español', ('2', '(n != 1)')),
|
|
"fi": ('Suomi', ('2', '(n != 1)')),
|
|
"fr": ('Français', ('2', '(n != 1)')),
|
|
"hu": ('Magyar', ('1', '0')),
|
|
"it": ('Italiano', ('2', '(n != 1)')),
|
|
"ja": ('日本語', ('1', '0')),
|
|
"nl": ('Nederlands', ('2', '(n != 1)')),
|
|
"pl": ('Polski', ('3', '(n==1 ? 0 : n%10>=2 && n%10< =4 && (n%100<10 || n%100>=20) ? 1 : 2)')),
|
|
"pt": ('Português', ('2', '(n != 1)')),
|
|
"ru": ('Русский', ('3', '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10< =4 && (n%100<10 || n%100>=20) ? 1 : 2)')),
|
|
"sl": ('Slovensko', ('4', '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)')),
|
|
"sv": ('Svenska', ('2', '(n != 1)')),
|
|
}
|
|
|