
Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
> You can set the system property that controls the locale on the
> command line. See http://mindprod.com/jgloss/properties.html for
> details
Mine is not a problem of configuration, I know how to change the locale.
The problem is about changing at runtime.
I made an example...
I have the login form on screen, and it's in english.
From the language combo box I choose Italian (or French, German, ...) and I
want the form to translate immediately.
I have already all the properties files with translations.
Hi
Marco
Roedy Green - 15 Jul 2007 23:40 GMT
>Mine is not a problem of configuration, I know how to change the locale.
>The problem is about changing at runtime.
[quoted text clipped - 3 lines]
>want the form to translate immediately.
>I have already all the properties files with translations.
see http://mindprod.com/jgloss/locale.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Real Gagnon - 16 Jul 2007 03:00 GMT
> I have the login form on screen, and it's in english.
> From the language combo box I choose Italian (or French, German, ...)
> and I want the form to translate immediately.
> I have already all the properties files with translations.
See the example at
http://www.rgagnon.com/javadetails/java-0135.html
Bye.

Signature
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript and PowerBuilder code snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html
On Jul 15, 5:49 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> In a pinch you would programmatically exec another JVM with the
> modified locale.
Are you mad?! One 260MB javaw.exe process is memory hog enough. Two at
the same time is going to be problematical on 1GB machines and
downright catastrophic on 512MB ones, where there'll be hours of
thrashing while the first one bootstraps the second one and both are
trying to be active simultaneously. Once the bootstrapper exits sanity
returns, but ... nobody likes an application that takes 72 seconds of
heavy disk activity to look like it's sorta beginning to maybe load,
and another 300 or so to actually load. :P
If you must programmatically exec the JVM with your main application
with a UI-determined locale from a bootstrapper, for Christ's sake
code the bootstrapper in C! It'll be all of 30KB that way, or around
1/1000 the size.
Java simply doesn't scale well to program sizes smaller than major
applications, when a normal (rather than micro edition) JRE is used.
Roedy Green - 16 Jul 2007 21:04 GMT
>Are you mad?! One 260MB javaw.exe process is memory hog enough
I was presuming the spawner would exit, like a salmon dying after
laying eggs. Even if that is not possible without killing the child,
the spawner would page out of ram fairly quickly. Further much of
javaw is now a shared DLL.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Twisted - 17 Jul 2007 07:42 GMT
On Jul 16, 4:04 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> >Are you mad?! One 260MB javaw.exe process is memory hog enough
>
> I was presuming the spawner would exit, like a salmon dying after
> laying eggs.
They still run simultaneously for a while, with neither of them idle
during part of that time.
> Even if that is not possible without killing the child, the spawner would page out of ram fairly quickly.
Once it goes idle.
> Further much of javaw is now a shared DLL.
Yep - all 132KB or so of it. The 259.8 or so remaining MB of process
size being the big Java heap a separate one of which is created for
each separate running virtual machine, as near as I can figure.
Roedy Green - 16 Jul 2007 21:05 GMT
>If you must programmatically exec the JVM with your main application
>with a UI-determined locale from a bootstrapper, for Christ's sake
>code the bootstrapper in C! It'll be all of 30KB that way, or around
>1/1000 the size.
see http://mindprod.com/project/kicker.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com