Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rtl support
#1
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?
Reply
#2
What are you rtl ing?

Back end
Front end
Ckeditor
?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
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.
Reply
#4
Never mind, I solved it.
Reply
#5
You should share solutions.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
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.
Reply
#7
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.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)