Loading tests/view_tests/locale/en_GB/LC_MESSAGES/djangojs.mo 0 → 100644 +454 B File added.No diff preview for this file type. View file tests/view_tests/locale/en_GB/LC_MESSAGES/djangojs.po 0 → 100644 +20 −0 Original line number Diff line number Diff line # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-09-15 19:15+0200\n" "PO-Revision-Date: 2010-05-12 12:41-0300\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "this color is to be translated" msgstr "this colour is to be translated" tests/view_tests/tests/test_i18n.py +8 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,14 @@ class JsI18NTests(SimpleTestCase): self.assertContains(response, 'il faut le traduire') self.assertNotContains(response, "Untranslated string") def test_i18n_english_variant(self): with override('en-gb'): response = self.client.get('/jsi18n/') self.assertIn( '"this color is to be translated": "this colour is to be translated"', response.context['catalog_str'] ) def test_i18n_language_non_english_default(self): """ Check if the Javascript i18n view returns an empty language catalog Loading Loading
tests/view_tests/locale/en_GB/LC_MESSAGES/djangojs.mo 0 → 100644 +454 B File added.No diff preview for this file type. View file
tests/view_tests/locale/en_GB/LC_MESSAGES/djangojs.po 0 → 100644 +20 −0 Original line number Diff line number Diff line # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-09-15 19:15+0200\n" "PO-Revision-Date: 2010-05-12 12:41-0300\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "this color is to be translated" msgstr "this colour is to be translated"
tests/view_tests/tests/test_i18n.py +8 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,14 @@ class JsI18NTests(SimpleTestCase): self.assertContains(response, 'il faut le traduire') self.assertNotContains(response, "Untranslated string") def test_i18n_english_variant(self): with override('en-gb'): response = self.client.get('/jsi18n/') self.assertIn( '"this color is to be translated": "this colour is to be translated"', response.context['catalog_str'] ) def test_i18n_language_non_english_default(self): """ Check if the Javascript i18n view returns an empty language catalog Loading