New topic: 

Opening a localized app in a different language

<http://forums.realsoftware.com/viewtopic.php?t=46574>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        relaht          Post subject: Opening a localized app in a 
different languagePosted: Tue Jan 15, 2013 6:01 pm                         
Joined: Fri Dec 01, 2006 9:39 pm
Posts: 175                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                gre          Post subject: Re: 
Opening a localized app in a different languagePosted: Tue Jan 15, 2013 6:35 pm 
                        
Joined: Sun Feb 28, 2010 4:14 am
Posts: 30                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                relaht          Post subject: 
Re: Opening a localized app in a different languagePosted: Tue Jan 15, 2013 
6:44 pm                         
Joined: Fri Dec 01, 2006 9:39 pm
Posts: 175                Sorry for the confusion. The script I mentioned at my 
first post, works as it should.
So the problem is not existing!    
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to