-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend allowed language codes #1123
Comments
A related issue was discussed here, about Latvian: https://discuss.openedx.org/t/open-edx-localization/13832
|
@regisb Thanks for your quick reply ! To your 5th point: Haha yes I was also surprised ! |
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:
In Tutor, we can only easily change |
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 answering
fr_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:
tutor/tutor/interactive.py
Line 66 in 2959e6e
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).The text was updated successfully, but these errors were encountered: