mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
update language codes
This commit is contained in:
parent
ce8935e621
commit
0a17427169
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2 on 2024-09-13 09:46
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('authentication', '0023_alter_userprofile_language'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='userprofile',
|
||||||
|
name='language',
|
||||||
|
field=models.CharField(blank=True, choices=[('en', 'English'), ('cs-cz', 'Czech'), ('de', 'German'), ('es', 'Spanish'), ('it-it', 'Italian'), ('ja', 'Japanese'), ('ko-kr', 'Korean'), ('fr-fr', 'French'), ('ru', 'Russian'), ('nl-nl', 'Dutch'), ('pl-pl', 'Polish'), ('uk', 'Ukrainian'), ('zh-hans', 'Simplified Chinese')], default='', max_length=10, verbose_name='Language'),
|
||||||
|
),
|
||||||
|
]
|
@ -67,18 +67,20 @@ class UserProfile(models.Model):
|
|||||||
"""
|
"""
|
||||||
Choices for UserProfile.language
|
Choices for UserProfile.language
|
||||||
"""
|
"""
|
||||||
|
# Sorted by Language Code alphabetical order + English at top
|
||||||
ENGLISH = 'en', _('English')
|
ENGLISH = 'en', _('English')
|
||||||
|
CZECH = 'cs-cz', _("Czech") # Not yet at 50% translated
|
||||||
GERMAN = 'de', _('German')
|
GERMAN = 'de', _('German')
|
||||||
SPANISH = 'es', _('Spanish')
|
SPANISH = 'es', _('Spanish')
|
||||||
CHINESE = 'zh-hans', _('Chinese Simplified')
|
ITALIAN = 'it-it', _('Italian')
|
||||||
RUSSIAN = 'ru', _('Russian')
|
|
||||||
KOREAN = 'ko', _('Korean')
|
|
||||||
FRENCH = 'fr', _('French')
|
|
||||||
JAPANESE = 'ja', _('Japanese')
|
JAPANESE = 'ja', _('Japanese')
|
||||||
ITALIAN = 'it', _('Italian')
|
KOREAN = 'ko-kr', _('Korean')
|
||||||
|
FRENCH = 'fr-fr', _('French')
|
||||||
|
RUSSIAN = 'ru', _('Russian')
|
||||||
|
DUTCH = 'nl-nl', _("Dutch")
|
||||||
|
POLISH = 'pl-pl', _("Polish")
|
||||||
UKRAINIAN = 'uk', _('Ukrainian')
|
UKRAINIAN = 'uk', _('Ukrainian')
|
||||||
POLISH = 'pl', _("Polish")
|
CHINESE = 'zh-hans', _('Simplified Chinese')
|
||||||
|
|
||||||
user = models.OneToOneField(
|
user = models.OneToOneField(
|
||||||
User,
|
User,
|
||||||
|
@ -12,6 +12,8 @@ from celery.schedules import crontab
|
|||||||
|
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
|
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'allianceauth', # needs to be on top of this list to support favicons in Django admin (see https://gitlab.com/allianceauth/allianceauth/-/issues/1301)
|
'allianceauth', # needs to be on top of this list to support favicons in Django admin (see https://gitlab.com/allianceauth/allianceauth/-/issues/1301)
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
@ -93,18 +95,20 @@ LOCALE_PATHS = (
|
|||||||
os.path.join(BASE_DIR, 'locale/'),
|
os.path.join(BASE_DIR, 'locale/'),
|
||||||
)
|
)
|
||||||
|
|
||||||
LANGUAGES = (
|
LANGUAGES = ( # Sorted by Language Code alphabetical order + English at top
|
||||||
("en", "English"),
|
("en", _("English")),
|
||||||
("de", "German"),
|
# ("cs-cz", _("Czech")), #Not yet at 50% translated
|
||||||
("es", "Spanish"),
|
("de", _("German")),
|
||||||
("zh-hans", "Chinese Simplified"),
|
("es", _("Spanish")),
|
||||||
("ru", "Russian"),
|
("it-it", _("Italian")),
|
||||||
("ko", "Korean"),
|
("ja", _("Japanese")),
|
||||||
("fr", "French"),
|
("ko-kr", _("Korean")),
|
||||||
("ja", "Japanese"),
|
("fr-fr", _("French")),
|
||||||
("it", "Italian"),
|
("nl-nl", _("Dutch")),
|
||||||
("uk", "Ukrainian"),
|
("pl-pl", _("Polish")),
|
||||||
("pl", "Polish"),
|
("ru", _("Russian")),
|
||||||
|
("uk", _("Ukrainian")),
|
||||||
|
("zh-hans", _("Simplified Chinese")),
|
||||||
)
|
)
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user