Skip to main content
Inspiring
May 27, 2016
Answered

Localization of scripts

  • May 27, 2016
  • 3 replies
  • 1021 views

Hello,

I'm quite new to Acrobat scripting. The last three days I managed to write a script that I was looking for for about 10 years and I'm very happy with it. Adding a menu item was fairly easy, but adding a toolbar button was not. I finally managed to do so, but the icon quality is a bit poor (I captured the image stream code via JS console from a 20 x 20 PNG – is there a better way to da that?). Anyway: It works!

Now I tried to add localization to the script which localizes the menu items, tooltips etc. I tried to localize as described here:

https://www.adobe.com/content/dam/Adobe/en/devnet/scripting/pdfs/javascript_tools_guide.pdf

But it doesn't work.

Any useful hint is very welcome!

Thanks

Tobias

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Bernd Alheit

For localization you can use the value of app.language.

3 replies

try67
Community Expert
Community Expert
May 27, 2016

Just saying "it doesn't work" is not very helpful... How did you try to do

it and what were the results?

It would be very helpful if you could also post a snippet of your code that

demonstrates the problem, as well as a description of how you determine

which locale to use (are you using the application's language, the

document's language, a user-selection, etc.).

On Fri, May 27, 2016 at 9:14 AM, tobias.wantzen <forums_noreply@adobe.com>

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
May 27, 2016

For localization you can use the value of app.language.

Inspiring
May 27, 2016

Thanks, that's it!

Tobias