mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +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
|
|
@ -90,7 +90,7 @@ export const bIsHttps = window.document && window.document.location ? 'https:' =
|
|||
/**
|
||||
* @type {Object}
|
||||
*/
|
||||
export const oHtmlEditorDefaultConfig = {
|
||||
export const htmlEditorDefaultConfig = {
|
||||
'title': false,
|
||||
'stylesSet': false,
|
||||
'customConfig': '',
|
||||
|
|
@ -128,11 +128,14 @@ export const oHtmlEditorDefaultConfig = {
|
|||
/**
|
||||
* @type {Object}
|
||||
*/
|
||||
export const oHtmlEditorLangsMap = {
|
||||
export const htmlEditorLangsMap = {
|
||||
'ar_sa': 'ar-sa',
|
||||
'bg_bg': 'bg',
|
||||
'cs_CZ': 'cs',
|
||||
'de_de': 'de',
|
||||
'el_gr': 'el',
|
||||
'es_es': 'es',
|
||||
'et_ee': 'et',
|
||||
'fr_fr': 'fr',
|
||||
'hu_hu': 'hu',
|
||||
'is_is': 'is',
|
||||
|
|
@ -141,20 +144,20 @@ export const oHtmlEditorLangsMap = {
|
|||
'ko_kr': 'ko',
|
||||
'lt_lt': 'lt',
|
||||
'lv_lv': 'lv',
|
||||
'nb_no': 'nb',
|
||||
'nl_nl': 'nl',
|
||||
'bg_no': 'no',
|
||||
'pl_pl': 'pl',
|
||||
'pt_pt': 'pt',
|
||||
'pt_br': 'pt-br',
|
||||
'pt_pt': 'pt',
|
||||
'ro_ro': 'ro',
|
||||
'ru_ru': 'ru',
|
||||
'sk_sk': 'sk',
|
||||
'sl_si': 'sl',
|
||||
'sv_se': 'sv',
|
||||
'tr_tr': 'tr',
|
||||
'uk_ua': 'ru',
|
||||
'zh_tw': 'zh',
|
||||
'zh_cn': 'zh-cn'
|
||||
'uk_ua': 'uk',
|
||||
'zh_cn': 'zh-cn',
|
||||
'zh_tw': 'zh'
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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