From bb73e171ab4ad1ebd65f65446534f44b9bd292c7 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 24 Jul 2024 12:08:48 +0200 Subject: [PATCH] Enable Arabic, Swedish and Cuban Spanish languages --- customize.dist/messages.js | 8 +++++--- customize.dist/translations/messages.ar.js | 18 ++++++++++++++++++ customize.dist/translations/messages.es_CU.js | 18 ++++++++++++++++++ 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 customize.dist/translations/messages.ar.js create mode 100644 customize.dist/translations/messages.es_CU.js diff --git a/customize.dist/messages.js b/customize.dist/messages.js index 2459a246f..a5784b495 100755 --- a/customize.dist/messages.js +++ b/customize.dist/messages.js @@ -5,11 +5,13 @@ (function () { // add your module to this map so it gets used var map = { + 'ar': 'اَلْعَرَبِيَّةُ', 'ca': 'Català', 'cs': 'Čeština', 'de': 'Deutsch', - 'el': 'Ελληνικά', + //'el': 'Ελληνικά', 'es': 'Español', + 'es_CU': 'Español cubano', 'eu': 'Euskara', 'fi': 'Suomi', 'fr': 'Français', @@ -22,9 +24,9 @@ var map = { 'pl': 'Polski', 'pt-br': 'Português do Brasil', 'pt-pt': 'Português do Portugal', - 'ro': 'Română', + //'ro': 'Română', 'ru': 'Русский', - //'sv': 'Svenska', + 'sv': 'Svenska', //'te': 'తెలుగు', 'uk': 'Українська', 'zh': '中文(簡體)', diff --git a/customize.dist/translations/messages.ar.js b/customize.dist/translations/messages.ar.js new file mode 100644 index 000000000..e55c4f50a --- /dev/null +++ b/customize.dist/translations/messages.ar.js @@ -0,0 +1,18 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + +/* + * You can override the translation text using this file. + * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) + in a 'customize' directory (/customize/translations/messages.{LANG}.js). + * If you want to check all the existing translation keys, you can open the internal language file + but you should not change it directly (/common/translations/messages.{LANG}.js) +*/ +define(['/common/translations/messages.ar.js'], function (Messages) { + // Replace the existing keys in your copied file here: + // Messages.button_newpad = "New Rich Text Document"; + + return Messages; +}); + diff --git a/customize.dist/translations/messages.es_CU.js b/customize.dist/translations/messages.es_CU.js new file mode 100644 index 000000000..255febd27 --- /dev/null +++ b/customize.dist/translations/messages.es_CU.js @@ -0,0 +1,18 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + +/* + * You can override the translation text using this file. + * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) + in a 'customize' directory (/customize/translations/messages.{LANG}.js). + * If you want to check all the existing translation keys, you can open the internal language file + but you should not change it directly (/common/translations/messages.{LANG}.js) +*/ +define(['/common/translations/messages.es_CU.js'], function (Messages) { + // Replace the existing keys in your copied file here: + // Messages.button_newpad = "New Rich Text Document"; + + return Messages; +}); +