Opened 10 years ago
Closed 8 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)
Changed 10 years ago by
Attachment: | django-1.0.2-plural.patch added |
---|
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Needs tests: | set |
---|
comment:3 Changed 10 years ago by
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:4 Changed 8 years ago by
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 Changed 8 years ago by
Patch needs improvement: | set |
---|
comment:6 Changed 8 years ago by
Component: | Translations → Internationalization |
---|
oops, this is why it has been flying under the radar for one year :(
comment:7 Changed 8 years ago by
The infrastructure for adding the enhacements proposed in #4030 would help greatly with this.
comment:8 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:9 Changed 8 years ago by
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 Changed 8 years ago by
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.