#3704 closed (duplicate)
Localization stuff & humanize improvements
Reported by: | Baptiste | Owned by: | Jacob |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | internationalization, humanize | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
This patch fixes some strings that xgettext didn't like, and allows the localisation of contrib.humanize. It adds also the option "--from-code UTF-8" to the xgettext command line (in bin/make-messages.py), to solve a little encoding issue.
This patch adds the support of exponents in contrib.humanize.ordinal.
{{ value|ordinal:True }}
will output :
1<sup>st</sup>
By default, no change, but that can be helpful.
Attachments (2)
Change History (5)
by , 18 years ago
Attachment: | patch.diff added |
---|
by , 18 years ago
Attachment: | patch.2.diff added |
---|
comment:1 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
The first part is a dupe of #3410, which I am just about to commit. The second part is a wontfix. If you want customisations like that -- and there are so many possibilities that we cannot accommodate everybody, so we take a fairly minimalist line -- it's easy enough to write your own filter.
Please file one issue per ticket in the future. It's makes triaging/resolving much easier.
comment:2 by , 18 years ago
I've ended up taking part of this patch, too, since you caught the plural problem in the humanize filters.
Oops, there was a little issue