Adds Brazilian Portuguese locale

This commit is contained in:
Mouse Reeve 2021-10-11 09:23:28 -07:00
parent d7f8a7b99e
commit 69110497ae
3 changed files with 214 additions and 195 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.2.5 on 2021-10-11 16:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookwyrm', '0106_user_preferred_language'),
]
operations = [
migrations.AlterField(
model_name='user',
name='preferred_language',
field=models.CharField(blank=True, choices=[('en-us', 'English'), ('de-de', 'Deutsch (German)'), ('es', 'Español (Spanish)'), ('fr-fr', 'Français (French)'), ('pt-br', 'Português - Brasil (Brazilian Portugues)'), ('zh-hans', '简体中文 (Simplified Chinese)'), ('zh-hant', '繁體中文 (Traditional Chinese)')], max_length=255, null=True),
),
]

View file

@ -162,11 +162,12 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = "en-us"
LANGUAGES = [
("en-us", _("English")),
("de-de", _("Deutsch (German)")), # German
("es", _("Español (Spanish)")), # Spanish
("fr-fr", _("Français (French)")), # French
("zh-hans", _("简体中文 (Simplified Chinese)")), # Simplified Chinese
("zh-hant", _("繁體中文 (Traditional Chinese)")), # Traditional Chinese
("de-de", _("Deutsch (German)")),
("es", _("Español (Spanish)")),
("fr-fr", _("Français (French)")),
("pt-br", _("Português - Brasil (Brazilian Portugues)")),
("zh-hans", _("简体中文 (Simplified Chinese)")),
("zh-hant", _("繁體中文 (Traditional Chinese)")),
]

File diff suppressed because it is too large Load diff