As a developer we must test our applications in different languages. There are some tools available to do this. If your app is working with numbers and currencies you want also have the default number and currency formats for the selected language, not only the GUI. You can change the language and the locale settings (number and currency) in the Mac OS X settings, but these are to many steps. You can use the command line in a terminal to start an app in a different language, or you can use my tool “Aana App Language”.
Command line in terminal:
Language in English and Locale settings, currency in British
/Applications/.app/Contents/MacOS/’ -AppleLanguages “(en-US)” -AppleLocale “en-UK”&
Language in German and Locale settings, currency in
/Applications/.app/Contents/MacOS/’ -AppleLanguages “(de-DE” -AppleLocale “de-DE”&
Use “Aana App Language”
Start “Aana App Language”, drop your app, select a language and a region and double click on the app icon
“Aana App Language” is only for Mac OS X and it is free to use for all people (developer and customer). You can download it here: Aana App Language
If i am allowed to recommend changes, you should autoselect the first entry or current locale right after your PopUpMenu of detected languages has been filled and can you make your App please AutoQuit?
I made a few tests:
If no locale or region is selected, the following message appears on launch of the selected App:
If no App has been dropped into the canvas and you double click on the canvas, a NOE occurs:
If you try to use Acana with Acana, the following message is shown:
Same Apps do not show any language. “A Better Finder Attributes 5” f.e.:
Popup menus doesn’t have a default selection. If no language and no region is selected, the app start with your system settings. If a language is selected and no region, the app starts in the selected language with your system region. If only a region is selected and no language, the app starts with the selected region and your system language. Now application auto quit is activated.
If you would test your application in different languages in debug mode with Xojo, you can set these options in section “Debug => Command Line Arguments”
Example: Language German, Region Switzerland
–args -AppleLanguages “(de)” -AppleLocale de-CH
Example: Language Portuguese, Region Brazil
–args -AppleLanguages “(pt)” -AppleLocale pt-BR