Language of the Tinymce editor in French (XH 1.7.3)

Questions about how to use the online - editors and suggestions how to improve them
Post Reply
doczimut
Posts: 126
Joined: Thu Dec 25, 2008 1:10 pm
Location: Normandy (France)

Language of the Tinymce editor in French (XH 1.7.3)

Post by doczimut » Fri Oct 02, 2020 10:39 am

Hello, I can not put the language of the Tinymce editor in French.

I ran some tests. Download the latest version (XH 1.7.3). Copy for example the files /cmsimple/languages/en.php and metaen.php in fr.php and metafr.php, and in it.php and metait.php.

In administration, I change the default language to DE, EN, IT, the Tinymce editor is in German, English, Italian. If I change to FR, the Tinymce editor is in English (default language).
The FR language is not taken into account by the Tinymce editor.

One last test: as the IT language is taken into account, I renamed the file tinymce4/tinymce/langs/it.js to fr.js, the Tinymce editor remains in English (default language) with the FR language.

Do you have a solution?

-----------------------------------------------------------
Bonjour, je n’arrive à mettre en français la langue de l’éditeur Tinymce.

J’ai effectué des tests. Télécharger la dernière version (XH 1.7.3). Copier par exemple les fichiers /cmsimple/languages/en.php et metaen.php en fr.php et metafr.php, et en it.php et metait.php.

En administration, je change la langue par défaut en DE, EN, IT, l’éditeur Tinymce est bien en allemand, anglais, italien. Si je change en FR, l’éditeur Tinymce est en anglais (langue par défaut).
La langue FR n’est pas prise en compte par l’éditeur Tinymce.

Un dernier test : comme la langue IT est prise en compte, j’ai renommé le fichier tinymce4/tinymce/langs/it.js en fr.js, l’éditeur Tinymce reste en anglais (langue par défaut) avec la langue FR.

Avez-vous une solution ?

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Language of the Tinymce editor in French (XH 1.7.3)

Post by frase » Fri Oct 02, 2020 11:19 am

You have discovered a real bug!

Quick solution:
Open the file ... /plugins/tinymce4/tinymce/langs/fr.js with an editor.
The first line:

Code: Select all

tinymce.addI18n('fr_FR',{
you change to:

Code: Select all

tinymce.addI18n('fr',{
Then the Tiny should talk to you in French. ;-)

In CMSimple_XH 1.7.4 this bug is already fixed!

doczimut
Posts: 126
Joined: Thu Dec 25, 2008 1:10 pm
Location: Normandy (France)

Re: Language of the Tinymce editor in French (XH 1.7.3)

Post by doczimut » Fri Oct 02, 2020 11:53 am

Good :idea:

Post Reply