diff --git a/allianceauth/authentication/migrations/0023_alter_userprofile_language.py b/allianceauth/authentication/migrations/0023_alter_userprofile_language.py new file mode 100644 index 00000000..4bf0d550 --- /dev/null +++ b/allianceauth/authentication/migrations/0023_alter_userprofile_language.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.13 on 2024-05-12 09:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('authentication', '0022_userprofile_theme'), + ] + + 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'), ('pl', 'Polish')], default='', max_length=10, verbose_name='Language'), + ), + ] diff --git a/allianceauth/authentication/models.py b/allianceauth/authentication/models.py index 068eab14..898dd177 100644 --- a/allianceauth/authentication/models.py +++ b/allianceauth/authentication/models.py @@ -78,6 +78,7 @@ class UserProfile(models.Model): JAPANESE = 'ja', _('Japanese') ITALIAN = 'it', _('Italian') UKRAINIAN = 'uk', _('Ukrainian') + POLISH = 'pl', _("Polish") user = models.OneToOneField( User, diff --git a/allianceauth/project_template/project_name/settings/base.py b/allianceauth/project_template/project_name/settings/base.py index a12175ba..0291913b 100644 --- a/allianceauth/project_template/project_name/settings/base.py +++ b/allianceauth/project_template/project_name/settings/base.py @@ -102,6 +102,7 @@ LANGUAGES = ( ("ja", "Japanese"), ("it", "Italian"), ("uk", "Ukrainian"), + ("pl", "Polish"), ) TEMPLATES = [