Skip to main content
1-Visitor
June 23, 2014
Solved

Localization issues

  • June 23, 2014
  • 1 reply
  • 991 views

Hi all.

We wrote plugin for Arbortext 6.1.

The issue 1:

We want to add our custom menu items to View (that is in menubar)

our plugin looks for .View menu item like that:

_window.MenuBar.Find(".View")

when we work for example under French locale we cannot find this menu. We want to add our menu independably on what locale currently is used.

Is it possible ?

The issue 2:

We don't want to add our menu to windows like "Parser Messages".

Right now we just compare text of window with this string:

((IComponent) window).Text != "Parser Messages";

so if window title equals to "Parser Messages" we do nothing

but for other locales it won't work due to different text

How can we solve it?

    Best answer by ptc-6220371

    Never mind.

    We've found Application.GetLocalizedMessage(str) that covers all our needs

    1 reply

    ptc-62203711-VisitorAuthorAnswer
    1-Visitor
    June 25, 2014

    Never mind.

    We've found Application.GetLocalizedMessage(str) that covers all our needs