diff --git a/bookwyrm/migrations/0130_alter_user_preferred_language.py b/bookwyrm/migrations/0130_alter_user_preferred_language.py new file mode 100644 index 000000000..cd5a07eab --- /dev/null +++ b/bookwyrm/migrations/0130_alter_user_preferred_language.py @@ -0,0 +1,37 @@ +# Generated by Django 3.2.10 on 2022-01-24 17:32 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bookwyrm", "0129_auto_20220117_1716"), + ] + + 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)"), + ("sv-se", "Swedish (Svenska)"), + ("zh-hans", "简体中文 (Simplified Chinese)"), + ("zh-hant", "繁體中文 (Traditional Chinese)"), + ], + max_length=255, + null=True, + ), + ), + ] diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 197e672c1..be4be7336 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -255,6 +255,7 @@ LANGUAGES = [ ("no-no", _("Norsk (Norwegian)")), ("pt-br", _("Português do Brasil (Brazilian Portuguese)")), ("pt-pt", _("Português Europeu (European Portuguese)")), + ("sv-se", _("Swedish (Svenska)")), ("zh-hans", _("简体中文 (Simplified Chinese)")), ("zh-hant", _("繁體中文 (Traditional Chinese)")), ] diff --git a/bw-dev b/bw-dev index 67486d9bf..00faa6a62 100755 --- a/bw-dev +++ b/bw-dev @@ -119,6 +119,7 @@ case "$CMD" in 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/sv_SE git checkout l10n_main locale/zh_Hans git checkout l10n_main locale/zh_Hant runweb django-admin makemessages --no-wrap --ignore=venv -l en_US $@