Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Dec 14, 2018 6:54 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Opening a localized app in a different language
PostPosted: Tue Jan 15, 2013 6:01 pm 
Offline

Joined: Fri Dec 01, 2006 9:39 pm
Posts: 180
My app is localized.
But now some users want to open the app in a different language than the system language.

I found a way by executing this command in a Shell:
defaults write com.my_company.my_app AppleLanguages '("en")'

This works fine and my_app opens in english (independently from the system language)

But the bad thing is, as long as my_app is open, every application will open in english.
If I close my_app everything is back to normal.

EDIT: I was mistaken! It works as it should! :)

When opening the app, use this shell script to read the status:
defaults read com.my_company.my_app AppleLanguages


and set to default, by using this:
defaults remove com.my_company.my_app AppleLanguages


If anybody is interested... ;)


Last edited by relaht on Tue Jan 15, 2013 7:47 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Opening a localized app in a different language
PostPosted: Tue Jan 15, 2013 6:35 pm 
Offline

Joined: Sun Feb 28, 2010 4:14 am
Posts: 37
You may just use Language Switcher. It's free.

Or, if you really need to use a shell command, try launching the application with AppleLanguages option:

/Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages '(pl)'


Top
 Profile  
Reply with quote  
 Post subject: Re: Opening a localized app in a different language
PostPosted: Tue Jan 15, 2013 6:44 pm 
Offline

Joined: Fri Dec 01, 2006 9:39 pm
Posts: 180
Sorry for the confusion. The script I mentioned at my first post, works as it should.
So the problem is not existing! :)


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

All times are UTC - 5 hours


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

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