Author: jerome
Date: 2009-02-05 16:11:15 +0100 (Thu, 05 Feb 2009)
New Revision: 3562

Modified:
   
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
   
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/alerts/GadgetAlertPanel.java
Log:
* Fixed : #131 ?\226?\128?\148 Message d'alerte de base toujours en anglais 
lorsqu'une alerte n'est pas configur?\195?\169e.

Modified: 
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
===================================================================
--- 
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
     2009-02-05 14:22:38 UTC (rev 3561)
+++ 
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
     2009-02-05 15:11:15 UTC (rev 3562)
@@ -2208,7 +2208,6 @@
                        
                                pane = new TuxDegradeeScrollPane(parameters, 
iconFile);
 
-                               
                                //Setting registered values.
                                alertSimpleSetting.setSchedulType("every");
                                
@@ -2217,10 +2216,10 @@
                                
alertSimpleSetting.setFixedHour(CcCommons.settings.getHours(uid));
                                
alertSimpleSetting.setFixedMinutes(CcCommons.settings.getMins(uid));
                                
alertSimpleSetting.setEveryValue(CcCommons.settings.getMins(uid));
+                                       
+                               
gadgetPanel.setType(CcCommons.settings.getActionType(uid));             
+                               
gadgetPanel.setTTSMessage(CcCommons.settings.getAlertActionValue(uid));
                                
-                               
-                               
gadgetPanel.setType(CcCommons.settings.getActionType(uid));
-                               
gadgetPanel.setTTSMessage(CcCommons.settings.getAlertActionValue(uid));
                                
gadgetPanel.setSelectedAttitune(CcCommons.settings.getActionValue(uid));
                                
                                //Getting gadgetParameters.
@@ -2669,6 +2668,7 @@
         */
        public void addToPlaylist(String name)
        {
+               
                //Create action with an attitune.
                this.remotePlaylist.refresh();
                this.alertPlaylist.refresh();

Modified: 
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/alerts/GadgetAlertPanel.java
===================================================================
--- 
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/alerts/GadgetAlertPanel.java
 2009-02-05 14:22:38 UTC (rev 3561)
+++ 
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/alerts/GadgetAlertPanel.java
 2009-02-05 15:11:15 UTC (rev 3562)
@@ -169,11 +169,16 @@
        }
        
        public void setTTSMessage(String message){
+               if(message.equalsIgnoreCase("something changed"))
+               {
+                       message = 
CcCommons.language.getPanelAlertSchedulConfTTSMessages();
+               }
                ButtonModel model = this.GroupAlertConfiguration.getSelection();
                if(model.equals(TTSAction.getModel()))
                        this.TTSMessage.setText(message);
        }
        
+       
        public void setSelectedAttitune(String path){
                ButtonModel model = this.GroupAlertConfiguration.getSelection();
                if(model.equals(AttituneAction.getModel())){


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to