[Debian-l10n-devel] Bug#760977: translate-toolkit specifies a wrong value for Turkish plural form
Mert Dirik
mertdirik at gmail.com
Tue Sep 9 16:05:22 UTC 2014
Package: translate-toolkit
Version: 1.12.0+dfsg1-2
Severity: normal
Tags: l10n upstream patch
Dear maintainers,
I'm pasting the text I've used in upstream bug report [0]:
....
In translate/lang/data.py file, the plural form for Turkish has been defined as
(u'Turkish', 1, '0') but it is simply wrong.
The situation has been explained in [Gettext
documentation](https://www.gnu.org/software/gettext/manual/html_node/Plural-
forms.html#Plural-forms) as:
> The same holds for Turkish: “1 apple” is “1 elma”, and “123
apples” is “123 elma”. But when the number is omitted, the distinction
between singular and plural exists: “the apple” is “elma”, and “the
apples” is “elmalar”.
Gettext documentation recommends `nplurals=2; plural=n != 1;` as the correct
form, so the data.py file should be patched like:
```
--- data.py~ 2014-08-11 20:22:33.000000000 +0300
+++ data.py 2014-09-09 18:50:44.110584372 +0300
@@ -149,7 +149,7 @@
'ti': (u'Tigrinya', 2, '(n > 1)'),
'th': (u'Thai', 1, '0'),
'tk': (u'Turkmen', 2, '(n != 1)'),
- 'tr': (u'Turkish', 1, '0'),
+ 'tr': (u'Turkish', 2, '(n != 1)'),
'tt': (u'Tatar', 1, '0'),
'ug': (u'Uighur; Uyghur', 1, '0'),
'uk': (u'Ukrainian', 3,
```
....
I don't know when is the next upstream release and if it will be before freeze,
so I wanted to report it also here.
[0] https://github.com/translate/translate/issues/3209
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.15-10.dmz.1-liquorix-686 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages translate-toolkit depends on:
ii gettext 0.19.2-1
ii libexttextcat-data 3.4.4-1
ii libjs-sphinxdoc 1.2.2+dfsg-3
ii libpython2.7-stdlib [python-argparse] 2.7.8-6
ii python 2.7.8-1
ii python-diff-match-patch 20121119-1
ii python-six 1.7.3-2
pn python:any <none>
Versions of packages translate-toolkit recommends:
ii iso-codes 3.56-1
pn python-babel <none>
ii python-bs4 4.3.2-1
ii python-chardet 2.2.1-2
ii python-enchant 1.6.6-1
ii python-iniparse 0.4-2.1
ii python-levenshtein 0.11.2-1+b2
ii python-lxml 3.3.5-1+b1
ii python-simplejson 3.6.3-1
ii python-utidylib 0.2-9
ii python-vobject 0.8.1c-4
ii python-xapian 1.2.18-1
Versions of packages translate-toolkit suggests:
pn python-subversion <none>
-- no debconf information
More information about the Debian-l10n-devel
mailing list