mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(i18n): Ukrainian
The panel in Ukrainian, the language of the project's founder: a full catalog of its 2610 messages, Ukrainian in the language list, and the CI catalog check, the catalog test and CONTRIBUTING with locale/uk. Unit symbols stay Latin (GiB, MiB/s), as the panel writes them in numbers next to these texts.
This commit is contained in:
parent
fe9ca0231d
commit
f2b6be5fa8
8 changed files with 13459 additions and 8 deletions
|
|
@ -31,7 +31,7 @@ class AppSettingsTestCase(TestCase):
|
|||
page = self.client.get(reverse("appsettings")).content.decode()
|
||||
choice = page[page.index('<select id="language"'):]
|
||||
choice = choice[:choice.index("</select>")]
|
||||
self.assertEqual(re.findall(r'<option value="([^"]+)"', choice), ["en", "tr", "zh-hans"])
|
||||
self.assertEqual(re.findall(r'<option value="([^"]+)"', choice), ["en", "tr", "zh-hans", "uk"])
|
||||
|
||||
def test_the_page_answers_in_the_users_language(self):
|
||||
response = self.client.post(reverse("appsettings"), {}, HTTP_ACCEPT_LANGUAGE="tr", follow=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue