mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57:03 +03:00
Fix translations missing for ckeditor (#1142)
Synchronize localizations from Transifex
This commit is contained in:
parent
fa6d7b3b86
commit
6e453553e0
38 changed files with 1153 additions and 1170 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue