r-bishop / bpbible

Automatically exported from code.google.com/p/bpbible
0 stars 0 forks source link

Plurals make English assumptions #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
BPBible is not using an abstract plural approach but hardcoding English
plural assumptions.

Please check this snippet from the PO file:

#: search/searchpanel.py:749 search/searchpanel.py:769^M
#: search/searchpanel.py:846 search/searchpanel.py:864^M
msgid "1 word"
msgstr ""

#: search/searchpanel.py:750 search/searchpanel.py:770^M
#: search/searchpanel.py:847 search/searchpanel.py:865^M
msgid "%d words"
msgstr ""

What is the expected output? What do you see instead?
Proper use of Gettext plurals.  More info here
http://docs.python.org/library/gettext.html#gettext.ngettext

What version of the product are you using? On what operating system?
POT file from 2009-05-20 17:08+EST

Original issue reported on code.google.com by dwayneba...@gmail.com on 15 Sep 2009 at 3:21

GoogleCodeExporter commented 9 years ago
Two other similar issues:

* 1 hit, %d hits
* 0 references found, 1 reference found, %s reference found

The problem is that many languages do not follow English's n!=1 rule.  Asian
languages usually have no plural form.  But languages like Arabic have 6 forms
depending on the value of %d.  French follows an n>1 rule.  Etc.

Original comment by dwayneba...@gmail.com on 15 Sep 2009 at 3:39

GoogleCodeExporter commented 9 years ago
This is a problem, but I'm not sure it will be fixed before 0.5 is out (the XUL 
based
version).

Original comment by benpmor...@gmail.com on 13 Nov 2009 at 5:06

GoogleCodeExporter commented 9 years ago
While it would be nice to have all of these issues fixed for 0.5, they are not 
critical to the 0.5 goals and so some of them may be deferred to after 0.5.

Original comment by jonmmor...@gmail.com on 17 Jul 2010 at 8:01