cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
guy_harel1
Level 3

Changing locale programmaticaly for $L()

How to you change programmaticaly the locale used by the $L() macro ? Because using several language works in String Table.MyStrings.

I don't have the Premier version, so there is no language support in the Release menu. However, I am planning to add a Dialog with a radio button for French and English.

Thanks.
Labels (1)
0 Kudos
(2) Replies
guy_harel1
Level 3

public void checkedbtnEnglish( ISControlContext arg0)
{

Locale.setDefault(Locale.CANADA);

WizardServices wServices = arg0.getServices();

String str = wServices.resolveString("$L(MyStrings,strOracleVersion)");

JOptionPane.showConfirmDialog(null,str);

}

Is there a locale resolver to setup in arg0, or the "services" ?
0 Kudos
guy_harel1
Level 3

Locale.setDefault(Locale.FRENCH);

instead of

Locale.setDefault(Locale.CANADA);
0 Kudos