We currently have a site running multiple languages. There is a requirement for an Arabic version of the site. I understand that I can create a stylesheet for TinyMCE that handles RTL text direction. I can also swap the <html> element in the base template to handle the frontend. However, I don't want to have to recreate arabic version of all the templates just to swap the rich text editor data type.
Is there a way to create a datatype that wraps the Rich text editor datatype and decide which TinyMCE stylesheet to use based on the logged in user? If so, any hints on how to go about implementing this?
I'm fairly well versed in umbraco but haven't coded my own datatype outside of wrapping usercontrols.
However, I'm now thinking about the other elements in the umbraco back end such as text box and simple editor. Any ideas on how to switch these to right to left if the logged in user has the arabic language?
Arabic and TinyMCE
Hi,
We currently have a site running multiple languages. There is a requirement for an Arabic version of the site. I understand that I can create a stylesheet for TinyMCE that handles RTL text direction. I can also swap the <html> element in the base template to handle the frontend. However, I don't want to have to recreate arabic version of all the templates just to swap the rich text editor data type.
Is there a way to create a datatype that wraps the Rich text editor datatype and decide which TinyMCE stylesheet to use based on the logged in user? If so, any hints on how to go about implementing this?
I'm fairly well versed in umbraco but haven't coded my own datatype outside of wrapping usercontrols.
Rob
Hi I've managed to solve this myself by following the instructions in the thread:
http://forum.umbraco.org/yaf_postst9084_How-can-we-use-incomplete-xml-langauge-file-in-umbraco.aspx
However, I'm now thinking about the other elements in the umbraco back end such as text box and simple editor. Any ideas on how to switch these to right to left if the logged in user has the arabic language?
Have you checked this post:
http://our.umbraco.org/forum/templating/templates-and-document-types/6833-Implementing-Multilingual-sites-with-Direction-Effect
Tarek
is working on a reply...