Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Arabic content ? Any experience ?


Go to End


9 Posts   3100 Views

Avatar
rob.s

Community Member, 78 Posts

2 December 2010 at 1:13am

Edited: 02/12/2010 1:28am

Ahhh, thanks.

I dont know, but is it neccessary to set "normal" inputs/textareas ín RTL-Mode, too?

I've created the following file:

cms/css/backend-rtl.css

input, textarea, select {
    direction: rtl !important;
}

And added to your condition:

// Switch directionality for arabic sites in Backend Editors
if(stristr($_SERVER['REQUEST_URI'], 'ar_SA') !== FALSE || stristr($_SERVER['REQUEST_URI'], 'ar-')){
   HtmlEditorConfig::get('cms')->setOption('directionality', 'rtl');
   LeftAndMain::require_css('cms/css/backend-rtl.css');
}

And now the form fields are in RTL mode, too.

Is this correct for "arabic mode" ?

Rob

Go to Top