Opened 15 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)

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

Download all attachments as: .zip

Change History (11)

by daniels, 15 years ago

Attachment: django-1.0.2-plural.patch added

comment:1 by daniels, 15 years ago

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

comment:2 by daniels, 15 years ago

Needs tests: set

comment:3 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedDesign decision needed

comment:4 by Malcolm Tredinnick, 14 years ago

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

Patch needs improvement: set

comment:6 by Ramiro Morales, 14 years ago

Component: TranslationsInternationalization

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

comment:7 by Ramiro Morales, 14 years ago

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

comment:8 by Jannis Leidel, 14 years ago

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

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

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