• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Localization of scripts

Engaged ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

664

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 27, 2016 May 27, 2016

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

Votes

Translate

Translate
Community Expert ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

LATEST

Thanks, that's it!

Tobias

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines