Compare commits
No commits in common. "776f8a2844e2999c495ce55e7c0330b07bf1c356" and "73770ff339d1b7168157d6dca9d9a52ca730e719" have entirely different histories.
776f8a2844
...
73770ff339
@ -126,49 +126,52 @@ if (!translations.composer) {
|
|||||||
translations.composer = {};
|
translations.composer = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define default values for buttons
|
translations.composer.underline_button_title = settings.underline_button;
|
||||||
const defaultButtons = {
|
translations.composer.underline_text =
|
||||||
underline_button: "Souligner",
|
settings.underline_text;
|
||||||
underline_text: "Texte",
|
|
||||||
|
|
||||||
strikethrough_button: "Barrer",
|
translations.composer.align_center_button_title = settings.align_center_button;
|
||||||
strikethrough_text: "Texte",
|
translations.composer.align_center_text =
|
||||||
|
settings.align_center_text;
|
||||||
|
|
||||||
superscript_button: "Exposant",
|
translations.composer.align_justify_button_title = settings.align_justify_button;
|
||||||
superscript_text: "Texte",
|
translations.composer.align_justify_text =
|
||||||
|
settings.align_justify_text;
|
||||||
|
|
||||||
subscript_button: "Indice",
|
translations.composer.strikethrough_button_title = settings.strikethrough_button;
|
||||||
subscript_text: "Texte",
|
translations.composer.strikethrough_text =
|
||||||
|
settings.strikethrough_text;
|
||||||
|
|
||||||
align_center_button: "Centrer",
|
translations.composer.superscript_button_title = settings.superscript_button;
|
||||||
align_center_text: "Texte",
|
translations.composer.superscript_text =
|
||||||
|
settings.superscript_text;
|
||||||
|
|
||||||
align_justify_button: "Justifier",
|
translations.composer.subscript_button_title = settings.subscript_button;
|
||||||
align_justify_text: "Texte",
|
translations.composer.subscript_text =
|
||||||
|
settings.subscript_text;
|
||||||
|
|
||||||
bleu_color_button: "Colorer en bleu",
|
translations.composer.bleu_color_button_title = settings.bleu_color_button.default;
|
||||||
bleu_color_text: "Texte",
|
translations.composer.bleu_color_text =
|
||||||
|
settings.bleu_color_text;
|
||||||
|
|
||||||
rose_color_button: "Colorer en rose",
|
translations.composer.rose_color_button_title = settings.rose_color_button.default;
|
||||||
rose_color_text: "Texte",
|
translations.composer.rose_color_text =
|
||||||
|
settings.rose_color_text;
|
||||||
|
|
||||||
jaune_color_button: "Colorer en jaune",
|
translations.composer.jaune_color_button_title = settings.jaune_color_button.default;
|
||||||
jaune_color_text: "Texte",
|
translations.composer.jaune_color_text =
|
||||||
|
settings.jaune_color_text;
|
||||||
|
|
||||||
orangecolor_button: "Colorer en orange",
|
translations.composer.orange_color_button_title = settings.orange_color_button.default;
|
||||||
orangecolor_text: "Texte",
|
translations.composer.orange_color_text =
|
||||||
|
settings.orange_color_text;
|
||||||
|
|
||||||
rouge_color_button: "Colorer en rouge",
|
translations.composer.rouge_color_button_title = settings.rouge_color_button.default;
|
||||||
rouge_color_text: "Texte",
|
translations.composer.rouge_color_text =
|
||||||
|
settings.rouge_color_text;
|
||||||
|
|
||||||
vert_color_button: "Colorer en vert",
|
translations.composer.vert_color_button_title = settings.vert_color_button.default;
|
||||||
vert_color_text: "Texte"
|
translations.composer.vert_color_text =
|
||||||
};
|
settings.vert_color_text;
|
||||||
|
|
||||||
// Assign default values if translations are not present
|
|
||||||
Object.keys(defaultButtons).forEach(key => {
|
|
||||||
translations.composer[key + "_title"] = settings[key] ? settings[key].default : defaultButtons[key];
|
|
||||||
translations.composer[key + "_text"] = settings[key + "_text"] ? settings[key + "_text"].default : defaultButtons[key];
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user