From: Paolo M. <pao...@gm...> - 2007-05-11 17:29:40
|
Hi John, simply delete the locale="en" attribute, so the application will use the locale settings of the operating system. Remember to put in the locales directory a Message.properties file (without any _xx suffix) containing the default language, that will be used in case the corresponding properties file doesn't exist for the current OS locale settings. Regards Paolo John Doe wrote: > Hi, > I have an application that supports i18n through it's main frame. See > xml snippet below > > <frame id="main" title="Main Frame" bundle="i18n/Messages" locale="en" > location="200,200" size="840,580" > doubleBuffered="true" > plaf="com.jgoodies.looks.plastic.PlasticXPLookAndFeel" > iconImage="icons/About.gif"> > > I have three locale depended files. Everything works fine, but i ony > can chenge language if I change locale attribute in my layout XML. But > I need a dynamic behaviour. So if my system has English language, > then main frame locale should be seted to the "en" if Russian then > "ru". And so on. How can I get locale behaviour depends on system > properties? > > -- > Best regards, > Bashmaкov Anton > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > Swixat-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swixat-devel > |