From d3f35fb6916bf52485484095a57a554c8b08bee0 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 15 Jul 2022 12:26:30 -0700 Subject: [PATCH] Adds Catalan --- .../0154_alter_user_preferred_language.py | 40 +++++++++++++++++++ bookwyrm/settings.py | 1 + bw-dev | 1 + 3 files changed, 42 insertions(+) create mode 100644 bookwyrm/migrations/0154_alter_user_preferred_language.py diff --git a/bookwyrm/migrations/0154_alter_user_preferred_language.py b/bookwyrm/migrations/0154_alter_user_preferred_language.py new file mode 100644 index 000000000..2002cca66 --- /dev/null +++ b/bookwyrm/migrations/0154_alter_user_preferred_language.py @@ -0,0 +1,40 @@ +# Generated by Django 3.2.14 on 2022-07-15 19:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bookwyrm", "0153_merge_20220706_2141"), + ] + + operations = [ + migrations.AlterField( + model_name="user", + name="preferred_language", + field=models.CharField( + blank=True, + choices=[ + ("en-us", "English"), + ("ca-es", "Català (Catalan)"), + ("de-de", "Deutsch (German)"), + ("es-es", "Español (Spanish)"), + ("gl-es", "Galego (Galician)"), + ("it-it", "Italiano (Italian)"), + ("fi-fi", "Suomi (Finnish)"), + ("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)"), + ("ro-ro", "Română (Romanian)"), + ("sv-se", "Svenska (Swedish)"), + ("zh-hans", "简体中文 (Simplified Chinese)"), + ("zh-hant", "繁體中文 (Traditional Chinese)"), + ], + max_length=255, + null=True, + ), + ), + ] diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 999c3729b..50bfc453f 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -280,6 +280,7 @@ AUTH_PASSWORD_VALIDATORS = [ LANGUAGE_CODE = env("LANGUAGE_CODE", "en-us") LANGUAGES = [ ("en-us", _("English")), + ("ca-es", _("Català (Catalan)")), ("de-de", _("Deutsch (German)")), ("es-es", _("Español (Spanish)")), ("gl-es", _("Galego (Galician)")), diff --git a/bw-dev b/bw-dev index 7ecef5c34..7cf2086da 100755 --- a/bw-dev +++ b/bw-dev @@ -117,6 +117,7 @@ case "$CMD" in ;; update_locales) git fetch origin l10n_main:l10n_main + git checkout l10n_main locale/ca_ES git checkout l10n_main locale/de_DE git checkout l10n_main locale/es_ES git checkout l10n_main locale/fi_FI