From b49a6c94a88283430d52988ce9e142d6633b1445 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Sat, 16 Oct 2021 17:00:04 +0200 Subject: [PATCH] Let the sr language be Latin: Sprski. If you want to use the Cyrillic character set variant, set environment variable `zope_i18n_allowed_languages` to `sr@Cyrl`. --- news/326.feature | 4 ++++ plone/i18n/locales/languages.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 news/326.feature diff --git a/news/326.feature b/news/326.feature new file mode 100644 index 0000000..7f29f74 --- /dev/null +++ b/news/326.feature @@ -0,0 +1,4 @@ +Let the sr language be Latin: Sprski. +If you want to use the Cyrillic character set variant, +set environment variable `zope_i18n_allowed_languages` to `sr@Cyrl`. +[maurits] diff --git a/plone/i18n/locales/languages.py b/plone/i18n/locales/languages.py index 817f5e1..eed7109 100644 --- a/plone/i18n/locales/languages.py +++ b/plone/i18n/locales/languages.py @@ -464,9 +464,9 @@ class MetadataLanguageAvailability(LanguageAvailability): "sr": { # Note: we support two character sets for this language. # See zope_i18n_allowed_languages below. - # TODO: in Plone 6.0 native should become 'Srpski', - # but that requires copying sr@Latn to sr in plone.app.locales. - "native": "српски", + # Until and including 5.2, native was Cyrillic: српски. + # In Plone 6.0 native became Latin: Srpski. + "native": "Srpski", "name": "Serbian", "flag": "/++resource++country-flags/cs.gif", },