Writing RTL Content to Sitecore

This is a question that stems in part from my lack of linguistic understanding of Arabic and other RTL languages.

I am working on Sitecore site which now requires localization for RTL languages. The spec states that all text elements must be right-aligned, and of course the dir = "rtl" attribute applies.

However, I cannot easily figure out whether to switch the Sitecore content editor (not just the WYSIWYG control, but all input fields) to RTL and how to do it. Creating an Arabic version of an existing item does not change the input fields in RTL.

Thank!

+3


source to share


3 answers


The Sitecore client does not currently support RTL.

If you are worried about this, you will have incorrect data on the front - don't worry. RTL just changes the flow of text and won't affect how your content editors enter their content. You can see what I mean here - http://jsfiddle.net/dgtbw4m5/2/



<label for="rtlInput">RTL Input:</label>
<input type="text" id="rtlInput" dir="rtl" />
<br/>
<label for="ltrInput">LTR Input:</label>
<input type="text" id="ltrInput" />

      

Test the two inputs and you will see that it won't make a big difference to the content editor as the only change is the flow of text in the other direction. The value remains unchanged.

+3


source


The Rich Text editor will automatically switch to RTL in the editor, and any text entered will be right-aligned, but no input fields or other controls. You can still enter Arabic text into these controls, but it is easy to align it to the left. As long as your external code has the correct set of RTL tags, it will render the end user correctly.



Also remember that you have a page editor at your disposal and you have to design your site with this in mind using the page editor, even simple text fields will be RTL.

+4


source


when content is mixed with any RTL and English, the content is mixed up in a different order. Because the English locale is left to right by default. To avoid this, follow the "dir" tag for English content.

Use span tag in english work with dir = "RTL" <span dir = "RTL"> English </span>

أواجه مشك ** English ** ال محتوى ممزوج باللغتين الإنجليزية والعربية.

0


source







All Articles