|
From: jwray <jon...@fi...> - 2007-12-13 17:48:54
|
Xavier, Thanks for the reply. That's exactly what I'm doing, over-riding the mac specific properties in a file such as messages_en_US_macos.properties and it works fine. The problem is that I now need to specify such a file for every English speaking country to get the macos variants applied to it. What I'd like is to have a default English file with Mac variant but without specifying the country, eg messages_en_macosx.properties, that is then used for all English speaking countries. Every variation of file name without the country code I've tried has not worked. Jonny Xavier Breton wrote: > > The way I know i18n works is that it looks first for the country > specific properties file ex. > messages_en_US, if it doesn't found the property it looks for it on > the language specific bundle messages_en and then you can have as well > a default bundle to be used if the property weren't found, this is a > properties file without the language and the country, ex. > messages.properties > > You can try puting the generic information in the default bundle file, > then overide the specific with another bundle file for example for the > language then for the country and then for the variant code you're > using (macosx). > > Maybe the information in the java tutorial can help you with this issue. > http://java.sun.com/docs/books/tutorial/i18n/index.html > This is the page where you can find an example using variant code. > http://java.sun.com/docs/books/tutorial/i18n/locale/create.html > > Xavier > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Springframework-rcp-dev mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev > > -- View this message in context: http://www.nabble.com/i18n-Questions-tp14310171p14320923.html Sent from the springframework-rcp-dev mailing list archive at Nabble.com. |