Author: jerome
Date: 2008-08-27 10:59:10 +0200 (Wed, 27 Aug 2008)
New Revision: 1602

Modified:
   
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
   
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
   
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
Log:


Modified: 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
===================================================================
--- 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
     2008-08-27 08:48:33 UTC (rev 1601)
+++ 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/.classpath
     2008-08-27 08:59:10 UTC (rev 1602)
@@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-       <classpathentry kind="src" path="sources"/>
-       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-       <classpathentry kind="con" 
path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
-       <classpathentry combineaccessrules="false" kind="src" 
path="/karmalab-commons"/>
-       <classpathentry kind="output" path="targets/eclipse"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="sources"/>
+       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="con" 
path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
+       <classpathentry combineaccessrules="false" kind="src" 
path="/karmalab-commons"/>
+       <classpathentry kind="output" path="targets/eclipse"/>
+</classpath>

Modified: 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
===================================================================
--- 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
      2008-08-27 08:48:33 UTC (rev 1601)
+++ 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
      2008-08-27 08:59:10 UTC (rev 1602)
@@ -97,22 +97,30 @@
         *            the interpreter to set
         */
        public void setInterpreter(GadgetInterpreter interpreter) {
-               this.interpreter = interpreter;
+               this.interpreter = interpreter; //FIXME 
                i18n = I18nFactory.getI18n(new 
File(interpreter.getWorkingPath(), "resources"));
+               this.i18n = I18nFactory.getI18n(new Locale("fr"), new 
File(interpreter.getWorkingPath(), "resources"));
                GadgetDescription.i18n = i18n;
                GadgetToken.i18n = i18n;
                GadgetParameter.i18n = i18n;
        }
 
        static final Logger logger = Traces.LOGGER(Gadget.class);
+       
+       public void setLocale(String lang){
+               //this.i18n = I18nFactory.getI18n(new Locale(lang), new 
File(interpreter.getWorkingPath(), "resources"));
+               //GadgetDescription.i18n = i18n;
+               //GadgetToken.i18n = i18n;
+               //GadgetParameter.i18n = i18n;
+       }
 
        public Gadget() {
-               GadgetParameter e = new GadgetParameter();
-               e.setName("traces");
-               e.setDefaultValue("false");
-               e.setDescription("Activate or not debug traces");
-               e.setType("boolean");
-               parameters.add(e);
+               //GadgetParameter e = new GadgetParameter();
+               //e.setName("traces");
+               //e.setDefaultValue("false");
+               //e.setDescription("Activate or not debug traces");
+               //e.setType("boolean");
+               //parameters.add(e);
        }
 
        @Override

Modified: 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
===================================================================
--- 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
    2008-08-27 08:48:33 UTC (rev 1601)
+++ 
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
    2008-08-27 08:59:10 UTC (rev 1602)
@@ -24,11 +24,13 @@
 
 import java.io.File;
 import java.util.List;
+import java.util.Locale;
 import java.util.Vector;
 import java.util.logging.Logger;
 
 import net.karmaLab.fileSystem.autoDeployer.AutoDeployer;
 import net.karmaLab.fileSystem.autoDeployer.AutoDeployerListener;
+import net.karmaLab.po.I18n;
 import net.karmaLab.tools.Files;
 import net.karmaLab.tools.Listeners;
 import net.karmaLab.traces.ApplicationError;
@@ -48,6 +50,7 @@
 import 
com.kysoh.tuxdroid.gadget.framework.container.interpreters.GadgetPythonInterpreter;
 
 public class GadgetsContainer {
+       
        class AutoDeployerObserver implements AutoDeployerListener {
                public void deployementError(Throwable exception) {
                        listeners.fire().gadgetContainerError(exception);


-------------------------------------------------------------------------
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