GetSimple Support Forum
rtl support - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Themes (http://get-simple.info/forums/forumdisplay.php?fid=10)
+--- Thread: rtl support (/showthread.php?tid=5328)



rtl support - HagayM - 2013-11-01

I'm trying to Hebrewize GetSimple:
I've already completed the translation (based on the original Hebrew language file), but I'm still facing problems with admin theme page direction.
Somehow, the changes that I've made to the admin/template/css.php file, are picked up by the index file, and cached properly, but the actual css rule direction:rtl; is not applied.
Any ideas?


RE: rtl support - shawn_a - 2013-11-01

What are you rtl ing?

Back end
Front end
Ckeditor
?


RE: rtl support - HagayM - 2013-11-01

Everything.
But the starting point is the backend.
I don't think I'll have any issues with Ckeditor, I've already done it several times.


RE: rtl support - HagayM - 2013-11-01

Never mind, I solved it.


RE: rtl support - shawn_a - 2013-11-01

You should share solutions.


RE: rtl support - HagayM - 2013-11-02

It's quite basic really. these changes should be made to the css file admin\template\css.php:

ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input {
...
direction: rtl;
}
All text-align should be 'right' instead of left.
The rightsec class should be changed to float right as well.
In order to force using Hebrew as default language, I've changed line #163 in admin\inc\common.php:
$LANG = 'he_IL';
This will take care of the installation phase.
To have the admin section rtl:
In admin\template\header.php, I've added a class to the header div ca;;ed rtl_header:
<div class="wrapper clearfix rtl_header"> , and added 2 css rules to css.php:
.rtl_header h1{
position: relative;
float: right;
}
.rtl_header #pill{
position: relative !important;
float: left;
}

As for running the whole site as rtle one, the selected theme must be adjusted, or a new theme should be built.

Actually, this is quite tedious job, and maybe I'll find the energy to automate this with some parameter added to the configuration file, and some coding.


RE: rtl support - shawn_a - 2013-11-02

Thanks, surely we can add this with a single change and variable.

also
In order to force hebrew installation lang you can just remove the english lang file or make gsconfig active and set it there for your package. I think either of those should work.