-
Notifications
You must be signed in to change notification settings - Fork 25
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
Wrong norwegian translation files being used #113
Comments
This wouldn't be an issue if one could override in the CKEditor config with Not respecting language choice in configIf I choose Not using the loaded translation fileFurthermore, if I use "Norwegian Nynorsk" language in the Craft App, the no.js correctly loads because of the following line (I think?): But it does not take effect! It defaults back to English language. So even though the language file is loaded, it doesn't seem to get used. From my little debugging, it seems to be related to the following line in Field.php, defining the ui language based on the Craft App language, not taking into account translation options in the config nor the correctly loaded language file "no" instead of the non existent "nn". |
Hi, thanks for reporting and for all the details! Translations in the All other translations come from CKEditor itself. I just raised a PR that makes it possible to use CKE config to choose the language to be used for the CKEditor UI (and content). It can be done via
if you wish to change the UI and content language independently. I also added the |
This is a really nice solution! Thank you very much! 🙌 |
PR merged! I had to remove the config checks as there’s no way that could have applied to plugin-supplied CKEditor bundles. So CKEditor fields will continue to be translated based on the user’s preferred language alone, not based on the editor config. But each of the issues explained here should be resolved. |
CKEditor 3.5.0 is out with this fix 🎉 Note that the update requires Craft 4.5.0. |
Description
CKEditor unfortunately currently have two duplicate norwegian language files in use.
With duplicate, I mean that they both refer to the same norwegian dialect (the main "Bokmål" dialect).
The alternate "nn" is not supported, but rather the "no" variant, which basically is the same as "nb".
The problem is that the "no" is the developed language file by CKEditor (see coverage vs "nb" in image below)
Since Craft CMS (When using Norwegian Bokmål) uses the standard "nb" language code, it uses the substantially less updated "nb" translation, which causes a lot of lacking translations.
Optimally CKEditor should be using "nn" and "nb", but seeing that there exists no "nn" (Nynorsk) translations, the current best fix seems to be to route both "nn" and "nb" to the "no" translation. This will enhance the experience for all Norwegian CKEditor users.
See issue discussed 10 years ago on CKEditor issue tracking
https://dev.ckeditor.com/ticket/10135
"The simplest fix would simply be to keep the macrolanguage (no) and ditch nb altogether, since there are no Nynorsk translators anyway."
Additional info
The text was updated successfully, but these errors were encountered: