Opened 16 years ago
Closed 14 years ago
#11161 closed (fixed)
Added plural rules for supported languages
Reported by: | daniels | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.0 |
Severity: | Keywords: | plural forms c2py | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Added gettext plural rules in global_settings.conf and code in trans_real to support them.
Use gettext own c2py to translate the rules.
Attachments (1)
Change History (11)
by , 16 years ago
Attachment: | django-1.0.2-plural.patch added |
---|
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Needs tests: | set |
---|
comment:3 by , 15 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:4 by , 14 years ago
Triage Stage: | Design decision needed → Accepted |
---|
It should pull the rules from Django's own locale file. This doesn't go into global settings, since we already a copy.
comment:5 by , 14 years ago
Patch needs improvement: | set |
---|
comment:6 by , 14 years ago
Component: | Translations → Internationalization |
---|
oops, this is why it has been flying under the radar for one year :(
comment:7 by , 14 years ago
The infrastructure for adding the enhacements proposed in #4030 would help greatly with this.
comment:8 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:9 by , 14 years ago
Keywords: | forms c2py added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Reopening because this ticket is about making these expressions available in our DjangoTranslation class and hence available to Python code, obtaining the information from the contents of the .po files Plural-Forms:
headers.
comment:10 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Re-closing because GNUTranslations (from which our DjangoTranslation inherits) _parse() method already calls c2py() and assigns that value to self.plural
. Thanks jezdez for the explanation.
This ticket is related to tickets #6505 and #9974.