Changing language on WYSIWYG editor

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
rlkb
Posts: 9
Joined: Sat Aug 09, 2014 3:51 am

Changing language on WYSIWYG editor

Post by rlkb »

Im trying to change the WYSIWYG language according to this:

Code: Select all

Note: phpMyFAQ uses a WYSIWYG online editor that has support for multiple languages. However, phpMyFAQ comes only with English language pack installed so changing the current language will not change the language of WYSIWYG editor. If you would like to have WYSIWYG editor in another language, just download the latest language pack, extract it and upload the extracted files to admin/editor directory under your phpMyFAQ's installation directory on your web server.
The language is still in english, what else I need to do to change the language pack in WYSIWYG?
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Changing language on WYSIWYG editor

Post by Thorsten »

Hi,

just copy the language pack into

phpmyfaq/admin/editor/langs/

and it should work

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rlkb
Posts: 9
Joined: Sat Aug 09, 2014 3:51 am

Re: Changing language on WYSIWYG editor

Post by rlkb »

For some reason it doesn't work with hebrew.
When I edit the footer.php file to change the tinymce.init language from 'en' to 'he_IL' (the name of the js file in myphpfaq/admin/editor/langs) the editor just disappears.
When I do the same, just with 'de' instead of 'he_IL' it works flawlessly.
rlkb
Posts: 9
Joined: Sat Aug 09, 2014 3:51 am

Re: Changing language on WYSIWYG editor

Post by rlkb »

OK, I found the reason.
I downloaded a language pack for TinyMCE 4.x by mistake, and the phpmyfaq uses version 3.x
The ony problem is that the translations page for TinyMCE 3.x is broken, so there's no way to change the language currently.

Is the new version of phpmyfaq with the new version of TinyMCE going to be released any time soon?
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Changing language on WYSIWYG editor

Post by Thorsten »

Hi,

phpMyFAQ 2.9 will use TinyMCE 4, the first release (as alpha) will be out really soon!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rlkb
Posts: 9
Joined: Sat Aug 09, 2014 3:51 am

Re: Changing language on WYSIWYG editor

Post by rlkb »

Is there a way to implement it now?
I can change the script in the footer.php file, or it is more complicated than that?
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Changing language on WYSIWYG editor

Post by Thorsten »

Hi,

it's more like that as TinyMCE changed a lot compared to v3. I hope to release the first alpha release next week!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rlkb
Posts: 9
Joined: Sat Aug 09, 2014 3:51 am

Re: Changing language on WYSIWYG editor

Post by rlkb »

Next week?!
Great, i will wait with patience :mrgreen:

Thanks for the help
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Changing language on WYSIWYG editor

Post by Thorsten »

Hi,

the alpha version is not ready for production sites and lacks some features but it's worth testing :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rlkb
Posts: 9
Joined: Sat Aug 09, 2014 3:51 am

Re: Changing language on WYSIWYG editor

Post by rlkb »

Hi Thorsten,
TinyMCE crew fixed the problem in their site, but im still having issues with changing the language in TinyMCE editor.

I placed the Hebrew v3.x language pack files in their folders, but then the TinyMCE box just disappears.
I then tried to change the language in the footer.php file in the TinyMCE.init from 'en' to 'he', and that doesnt work either.
I renamed the file inside faq/admin/editor/langs from he.js to en.js + in the file itself from "tinyMCE.addI18n({he:{" to "tinyMCE.addI18n({en:{"
That translate some of the TinyMCE editor, but I dont want to change every file of the language pack, and i dont know if it will work either.

Any suggestions?

those are the errors i get, i don't know if it helps.

Code: Select all

The value "device-width;" for key "width" is invalid, and has been ignored. session.keepalive.php:10
The value "1.0;" for key "initial-scale" was truncated to its numeric prefix. session.keepalive.php:10
The value "1.0;" for key "maximum-scale" was truncated to its numeric prefix. session.keepalive.php:10
Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead. session.keepalive.php:10
GET http://rlkb.000space.com/info/admin/editor/plugins/phpmyfaq/langs/he.js?1408241372 404 (Not Found) tiny_mce.js?1408241372:1
Failed to load: http://rlkb.000space.com/info/admin/editor/plugins/phpmyfaq/langs/he.js tiny_mce.js?1408241372:1
GET http://rlkb.000space.com/info/admin/editor/plugins/syntaxhl/langs/he.js?1408241372 404 (Not Found) tiny_mce.js?1408241372:1
Failed to load: http://rlkb.000space.com/info/admin/editor/plugins/syntaxhl/langs/he.js tiny_mce.js?1408241372:1
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Changing language on WYSIWYG editor

Post by Thorsten »

Hi,

I fixed the HTML5 issue with the viewport stuff.

The he.js file is missing in the folder /admin/editor/plugins/phpmyfaq/langs/

Then it should work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rlkb
Posts: 9
Joined: Sat Aug 09, 2014 3:51 am

Re: Changing language on WYSIWYG editor

Post by rlkb »

Thanks.
admin/editor/plugins/syntaxhl/langs/he.js was missing as well, since there's no such file for my language, so I just copies the en.js and changed the name to he.js
works great now! :mrgreen:
Post Reply