Skip to main content

How to localize the word "Menu" in menu bar

2 replies [Last post]
hotszkin
Offline
Joined: 2008-11-23

When there are more than 2 commands added to a form. A word "Menu" will be displayed. How can I localize this word?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
makibo
Offline
Joined: 2008-10-16

hey

you'll need to set a localization ressource (*.res-file) <<< i'm assuming you've done this

[
Resources res = Resources.open(ressourceFileWithl10n);
UIManager.getInstance().setResourceBundle(res.getL10N("localize", "en-US"));
]

in the ressource file in the l10n section you'll have to define a property called "Menu" and translate it for you locales

Once you've done this the menu item will get translated automatically..

regards,
maik

Palmg
Offline
Joined: 2013-10-31

I recommend using https://poeditor.com/ for resource files localization. It becomes really easy to translate strings using this tool.