Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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)

i18n.py.diff (561 bytes ) - added by Adrian Ribao 15 years ago.

Download all attachments as: .zip

Change History (6)

by Adrian Ribao, 15 years ago

Attachment: i18n.py.diff added

comment:1 by Adrian Ribao, 15 years ago

I have realized the patch is not good. It works for me but something is wrong.

comment:2 by Adrian Ribao, 15 years ago

Resolution: invalid
Status: newclosed

comment:3 by Adrian Ribao, 15 years ago

Resolution: invalid
Status: closedreopened

comment:4 by dc, 15 years ago

Resolution: invalid
Status: reopenedclosed

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.

comment:5 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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