Re: InDesign CC translation problems
Re: InDesign CC translation problems
- Subject: Re: InDesign CC translation problems
- From: "koenig.yvan" <email@hidden>
- Date: Tue, 17 Dec 2013 14:38:23 +0100
Le 17/12/2013 à 14:18, Håvard Graudo < email@hidden> a écrit : I am trying to move my CS6 scripts to InDesign CC.
This used to work: tell panel "Background Tasks" to set visible to true
However, as Adobe now have translated the UI to Norwegian, the above fails, as the Panel is called "Bakgrunnsoppgaver" and not "Background Tasks".
What is the proper way to get around this? (I will have both English and Norwegian users)
Håvard
You may search in the localized resources of the app. If you find the wanted string you may use something like :
tell application "iTunes" to set wednesday_loc to localized string "rg2myg4gws" Here it returns "mercredi"
If you have to deal with only two languages you may use :
#=====
on parle_anglais() return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "no" end parle_anglais
#=====
if my parleanglais() then tell panel "Background Tasks" to set visible to true else tell panel "Bakgrunnsoppgaver" to set visible to true end
Yvan KOENIG (VALLAURIS, France) mardi 17 décembre 2013 14:37:54
|
_______________________________________________
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