Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
e0e3fbd2
Commit
e0e3fbd2
authored
Feb 06, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove not needed parenthesis from plural forms
parent
35312c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
weblate/lang/models.py
weblate/lang/models.py
+14
-10
No files found.
weblate/lang/models.py
View file @
e0e3fbd2
...
...
@@ -30,15 +30,15 @@ EXTRALANGS = [
(
'ur'
,
'Urdu'
,
2
,
'(n != 1)'
),
(
'uz@latin'
,
'Uzbek (latin)'
,
1
,
'0'
),
(
'uz'
,
'Uzbek'
,
1
,
'0'
),
(
'sr@latin'
,
'Serbian (latin)'
,
3
,
'
(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)
'
),
(
'sr_RS@latin'
,
'Serbian (latin)'
,
3
,
'
(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)
'
),
(
'sr@cyrillic'
,
'Serbian (cyrillic)'
,
3
,
'
(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)
'
),
(
'sr_RS@cyrillic'
,
'Serbian (cyrillic)'
,
3
,
'
(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)
'
),
(
'be@latin'
,
'Belarusian (latin)'
,
3
,
'
(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)
'
),
(
'en_US'
,
'English (United States)'
,
2
,
'
(n != 1)
'
),
(
'nb_NO'
,
'Norwegian Bokmål'
,
2
,
'
(n != 1)
'
),
(
'pt_PT'
,
'Portuguese (Portugal)'
,
2
,
'
(n > 1)
'
),
(
'ckb'
,
'Kurdish Sorani'
,
2
,
'
(n != 1)
'
),
(
'sr@latin'
,
'Serbian (latin)'
,
3
,
'
n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
'
),
(
'sr_RS@latin'
,
'Serbian (latin)'
,
3
,
'
n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
'
),
(
'sr@cyrillic'
,
'Serbian (cyrillic)'
,
3
,
'
n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
'
),
(
'sr_RS@cyrillic'
,
'Serbian (cyrillic)'
,
3
,
'
n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
'
),
(
'be@latin'
,
'Belarusian (latin)'
,
3
,
'
n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
'
),
(
'en_US'
,
'English (United States)'
,
2
,
'
n != 1
'
),
(
'nb_NO'
,
'Norwegian Bokmål'
,
2
,
'
n != 1
'
),
(
'pt_PT'
,
'Portuguese (Portugal)'
,
2
,
'
n > 1
'
),
(
'ckb'
,
'Kurdish Sorani'
,
2
,
'
n != 1
'
),
]
# List of defaul languages - the ones, where using
...
...
@@ -289,12 +289,16 @@ class LanguageManager(models.Manager):
lang
.
nplurals
=
int
(
parts
[
0
][
9
:])
lang
.
pluralequation
=
parts
[
1
][
8
:]
# Strip not needed parenthesis
if
lang
.
pluralequation
[
0
]
==
'('
and
lang
.
pluralequation
[
-
1
]
==
')'
:
lang
.
pluralequation
=
lang
.
pluralequation
[
1
:
-
1
]
# Fixes for broken plurals
if
code
in
[
'kk'
,
'fa'
]:
# Kazakh and Persian should have plurals, ttkit says it does
# not have
lang
.
nplurals
=
2
lang
.
pluralequation
=
'
(n != 1)
'
lang
.
pluralequation
=
'
n != 1
'
if
code
in
RTL_LANGS
:
lang
.
direction
=
'rtl'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment