Author: jerome
Date: 2008-08-17 13:56:14 +0200 (Sun, 17 Aug 2008)
New Revision: 1534

Modified:
   software_suite_v2/software/tools/tuxController/trunk/.classpath
   software_suite_v2/software/tools/tuxController/trunk/src/i18n/bundle.java
Log:
* Created manifest file to launch control the droid with plastic-3D look and 
feel.
* Added function to read cc language by environement variable "CC_SET_LANGUAGE" 
and create bundle with this lang.

Modified: software_suite_v2/software/tools/tuxController/trunk/.classpath
===================================================================
--- software_suite_v2/software/tools/tuxController/trunk/.classpath     
2008-08-17 11:03:54 UTC (rev 1533)
+++ software_suite_v2/software/tools/tuxController/trunk/.classpath     
2008-08-17 11:56:14 UTC (rev 1534)
@@ -1,7 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-       <classpathentry kind="src" path="src"/>
-       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-       <classpathentry kind="lib" path="lib/looks-2.1.4.jar"/>
-       <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry combineaccessrules="false" kind="src" path="/TuxAPI"/>
+       <classpathentry combineaccessrules="false" kind="src" 
path="/tuxdroid-gadget-framework"/>
+       <classpathentry kind="output" path="bin"/>
+</classpath>

Modified: 
software_suite_v2/software/tools/tuxController/trunk/src/i18n/bundle.java
===================================================================
--- software_suite_v2/software/tools/tuxController/trunk/src/i18n/bundle.java   
2008-08-17 11:03:54 UTC (rev 1533)
+++ software_suite_v2/software/tools/tuxController/trunk/src/i18n/bundle.java   
2008-08-17 11:56:14 UTC (rev 1534)
@@ -21,15 +21,30 @@
 
 package i18n;
 
+import java.util.Locale;
 import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
 public class bundle {
        private static final String BUNDLE_NAME = "i18n.bundle"; //$NON-NLS-1$
 
-       private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
-                       .getBundle(BUNDLE_NAME);
-
+       private static final ResourceBundle RESOURCE_BUNDLE;
+       
+       private static final String ccLang = 
System.getProperty("CC_SET_LANGUAGE");
+        
+       static
+       {
+               if (ccLang == null)
+               {
+                       RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
+               }
+               else
+               {
+                       System.out.println(ccLang);
+                       RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME, 
new Locale(ccLang));
+               }
+        }
+       
        private bundle() {
        }
 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to