We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware,  Documentation,  Website Suggestions › Internationalization of JRE version message
Page Index Toggle Pages: 1
Internationalization of JRE version message (Read 720 times)
Internationalization of JRE version message
May 21st, 2007, 11:25am
 
I would like to see a some method of internationalizing the message the is drawn to the screen when the installed JRE version is less than 1.3.

At the moment I am overwriting the paint method as below. However it would be nice to be able to do this by creating an array of error messages with each different language. Or something equally simple.


String lang = "de";
synchronized public void paint(Graphics screen) {
 super.paint(screen);
 if (javaVersion < 1.3f) {
   if(lang.equals("de")){
     screen.setColor(new Color(64, 64, 64));
     Dimension size = getSize();
     screen.fillRect(0, 0, size.width, size.height);
     screen.setColor(Color.white);
     screen.setFont(new Font("Dialog", Font.PLAIN, 9));
   
     screen.drawString("Um diesen Inhalt sehen zu können, ", 3, 15);
     screen.drawString("müssen Sie Java 1.3 oder neuer ", 3, 28);
     screen.drawString("installieren.", 3, 41);
     screen.drawString(" ", 3, 59);
     screen.drawString("Klick hier um Java zu installieren.", 3, 72);
     return;
   }
 }
}

Re: Internationalization of JRE version message
Reply #1 - May 22nd, 2007, 12:06am
 
good idea.. will try to figure out a simple way of doing it.
Page Index Toggle Pages: 1