#13722 closed (invalid)
My Javascript string catalog contains calendar related strings that I didn't create, but only for French
Reported by: | Mike | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm using Django's string files (.po) to support English and French. When French is the current language (language_code is read from the session), my Javascript catalog includes what appear to be a number of calendar related translated strings in French.
E.g.:
catalog['6 a.m.'] = '6:00'; catalog['Add'] = 'Ajouter'; catalog['Available %s'] = '%s disponible(s)'; catalog['Calendar'] = 'Calendrier'; catalog['Cancel'] = 'Annuler'; catalog['Choose a time'] = 'Choisir une heure'; catalog['Choose all'] = 'Tout choisir'; catalog['Chosen %s'] = '%s choisi(es)'; catalog['Clear all'] = 'Tout enlever'; catalog['Clock'] = 'Horloge'; catalog['Hide'] = 'Masquer'; catalog['January February March April May June July August September October November December'] = 'Janvier F\u00e9vrier Mars Avril Mai Juin Juillet Ao\u00fbt Septembre Octobre Novembre D\u00e9cembre'; catalog['Midnight'] = 'Minuit'; catalog['Noon'] = 'Midi'; catalog['Now'] = 'Maintenant'; catalog['Remove'] = 'Enlever'; catalog['S M T W T F S'] = 'D L M M J V S'; catalog['Select your choice(s) and click '] = 'S\u00e9lectionnez un ou plusieurs choix et cliquez '; catalog['Show'] = 'Afficher'; catalog['Sunday Monday Tuesday Wednesday Thursday Friday Saturday'] = 'Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi'; catalog['Today'] = 'Aujourd\'hui'; catalog['Tomorrow'] = 'Demain'; catalog['Yesterday'] = 'Hier';
I definitely did not create these or define strings that should translate into them.
However, to make things more confusing, if I switch to English, these strings aren't in my Javascript catalog. So I can only presume that Django is incorrectly creating them. French is my default language code as defined in settings.py. This is the latest 1.1.x release (1.1.2?).
Oddly, some of these are useful to me but I can't use them because I don't know why they were generated and
also because they're not available when English is the current language.
Thanks
Change History (2)
comment:1 by , 14 years ago
Component: | Uncategorized → Internationalization |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 by , 14 years ago
I understand that, but I explained that these strings are only in the catalog when the language code is 'fr'. When I switch to a language code of 'en', these strings are NOT available in the catalog. This sounds like a bug to me.
These are the translation strings used by admin javascript. They're defined in the djangojs.po file. If you define your own djangojs domain file, you can add to these if you require.
Also - for future reference, questions like this are better suited to django-users. Trac is for logging bugs; if you're uncertain if you've found a bug, or you want explanation of how something is/does/should work, django-users is the place to go.