From f5f43213c35cee91365d3a749a529ef1e06644d2 Mon Sep 17 00:00:00 2001 From: Joel Falknau Date: Sun, 26 Oct 2025 11:44:48 +1000 Subject: [PATCH] readd language choices --- allianceauth/authentication/models.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/allianceauth/authentication/models.py b/allianceauth/authentication/models.py index 914ad56a..9b19a940 100644 --- a/allianceauth/authentication/models.py +++ b/allianceauth/authentication/models.py @@ -71,6 +71,20 @@ class UserProfile(models.Model): """ Choices for UserProfile.language """ + # Sorted by Language Code alphabetical order + English at top + ENGLISH = 'en', _('English') + CZECH = 'cs-cz', _("Czech") # Not yet at 50% translated + GERMAN = 'de', _('German') + SPANISH = 'es', _('Spanish') + ITALIAN = 'it-it', _('Italian') + JAPANESE = 'ja', _('Japanese') + KOREAN = 'ko-kr', _('Korean') + FRENCH = 'fr-fr', _('French') + RUSSIAN = 'ru', _('Russian') + DUTCH = 'nl-nl', _("Dutch") + POLISH = 'pl-pl', _("Polish") + UKRAINIAN = 'uk', _('Ukrainian') + CHINESE = 'zh-hans', _('Simplified Chinese') user = models.OneToOneField( User,