Author: jerome
Date: 2008-08-27 14:13:18 +0200 (Wed, 27 Aug 2008)
New Revision: 1612
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/GadgetsContainer.java
Log:
* Modified framework to work with cc locale.
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 10:40:12 UTC (rev 1611)
+++
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/Gadget.java
2008-08-27 12:13:18 UTC (rev 1612)
@@ -99,29 +99,29 @@
public void setInterpreter(GadgetInterpreter 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 GadgetParameter traces;
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;
+ 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 traces = new GadgetParameter();
+ traces.setName("traces");
+ traces.setDefaultValue("false");
+ traces.setDescription("Activate or not debug traces");
+ traces.setType("boolean");
}
+
@Override
public String toString() {
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 10:40:12 UTC (rev 1611)
+++
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/container/GadgetsContainer.java
2008-08-27 12:13:18 UTC (rev 1612)
@@ -140,6 +140,7 @@
public Vector<Gadget> getGadgets() {
return gadgets;
}
+
/** [EMAIL PROTECTED] */
public void loadGadgets(File gadgetPath) throws
GadgetsContainerException {
-------------------------------------------------------------------------
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