Skip to content
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

TinyMCE not works in Czech language #184

Closed
Vantomas opened this issue Oct 19, 2013 · 3 comments
Closed

TinyMCE not works in Czech language #184

Vantomas opened this issue Oct 19, 2013 · 3 comments

Comments

@Vantomas
Copy link

Hi,
TinyMCE dont work with czech language.

The problem is in "code name" of language, tinymce uses "cs", but LMS uses "cz". And then LMS set language in TinyMCE, LMS use variable $_ui_language, where is stored "cz" and TinyMCE doesn't know any language like that.

@chilek
Copy link
Owner

chilek commented Oct 19, 2013

Try the fix from commit:
6f7da9c

@Vantomas
Copy link
Author

Yes, it works. But maybe would be better change language name from "cz" to "cs", because I just found issue with automatic detection with language based on HTTP header Accept-Language.

My web browser send cs-CZ and cs in headers and code in lib/language.php ignores it because don't know something like "cs".
Accept-Language:cs-CZ,cs;q=0.8

In the result I have LMS in English language and I must set language to cz in lms.ini for Czech.

@chilek
Copy link
Owner

chilek commented Oct 24, 2013

@Vantomas that's good idea! I've changed it according to your suggestion in last commit. Please check if everything went fine. Thanks!

@chilek chilek closed this as completed Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants