Page 1 of 1

RTL in gtkdialog..

Posted: Sun 14 Apr 2013, 10:47
by hannysabbagh
Hello.

i have gtkdialog 0.8.3 installed, i want to know if gtkdialog can display the text from right to left?? because this is very important in some languages like Arabic..?

thanks.

RTL in gtkdialog..

Posted: Sun 14 Apr 2013, 11:19
by L18L
The surest and probably the quickest way to find out is to try. Let us know what you find out. :idea:
BDX wrote:Puppy linux fact:Life is experiments......Download and try,Don't search and cry.
quoted from The beginning of Arabic translation :lol:

Posted: Sun 14 Apr 2013, 11:46
by hannysabbagh
Well , i already did and i discoverd that it can't :lol:
So here i want to ask if anybody can display the text in Gtkdialog boxes using RTL? :)
thanks

Posted: Sun 14 Apr 2013, 11:58
by L18L
my console wrote:# gtkdialog --version
gtkdialog version 0.8.3 release (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with additional support for: Glade.
#
Let us hope forum member thunor will jump in.

Or you jump to Gtkdialog Development
Post here any bugs you know of or feature requests.

Posted: Sun 14 Apr 2013, 12:01
by hannysabbagh
i think i am going to jump there :D
thanks :lol:

Posted: Sun 14 Apr 2013, 12:44
by thunor
Surely right-to-left is managed by GTK and the user's locale!?

I'm guessing that if your locale is right-to-left then the GTK libraries will render the text according to the locale in just the same way that "3.14" in Britain becomes "3,14" in Europe.

I have noticed that there are RTL versions of some stock icons so I'm pretty sure GTK manages it -- I can't find any properties to set.

Check your locale.

Regards,
Thunor

Posted: Sun 14 Apr 2013, 13:01
by 01micko
That was pretty much why we created gtkdialog-splash.. for RTL support (and some other special UTF.8 chars that yaf-splash couldn't handle, sorry a bit of a history lesson).

See here

Iguleder may have more info, he's very knowledgeable.

HTH

Posted: Sun 14 Apr 2013, 15:49
by hannysabbagh
Ok , you are right in saying that it is GTK is the responsible about RTL or LTR, the problem that i discovered is that if i changed my locale to English then it will display RTL, and if i changed it to Arabic it will display it LTR !! it is reversed here!

i tried to install Elementary OS to check from the problem, this bug is only in my system not in the other ones.

so do you know how to change GTK displaying settings even if i use an LTR or RTL text?
Thanks.

Posted: Sun 14 Apr 2013, 18:36
by Karl Godt
Changing the locale can screw things a bit .
The old chooselocale script uses localedef binary . That is a funny thing, that does

Code: Select all

localedef --force -v --no-archive -f ISO-8859-16 -i zu_ZA zu_ZA.ISO-8859-16 2>/root/zu_ZA.ISO-8859-16.force.errs
create a /usr/lib/locale/zu_ZU.iso885916 folder
but if there is an '@' then it becomes
/usr/lib/locale/wa_BE@euro.ISO-8859-15
for example .

Also make sure that

Code: Select all

locale
locale -a
grep 'LANG' /etc/profile
output is correct ,
Since /etc/profile is sourced by .bashrc , locale changes might mismatch in console and X apps, as long as X is not restarted .