2009-04-19, 10:18 AM
I did a plugin for the KDE Community forums to give us RTL text support for hebrew and arabic:
http://websvn.kde.org/trunk/www/sites/fo.../rtl-i18n/
This would show RTL text for the KDE-hebrew team forum: http://forum.kde.org/hebrew-f-87.html
Now I first tried to wrap {$post['message']} in template "postbit" with {$rtl1} and {$rtl2}, and I set their values to <div align="right" dir="rtl"> and </div> respectively when the hook "postbit" is run. But that didn't work, so we directly modified $post['message'] for each post (didnt modify it in the db) -- please refer to the plugin.
Now I noted that $post['message'] changes work only for thread posts and replies, but not for PMs and thread/reply previews. It is clear that $post['message'] is used for all these and adding a random text next to the variable in the templates shows up in the body of the message. Should I be looking for replacing some other variable in case of PMs and previews?
http://websvn.kde.org/trunk/www/sites/fo.../rtl-i18n/
This would show RTL text for the KDE-hebrew team forum: http://forum.kde.org/hebrew-f-87.html
Now I first tried to wrap {$post['message']} in template "postbit" with {$rtl1} and {$rtl2}, and I set their values to <div align="right" dir="rtl"> and </div> respectively when the hook "postbit" is run. But that didn't work, so we directly modified $post['message'] for each post (didnt modify it in the db) -- please refer to the plugin.
Now I noted that $post['message'] changes work only for thread posts and replies, but not for PMs and thread/reply previews. It is clear that $post['message'] is used for all these and adding a random text next to the variable in the templates shows up in the body of the message. Should I be looking for replacing some other variable in case of PMs and previews?