kopia lustrzana https://github.com/wagtail/wagtail
Only add Uyghur to supported languages under Django 5.x
rodzic
177c51b381
commit
012f854d81
|
@ -1,6 +1,7 @@
|
|||
import functools
|
||||
|
||||
import zoneinfo
|
||||
from django import VERSION as DJANGO_VERSION
|
||||
from django.conf import settings
|
||||
from django.utils.dates import MONTHS, WEEKDAYS, WEEKDAYS_ABBR
|
||||
from django.utils.translation import gettext as _
|
||||
|
@ -41,12 +42,15 @@ WAGTAILADMIN_PROVIDED_LANGUAGES = [
|
|||
("sl", "Slovenian"),
|
||||
("th", "Thai"),
|
||||
("tr", "Turkish"),
|
||||
("ug", "Uyghur"),
|
||||
("uk", "Ukrainian"),
|
||||
("zh-hans", "Chinese (Simplified)"),
|
||||
("zh-hant", "Chinese (Traditional)"),
|
||||
]
|
||||
|
||||
if DJANGO_VERSION >= (5, 0):
|
||||
WAGTAILADMIN_PROVIDED_LANGUAGES.append(("ug", "Uyghur"))
|
||||
WAGTAILADMIN_PROVIDED_LANGUAGES.sort()
|
||||
|
||||
|
||||
# Translatable strings to be made available to JavaScript code
|
||||
# as the wagtailConfig.STRINGS object
|
||||
|
|
Ładowanie…
Reference in New Issue