#13726: Javascript translated string catalog is empty when settings.LANGUAGE_CODE is "fr" and session variable language_code is "en" -------------------------------------------+-------------------------------- Reporter: stodge | Owner: nobody Status: new | Milestone: Component: Internationalization | Version: 1.1 Resolution: | Keywords: Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Changes (by ramiro):
* has_patch: 0 => 1 Comment: The patch added makes the following changes in the jsi18n view code to consider the use case presented in this ticket: 1. Toggles the logic to decide the English translation is missing. Currently if any of the packages listed as providing JS translations has no English translation then it is decided that no English translation is available at all. The patch changes that to flag there is an English translation if at least one of the packages provides one. * 2. Separates the tracking of such flag from the fact that English is the language selected by the user via preferences. This way we can properly handle the scenario of a non-English original language with the user asking for English translation and handle it just like any other translation provided the relevant .po/.mo files exist. This could be considered a further refinement to r12384 and r13069. No previous regression tests get broken by it. Should this patch be applied, the `tests/regressiontests/views/app0/locale/en/LC_MESSAGES/djangojs.mo` file needs to be previously generated and included as part of the commit. * Maybe we should consider tracking this `'en'` translation availability status per-package? -- Ticket URL: <http://code.djangoproject.com/ticket/13726#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.