#11598 closed (invalid)
The javascript catalog asumes that the main language is English
| Reported by: | Adrian Ribao | Owned by: | nobody |
|---|---|---|---|
| Component: | Internationalization | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I've created a website using Spanish as the main language. After that, I had to translate the site to English so the main language in the .po files is Spanish. My language settings are:
LANGUAGE_CODE = 'es'
ugettext = lambda s: s
LANGUAGES = (
('es', ugettext(u'Español')),
('en', ugettext(u'English')),
)
But the javascript catalog won't work this way. I have changed a little bit the code and it works now. I attach the patch to this ticket so you can tell me if it's ok, and if it could be applied to the trunk.
Thank you.
Attachments (1)
Change History (6)
by , 16 years ago
| Attachment: | i18n.py.diff added |
|---|
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:3 by , 16 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
comment:4 by , 16 years ago
| Resolution: | → invalid |
|---|---|
| Status: | reopened → closed |
JavaScript catalog loads english language for defaults. Looks like it is not a Django error. Please ask on django-users or #django channel and reopen with more info if it is a Django bug.
I have realized the patch is not good. It works for me but something is wrong.