Opened 12 years ago

Closed 10 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


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)

django-1.0.2-plural.patch (4.1 KB) - added by daniels 12 years ago.

Download all attachments as: .zip

Change History (11)

Changed 12 years ago by daniels

Attachment: django-1.0.2-plural.patch added

comment:1 Changed 12 years ago by daniels

This ticket is related to tickets #6505 and #9974.

comment:2 Changed 12 years ago by daniels

Needs tests: set

comment:3 Changed 11 years ago by Alex Gaynor

Triage Stage: UnreviewedDesign decision needed

comment:4 Changed 10 years ago by Malcolm Tredinnick

Triage Stage: Design decision neededAccepted

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 10 years ago by Malcolm Tredinnick

Patch needs improvement: set

comment:6 Changed 10 years ago by Ramiro Morales

Component: TranslationsInternationalization

oops, this is why it has been flying under the radar for one year :(

comment:7 Changed 10 years ago by Ramiro Morales

The infrastructure for adding the enhacements proposed in #4030 would help greatly with this.

comment:8 Changed 10 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

(In [14771]) Fixed #11161 -- Added plural forms to all supported languages. Fixed other errors in the translation files that prevented them to pass the msgfmt check in preparation for the move to Transifex. Refs #14735, too.

comment:9 Changed 10 years ago by Ramiro Morales

Keywords: forms c2py added
Resolution: fixed
Status: closedreopened

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 10 years ago by Ramiro Morales

Resolution: fixed
Status: reopenedclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top