ZenphotoCMS Forum
RTL support? - 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: RTL support? (/thread-5387.html)



RTL support? - doron - 2009-06-25

Hello,
Is there a way to have RTL (right to left) language support in zenphoto?
What's needed are RTL buttons in text editing, comments(!) etc.
I hacked something in, using "allowed tags" - allow dir= in p and div tags, and then use them via direct HTML - but this is awkward to use, and can't be asked of users when they comment.
Am I missing something obvious? Is this available, or planned?
(seems like RTL support does exist in zenpage, but I can't find it in zenphoto).
Thanks!




RTL support? - sbillard - 2009-06-25

The text editor used by Zenphoto is either tinyMCE or the standard browser window. Comments are standard forms so the CSS for the field would set the direction.




RTL support? - doron - 2009-06-26

Thanks! This is extremely helpful.
I went on to try and ask tinyMCE to present the ltr/rtl buttons. I found ...zp-core/plugins/tiny_mce/themes/zenphoto/editor_template.js but just adding the ltr and rtl button names to the list of buttons did not do the trick yet. I suspect I need to tell tinyMCE to load its "directionality" plugin, but am still looking for how this would be done (I'm new to both zenphoto and tinyMCE). Any hint would be greatly appreciated.

Thanks again!




RTL support? - doron - 2009-06-26

Following up on my own post, I have located zp-core/js/editor_config.js and now have the direction buttons. Still needs some fine tweaking but it's getting there.

Thank you!




RTL support? - acrylian - 2009-06-26

Just to mention Zenpage has a separate TinyMCE config file.