Open RonanFR opened 2 months ago
A related issue was discussed here, about Latvian: https://discuss.openedx.org/t/open-edx-localization/13832
tutor config save --set LANGUAGE_CODE=fr_CA
. But you won't be able to run tutor local launch
in interactive mode anymore.tutor.hooks.Filters.OPENEDX_LANGUAGE_CODES
filter.@regisb Thanks for your quick reply !
To your 5th point: Haha yes I was also surprised ! I asked to be a translator on transifex to contribute to the reviews (request pending).
On a related note, Open edX makes it hard to configure the languages. We have many places for the same setting.
I imagine a centralized place to configure the following:
LANGUAGE_CODE
LANGUAGES
for Python, DarkLang configuration in /admin
as well as the Account Settings language list in the Account MFE./admin
In Tutor, we can only easily change LANGUAGE_CODE
, LANGUAGES and Account Settings language list cannot be changed.
Is your feature request related to a problem? Please describe. Problem described here: https://discuss.openedx.org/t/translations-issue-in-redwood-tutor-18/13953/3 Currently most of the French translations need a review on transifex and that's why almost nothing is translated to French when setting the language code to
fr
. @OmarIthawi suggested to use French Canadian (which is fully reviewed) until French get reviewed. However, when answeringfr_CA
orfr-ca
orfr_ca
to the questionThe default language code for the platform [en]
in the interactive platform configuration (tutor local launch
) I get the error:Error: 'fr-ca' is not one of 'en', 'am', 'ar', 'az', 'bg-bg', 'bn-bd', 'bn-in', 'bs', 'ca', 'ca@valencia', 'cs', 'cy', 'da', 'de-de', 'el', 'en-uk', 'en@lolcat', 'en@pirate', 'es-419', 'es-ar', 'es-ec', 'es-es', 'es-mx', 'es-pe', 'et-ee', 'eu-es', 'fa', 'fa-ir', 'fi-fi', 'fil', 'fr', 'gl', 'gu', 'he', 'hi', 'hr', 'hu', 'hy-am', 'id', 'it-it', 'ja-jp', 'kk-kz', 'km-kh', 'kn', 'ko-kr', 'lt-lt', 'ml', 'mn', 'mr', 'ms', 'nb', 'ne', 'nl-nl', 'or', 'pl', 'pt-br', 'pt-pt', 'ro', 'ru', 'si', 'sk', 'sl', 'sq', 'sr', 'sv', 'sw-ke', 'ta', 'te', 'th', 'tr-tr', 'uk', 'ur', 'vi', 'uz', 'zh-cn', 'zh-hk', 'zh-tw'.
Describe the solution you'd like Would it be possible to extend the list of available language codes ? (using all those available on transifex) I have identified that the list is defined here: https://github.com/overhangio/tutor/blob/2959e6eec230c72d10417f886179a1878cdd7143/tutor/interactive.py#L66 However, I haven't tried to manually set the variable
LANGUAGE_CODE
tofr_CA
in theconfig.yml
file to see if it works (it is not clear to me yet where and how the variable is used to pull translations fromatlas
). So I don't know if additional modifications are needed (or if addingfr_CA
to the above list is sufficient).