Re: Applescript international language
Re: Applescript international language
- Subject: Re: Applescript international language
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 20 Oct 2010 10:09:51 -0400
2010/10/20 Shane Stanley <email@hidden>:
> Copying and pasting from your email:
>
> display dialog "勤奋,不断追求卓越..."
The question isn't how to display messages in other languages, but how
to do localization (L10N): have one program that displays its messages
in whatever the user's language is. Most programming systems have
some way of doing that (other than peppering your script with five
hundred repetitions of code like this:
if language is "Chinese" then
display dialog "勤奋,不断追求卓越"
else if language is "English" then
display dialog "Work hard, strive for excellence"
else if language is "Esperanto" then
display dialog "Laboru diligente, serĉu bonegecon"
else if language is "Klingon" then
display dialog "povmeH yIvumchu'"
else ...
...
end if)
Looks like Steve has the answer for AppleScript. The shell has
support for L10N, too, but if you're only calling the shell from
AppleScript you're much better off using AppleScript localized strings
and passing them to the shell literally rather than maintaining two
parallel L10N configurations in two different systems.
--
Mark J. REED <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden