Fix translations missing for ckeditor (#1142)

Synchronize localizations from Transifex
This commit is contained in:
RainLoop Team 2016-08-08 21:58:06 +03:00
parent fa6d7b3b86
commit 6e453553e0
38 changed files with 1153 additions and 1170 deletions

View file

@ -2,7 +2,7 @@
import window from 'window';
import _ from '_';
import $ from '$';
import {oHtmlEditorDefaultConfig, oHtmlEditorLangsMap} from 'Common/Globals';
import {htmlEditorDefaultConfig, htmlEditorLangsMap} from 'Common/Globals';
import * as Settings from 'Storage/Settings';
class HtmlEditor
@ -236,7 +236,7 @@ class HtmlEditor
initFunc = () => {
const
config = oHtmlEditorDefaultConfig,
config = htmlEditorDefaultConfig,
language = Settings.settingsGet('Language'),
allowSource = !!Settings.appSettingsGet('allowHtmlEditorSourceButton'),
biti = !!Settings.appSettingsGet('allowHtmlEditorBitiButtons');
@ -259,7 +259,7 @@ class HtmlEditor
config.enterMode = window.CKEDITOR.ENTER_BR;
config.shiftEnterMode = window.CKEDITOR.ENTER_P;
config.language = oHtmlEditorLangsMap[language] || 'en';
config.language = htmlEditorLangsMap[(language || 'en').toLowerCase()] || 'en';
if (window.CKEDITOR.env)
{
window.CKEDITOR.env.isCompatible = true;