GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Oct 26, 2014 5:10 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Prevent automatic language detection / interface flip
PostPosted: Sun Jun 05, 2011 9:30 am 
Offline

Joined: Sun Jun 05, 2011 9:13 am
Posts: 2
Hello.
The gtk2 runtime automatically detects system language and flips the interface if the language is a right-to-left language, e.g Persian and Arabic.
This way programs that were written to appear left-to-right will display incorrectly. And the program that i'm working with (the Geany IDE) has no options to let users change language/flipping settings.
Can I force gtk to English language and no flipping? Via the .gtkrc file or any other way?


Top
 Profile  
 
 Post subject: Re: Prevent automatic language detection / interface flip
PostPosted: Sun Jun 05, 2011 10:43 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hello and welcome to the GTK+ forums!

You can set the application language at runtime through various LC_* and LANG environment variables. Ask Google about various options that those variables offer, but simply running your application like this should work:
Code:
LANG="C" ./yourapp

Tadej


Top
 Profile  
 
 Post subject: Re: Prevent automatic language detection / interface flip
PostPosted: Sun Jun 05, 2011 4:55 pm 
Offline

Joined: Sun Jun 05, 2011 9:13 am
Posts: 2
Thanks for the fast reply and warm receiving of new users. :)
But... I forgot to say I'm running under Windows. :blush:
When I set the language of Windows to English, Geany appears nice, but I don't wanna change language now and then whenever I use Geany.
Is there a .gtkrc trick, or, say, registry trick, etc to force gtk to select English as the default language for running programs?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group