I18N plugins....

Questions and answers on developing, deploying and using plugins and JavaBeans

I18N plugins....

Postby pbakker » Mon Aug 16, 2004 11:22 pm

If i want to I18n my errormessages and feedback in plugins, what is the (best) way to create the keys in the messagetable initially?

What I can think of is checking of they are allready existing in the initialize function, but this seems a bit a waist of resources every next time after the first initialization.

Are there better ways to do it?

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Jan Blok » Mon Aug 23, 2004 4:21 pm

In a plugin you should use Java i18n not the Servoy mechanism, checkout http://java.sun.com/docs/books/tutorial ... tml#locale
TIP: do not set the locale but only retrieve it via Locale.getDefault()
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 35 guests