diff --git a/.gitignore b/.gitignore index c81ae116be42f6f966114e84b1a1347f6ea4b1de..c6538995194e9c170bdedd8b1a284dede6cbb484 100644 --- a/.gitignore +++ b/.gitignore @@ -24,9 +24,6 @@ pip-log.txt coverage*.xml nosetests*.xml -#Translations -*.mo - #Mr Developer .mr.developer.cfg /node_modules/ diff --git a/rdiffweb/locales/ca/LC_MESSAGES/messages.mo b/rdiffweb/locales/ca/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..a2e0bb980f1adbc5c39e602231e85ff8ca394105 Binary files /dev/null and b/rdiffweb/locales/ca/LC_MESSAGES/messages.mo differ diff --git a/rdiffweb/locales/en/LC_MESSAGES/messages.mo b/rdiffweb/locales/en/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..cb15ca413096f3b76bc84fe3f6b49008759cb332 Binary files /dev/null and b/rdiffweb/locales/en/LC_MESSAGES/messages.mo differ diff --git a/rdiffweb/locales/es/LC_MESSAGES/messages.mo b/rdiffweb/locales/es/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..23d02b6867f4c720d4ec526648875546f79df1fe Binary files /dev/null and b/rdiffweb/locales/es/LC_MESSAGES/messages.mo differ diff --git a/rdiffweb/locales/fr/LC_MESSAGES/messages.mo b/rdiffweb/locales/fr/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..70ed0d531e1c486f4e99c168a8f344a342437dc8 Binary files /dev/null and b/rdiffweb/locales/fr/LC_MESSAGES/messages.mo differ diff --git a/rdiffweb/locales/ru/LC_MESSAGES/messages.mo b/rdiffweb/locales/ru/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..7304e93c7fbc9527b20d6a7bbc02063422554116 Binary files /dev/null and b/rdiffweb/locales/ru/LC_MESSAGES/messages.mo differ diff --git a/rdiffweb/tests/test_i18n.py b/rdiffweb/tests/test_i18n.py index 8d76425afc0a946f5cec10e91abccf167476b623..48d61cc16d130d325e49a536391bd268e352d833 100644 --- a/rdiffweb/tests/test_i18n.py +++ b/rdiffweb/tests/test_i18n.py @@ -143,7 +143,7 @@ class TestI18nWebCase(WebCase): def testLanguage_WithUnknown(self): # Query the page without login-in - self.getPage("/", headers=[("Accept-Language", "es")]) + self.getPage("/", headers=[("Accept-Language", "it")]) self.assertStatus('200 OK') self.assertHeaderItemValue("Content-Language", "en_US") self.assertInBody("Sign in") diff --git a/setup.cfg b/setup.cfg index 30b596f3583edc765250f3fa7476add51857b0ea..51b222d1221dbba4805af346c12e7cf00d327308 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,7 +20,7 @@ domain = messages directory = rdiffweb/locales [compile_all_catalogs] -locales = en, fr, ru +locales = en, fr, ru, es, ca domain = messages directory = rdiffweb/locales