Jump to:

23361 Posts in 18124 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Arabic content ? Any experience ?

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

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

Page: 1 2
Go to End
Author Topic: 1672 Views
  • rob.s
    Avatar
    Community Member
    78 Posts

    Re: Arabic content ? Any experience ? Link to this post

    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

    1672 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.