• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: InDesign CC translation problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: InDesign CC translation problems
      • From: Shane Stanley <email@hidden>
References: 
 >InDesign CC translation problems (From: Håvard Graudo <email@hidden>)

  • Prev by Date: InDesign CC translation problems
  • Next by Date: Re: get file not found when the file exists
  • Previous by thread: InDesign CC translation problems
  • Next by thread: Re: InDesign CC translation problems
  • Index(es):
    • Date
    • Thread