From 02a963c4ef8f8c3c335fdc272237ee85e499a273 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 8 Jan 2022 07:38:14 -0800 Subject: [PATCH] Adds locales to application --- .../0124_alter_user_preferred_language.py | 36 +++++++++++++++++++ bookwyrm/settings.py | 2 ++ bw-dev | 2 ++ locale/en_US/LC_MESSAGES/django.po | 2 +- 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 bookwyrm/migrations/0124_alter_user_preferred_language.py diff --git a/bookwyrm/migrations/0124_alter_user_preferred_language.py b/bookwyrm/migrations/0124_alter_user_preferred_language.py new file mode 100644 index 000000000..34c3edb87 --- /dev/null +++ b/bookwyrm/migrations/0124_alter_user_preferred_language.py @@ -0,0 +1,36 @@ +# Generated by Django 3.2.10 on 2022-01-08 15:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bookwyrm", "0123_alter_user_preferred_language"), + ] + + operations = [ + migrations.AlterField( + model_name="user", + name="preferred_language", + field=models.CharField( + blank=True, + choices=[ + ("en-us", "English"), + ("de-de", "Deutsch (German)"), + ("es-es", "Español (Spanish)"), + ("gl-es", "Galego (Galician)"), + ("it-it", "Italiano (Italian)"), + ("fr-fr", "Français (French)"), + ("lt-lt", "Lietuvių (Lithuanian)"), + ("no-no", "Norsk (Norwegian)"), + ("pt-br", "Português do Brasil (Brazilian Portuguese)"), + ("pt-pt", "Português Europeu (European Portuguese)"), + ("zh-hans", "简体中文 (Simplified Chinese)"), + ("zh-hant", "繁體中文 (Traditional Chinese)"), + ], + max_length=255, + null=True, + ), + ), + ] diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 5920ed802..4d316c634 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -196,8 +196,10 @@ LANGUAGES = [ ("de-de", _("Deutsch (German)")), ("es-es", _("Español (Spanish)")), ("gl-es", _("Galego (Galician)")), + ("it-it", _("Italiano (Italian)")), ("fr-fr", _("Français (French)")), ("lt-lt", _("Lietuvių (Lithuanian)")), + ("no-no", _("Norsk (Norwegian)")), ("pt-br", _("Português do Brasil (Brazilian Portuguese)")), ("pt-pt", _("Português Europeu (European Portuguese)")), ("zh-hans", _("简体中文 (Simplified Chinese)")), diff --git a/bw-dev b/bw-dev index a9242ce37..55846b597 100755 --- a/bw-dev +++ b/bw-dev @@ -114,7 +114,9 @@ case "$CMD" in git checkout l10n_main locale/es_ES git checkout l10n_main locale/fr_FR git checkout l10n_main locale/gl_ES + git checkout l10n_main locale/it_IT git checkout l10n_main locale/lt_LT + git checkout l10n_main locale/no_NO git checkout l10n_main locale/pt_PT git checkout l10n_main locale/pt_BR git checkout l10n_main locale/zh_Hans diff --git a/locale/en_US/LC_MESSAGES/django.po b/locale/en_US/LC_MESSAGES/django.po index 576cd71d0..ddb5b29c5 100644 --- a/locale/en_US/LC_MESSAGES/django.po +++ b/locale/en_US/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-08 15:33+0000\n" +"POT-Creation-Date: 2022-01-08 15:35+0000\n" "PO-Revision-Date: 2021-02-28 17:19-0800\n" "Last-Translator: Mouse Reeve \n" "Language-Team: English \n"