From 3e4b8002cd96a29831cc99d15db13b0b7f07fb73 Mon Sep 17 00:00:00 2001 From: Esenjin Date: Sat, 3 Feb 2024 12:36:03 +0100 Subject: [PATCH] =?UTF-8?q?chatgpt=20m'as-tu=20sauv=C3=A9=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desktop/head_tag.html | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/desktop/head_tag.html b/desktop/head_tag.html index cbe49ac..6f34bea 100644 --- a/desktop/head_tag.html +++ b/desktop/head_tag.html @@ -117,5 +117,61 @@ api.modifyClass("controller:composer", { } }); +// TEXTS +let translations = I18n.translations[I18n.currentLocale()].js; +if (!translations) { + translations = {}; +} +if (!translations.composer) { + translations.composer = {}; +} + +translations.composer.underline_button_title = settings.underline_button; +translations.composer.underline_text = + settings.underline_text; + +translations.composer.align_center_button_title = settings.align_center_button; +translations.composer.align_center_text = + settings.align_center_text; + +translations.composer.align_justify_button_title = settings.align_justify_button; +translations.composer.align_justify_text = + settings.align_justify_text; + +translations.composer.strikethrough_button_title = settings.strikethrough_button; +translations.composer.strikethrough_text = + settings.strikethrough_text; + +translations.composer.superscript_button_title = settings.superscript_button; +translations.composer.superscript_text = + settings.superscript_text; + +translations.composer.subscript_button_title = settings.subscript_button; +translations.composer.subscript_text = + settings.subscript_text; + +translations.composer.bleu_color_button = settings.bleu_color_button.default; +translations.composer.bleu_color_text = + settings.bleu_color_text; + +translations.composer.rose_color_button = settings.rose_color_button.default; +translations.composer.rose_color_text = + settings.rose_color_text; + +translations.composer.jaune_color_button = settings.jaune_color_button.default; +translations.composer.jaune_color_text = + settings.jaune_color_text; + +translations.composer.orange_color_button = settings.orange_color_button.default; +translations.composer.orange_color_text = + settings.orange_color_text; + +translations.composer.rouge_color_button = settings.rouge_color_button.default; +translations.composer.rouge_color_text = + settings.rouge_color_text; + +translations.composer.vert_color_button = settings.vert_color_button.default; +translations.composer.vert_color_text = + settings.vert_color_text; -- 2.45.2