Add Polish to language selections

This commit is contained in:
Ariel Rin 2024-05-12 19:44:30 +10:00
parent 2aeef63565
commit 2ba0412890
No known key found for this signature in database
3 changed files with 20 additions and 0 deletions

View File

@ -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'),
),
]

View File

@ -78,6 +78,7 @@ class UserProfile(models.Model):
JAPANESE = 'ja', _('Japanese')
ITALIAN = 'it', _('Italian')
UKRAINIAN = 'uk', _('Ukrainian')
POLISH = 'pl', _("Polish")
user = models.OneToOneField(
User,

View File

@ -102,6 +102,7 @@ LANGUAGES = (
("ja", "Japanese"),
("it", "Italian"),
("uk", "Ukrainian"),
("pl", "Polish"),
)
TEMPLATES = [