chatgpt m'as-tu sauvé ?

This commit is contained in:
Esenjin 2024-02-03 12:36:03 +01:00
parent a35a27f10d
commit 3e4b8002cd

View File

@ -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;
</script> </script>