Author: remi
Date: 2009-07-28 11:25:33 +0200 (Tue, 28 Jul 2009)
New Revision: 5186

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/plugin_gadget_common.xsl
Log:
* Updated the combobox to select the default language of a gadget in the 
"devel" interface.


Modified: 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/plugin_gadget_common.xsl
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/plugin_gadget_common.xsl
       2009-07-28 09:10:13 UTC (rev 5185)
+++ 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/devel/xsl/plugin_gadget_common.xsl
       2009-07-28 09:25:33 UTC (rev 5186)
@@ -233,7 +233,7 @@
     <div class="sectionContentRowBox">
         <div class="sectionContentCol12">
             <span class="sectionContentPName">
-                Default language
+                Gadget language
             </span>
         </div>
         <div class="sectionContentCol22">
@@ -244,38 +244,76 @@
                 <xsl:attribute name="name">defaultLanguage</xsl:attribute>
                 <xsl:element name="option">
                     <xsl:attribute name="value">all</xsl:attribute>
-                    <xsl:attribute name="selected">true</xsl:attribute>all
+                    <xsl:if test="description/defaultLanguage = 'all'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>All
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">en</xsl:attribute>en
+                    <xsl:attribute name="value">en</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'en'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>English
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">fr</xsl:attribute>fr
+                    <xsl:attribute name="value">fr</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'fr'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>French
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">nl</xsl:attribute>nl
+                    <xsl:attribute name="value">nl</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'nl'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Dutch
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">ar</xsl:attribute>ar
+                    <xsl:attribute name="value">ar</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'ar'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Arabic
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">es</xsl:attribute>es
+                    <xsl:attribute name="value">es</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'es'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Spanish
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">de</xsl:attribute>de
+                    <xsl:attribute name="value">de</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'de'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>German
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">it</xsl:attribute>it
+                    <xsl:attribute name="value">it</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'it'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Italian
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">pt</xsl:attribute>pt
+                    <xsl:attribute name="value">pt</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'pt'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Portuguese
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">no</xsl:attribute>no
+                    <xsl:attribute name="value">no</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'no'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Norwegian
                 </xsl:element>
                 <xsl:element name="option">
-                    <xsl:attribute name="value">sv</xsl:attribute>sv
+                    <xsl:attribute name="value">sv</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'sv'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Swedish
                 </xsl:element>
+                <xsl:element name="option">
+                    <xsl:attribute name="value">da</xsl:attribute>
+                    <xsl:if test="description/defaultLanguage = 'da'">
+                        <xsl:attribute name="selected">true</xsl:attribute>
+                    </xsl:if>Danish
+                </xsl:element>
             </xsl:element>
             </span>
         </div>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to