[Wine] Re: Multilingual application on Mac OS X

SunLight wineforum-user at winehq.org
Fri May 23 11:36:39 CDT 2008

Start multilingual application from Apple's Terminal:
1. Start Terminal from Finder menu>Go>Applications>Utilities>Terminal
2. Open Terminal preferences from Terminal menu>Preferences>Settings>Advanced
3. Untick "Set LANG environmet variable on startup". Doing so will make some confusion with non english chars, but this is minor side efect.
4. Now "LANG=xx_YY.UTF-8 /Application/Darwine/Wine.bundle/Contents/bin/wine program.exe" will work.

Better approach using AppleScript:
1. Open Script Editor from Finder menu>Go>Applications>AppleScript>Script Editor
2. Copy & Paste the folowing:

	do shell script "cd ~/programdir; LANG=bg_BG.UTF-8 /Applications/Darwine/Wine.bundle/Contents/bin/wine program.exe"
end try

3. Go to Script Editor menu>Save As... Name it, choose Application from "File Format" menu, untick "Startup Screen". Save it. After that copy it to Applications folder. This will start wine/windows program with one click.

It is good idea to tick "Follow system keyboard layout". It is in X11's menu>X11>Preferences>Input. X11 will start with your wine/windows program.
"cd ~/programdir" - this assume that program.exe is installed in programdir, which is located in your home directory. Often going there is required for proper operation. It is important to execute commands with one "do shell script".
"try-end try" block will protect script from any errors, that may (and will) occur.

Special thanks to mikolajz. You motivate me to work on a problem.

More information about the wine-users mailing list