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

What's wrong with my localisation approach?

Community Expert ,
Dec 19, 2022 Dec 19, 2022

Copy link to clipboard

Copied

Dear experts and gurus,

I have this small test program and run it in ESTK with FrameMaker 14, French version:

 

// ES-localisation.jsx - test the localisation à la ExtendScript
var sDnav_hlpTip7   = { en: "Define the heading levels",
                        de: "Überschriften-Ebenen definieren",
                        fr: "Définir les niveaux des titres"};
wDefine = new Window ("dialog", localize (sDnav_hlpTip7), undefined);
wDefine.preferredSize.width = 200;
wDefine.show();

 

FM is French, as the top menu demonstrates. Nevertheless the dialogue title is English:

ES-localisation.png

I follow the method described in the Javascript Tools Guide under the heading Localizing ExtendScript strings.

→ Have I overseen something?

→ Does the process look for the Windows UI language (which in my case is English), not the FM UI language - which obviously is French?

TOPICS
Scripting

Views

43

Likes

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 , Dec 19, 2022 Dec 19, 2022

Ha, I got it - the documentation states:

The language is chosen by the application at startup, according to the current locale provided by the operating system.

IMHO this is not what a user in the FM environment expects...

Likes

Translate

Translate
Community Expert ,
Dec 19, 2022 Dec 19, 2022

Copy link to clipboard

Copied

LATEST

Ha, I got it - the documentation states:

The language is chosen by the application at startup, according to the current locale provided by the operating system.

IMHO this is not what a user in the FM environment expects...

Likes

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