From 3044f18900fca137ba7b152112fc9d3d4b9ad46f Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sun, 28 May 2023 17:38:51 +0200 Subject: [PATCH] [ADDED] Ukrainian to `UserProfile.LANGUAGE_CHOICES` --- .../0021_alter_userprofile_language.py | 34 +++++++++++++++++++ allianceauth/authentication/models.py | 1 + 2 files changed, 35 insertions(+) create mode 100644 allianceauth/authentication/migrations/0021_alter_userprofile_language.py diff --git a/allianceauth/authentication/migrations/0021_alter_userprofile_language.py b/allianceauth/authentication/migrations/0021_alter_userprofile_language.py new file mode 100644 index 00000000..be9ab240 --- /dev/null +++ b/allianceauth/authentication/migrations/0021_alter_userprofile_language.py @@ -0,0 +1,34 @@ +# Generated by Django 4.0.10 on 2023-05-28 15:36 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("authentication", "0020_userprofile_language_userprofile_night_mode"), + ] + + operations = [ + migrations.AlterField( + model_name="userprofile", + name="language", + field=models.CharField( + blank=True, + choices=[ + ("en", "English"), + ("de", "German"), + ("es", "Spanish"), + ("zh-hans", "Chinese Simplified"), + ("ru", "Russian"), + ("ko", "Korean"), + ("fr", "French"), + ("ja", "Japanese"), + ("it", "Italian"), + ("uk", "Ukrainian"), + ], + default="", + max_length=10, + verbose_name="Language", + ), + ), + ] diff --git a/allianceauth/authentication/models.py b/allianceauth/authentication/models.py index 80fdcd4a..92fe5e71 100755 --- a/allianceauth/authentication/models.py +++ b/allianceauth/authentication/models.py @@ -86,6 +86,7 @@ class UserProfile(models.Model): ('fr', _('French')), ('ja', _('Japanese')), ('it', _('Italian')), + ('uk', _('Ukrainian')), ] language = models.CharField( _("Language"), max_length=10,