Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Localization issues

ptc-6220371
7-Bedrock

Localization issues

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?

ACCEPTED SOLUTION

Accepted Solutions

Never mind.

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

View solution in original post

1 REPLY 1

Never mind.

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

Announcements

Top Tags