ZenphotoCMS Forum
French language file not working in Tinymce plugin - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: French language file not working in Tinymce plugin (/thread-13994.html)



French language file not working in Tinymce plugin - hermor - 08-11-2024

Hello
I discovered a small problem in the application of the tinymce plugin. The translation into the French language is not applied. I solved the problem by deleting line 121 of the tinymce.php file. This line replaces _ with - in the $loc variable to refer to the js language file included in the plugin, which is not justified for language files with two parts such as fr_FR or others for example. This replacement must date from an old version of the language files and is no longer applicable.
Thank you for the latest update 1.6.5
Best regards




French language file not working in Tinymce plugin - acrylian - 08-11-2024

Thanks, it seems that the tinymce language files sadly use a different naming convention than we do… We probably have to create a internal catalogue to translate/match these these…




French language file not working in Tinymce plugin - hermor - 08-11-2024

Thanks for this very quick response.
I don't think so, it's consistent because the language option (locale) set is also fr_FR, option chosen at the time of installation.




French language file not working in Tinymce plugin - acrylian - 08-11-2024

Indeed, you are right. Then it might be an issue with the lang file from TinyMCE. If French otherwise work so your server supports it it must be an issue with the TinyMCE lang file we cannot do much about.




French language file not working in Tinymce plugin - sbillard - 09-11-2024

@hermor:
Your first analysis is correct. Delete that line in tinymce.php and the languages should work. They do for me.




French language file not working in Tinymce plugin - sbillard - 09-11-2024

Delete the replace, that is.




French language file not working in Tinymce plugin - acrylian - 09-11-2024

Yes, we had figured out the same already but have not yet committed the fix.




French language file not working in Tinymce plugin - fretzl - 09-11-2024

The fix is up.




French language file not working in Tinymce plugin - ctdlg - 09-11-2024

Why are there 2 tinymce folders : tinymce and tinymce4 ?
And of course tinymce.php and tinymce4.php corresponding files !

Sorry, I found the difference : tinymce 4 or tinymce 7 !

How to replace the default white theme ? I can find 2 skins : content and ui.




French language file not working in Tinymce plugin - acrylian - 09-11-2024

It really helps to read release posts ;-)




French language file not working in Tinymce plugin - ctdlg - 09-11-2024

True, I missed this info :

tinymce: Long overdue update to TinyMCE 7+ [acrylian, bic, fretzl]

This is the successor of the tinymce4 plugin which will be removed with the next version. NOTE: If you have used custom configs for tinymce4 you may have to re-create them as a number of former TinyMCE plugins are gone and some options have changed that may cause trouble in the future.
The number of default config files has been reduced to slilm, basic and full.



French language file not working in Tinymce plugin - ctdlg - 09-11-2024

And I changed the skin by editing the file zenphoto-full.js.php :
tinymce.init({
skin: "oxide-dark",
content_css: "dark",




French language file not working in Tinymce plugin - ctdlg - 09-11-2024

Thank you for the language fix, my editor is now in French.




French language file not working in Tinymce plugin - hermor - 11-11-2024

I'm glad to see that my suggestion was taken into account. For me it's easier to work in the language of Molière




French language file not working in Tinymce plugin - acrylian - 11-11-2024

Glad we could fix it with your help.