Skip to content
Snippets Groups Projects
Commit 8bc055b6 authored by srosse's avatar srosse
Browse files

OO-851: check the existence of the translation files of tiny mce in the new tinymce4 path

parent d2795990
No related branches found
No related tags found
No related merge requests found
......@@ -336,12 +336,12 @@ public class RichTextConfiguration implements Disposable {
* @param loc
*/
private void setLanguage(Locale loc) {
// tiny does not support country or vairant codes, only language code
// tiny does not support country or variant codes, only language code
String langKey = loc.getLanguage();
String contextRoot = WebappHelper.getContextRoot();
if(StringHelper.containsNonWhitespace(contextRoot)) {
File file = new File(contextRoot, "static/js/tinymce/tinymce/langs/" + langKey + ".js");
File file = new File(contextRoot, "static/js/tinymce4/tinymce/langs/" + langKey + ".js");
if(!file.exists()) {
langKey = "en";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment