Member
Member
doron   2009-06-25, 18:14
#1

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!

Member
Member
sbillard   2009-06-25, 18:41
#2

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.

Member
Member
doron   2009-06-26, 07:48
#3

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!

Member
Member
doron   2009-06-26, 08:18
#4

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!

Administrator
Administrator
acrylian   2009-06-26, 08:42
#5

Just to mention Zenpage has a separate TinyMCE config file.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.