Opened 9 years ago

Closed 9 years ago

Last modified 7 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: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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:

ugettext = lambda s: s
  ('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) (561 bytes) - added by Adrian Ribao 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by Adrian Ribao

Attachment: added

comment:1 Changed 9 years ago by Adrian Ribao

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

comment:2 Changed 9 years ago by Adrian Ribao

Resolution: invalid
Status: newclosed

comment:3 Changed 9 years ago by Adrian Ribao

Resolution: invalid
Status: closedreopened

comment:4 Changed 9 years ago by dc

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 Changed 7 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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