Author: remi
Date: 2009-06-26 16:28:44 +0200 (Fri, 26 Jun 2009)
New Revision: 4911

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
   
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/default.pot
   software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/en.po
   software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po
Log:
* added translations for the page "gadgets"

Modified: 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
  2009-06-26 13:47:52 UTC (rev 4910)
+++ 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
  2009-06-26 14:28:44 UTC (rev 4911)
@@ -36,6 +36,9 @@
             var knowedGadgetsFilter = "all";
             var knowedGadgetsDict = null;
             var lastUuidAction = "0";
+            var translationStart = 
document.getElementById("translationStart").value;
+            var translationStop = 
document.getElementById("translationStop").value;
+            var translationDelete = 
document.getElementById("translationDelete").value;
 
             function initialization()
             {
@@ -115,20 +118,20 @@
                 htmlContent += '<div class="gadgetsVSpacer" 
style="width:10px;"></div>';
                 if (ondemand == 'true')
                 {
-                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStartEnable" id="startId_' + uuid + '" onclick="" href="#" 
name="lbOn" rel="popupNotYetImplemented">Start</a>';
+                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStartEnable" id="startId_' + uuid + '" onclick="" href="#" 
name="lbOn" rel="popupNotYetImplemented">' + translationStart + '</a>';
                 }
                 else
                 {
-                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStartDisable" id="startId_' + uuid + '" onclick="return false;" 
href="#">Start</a>';
+                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStartDisable" id="startId_' + uuid + '" onclick="return false;" 
href="#">' + translationStart + '</a>';
                 }
                 htmlContent += '<div class="gadgetsVSpacer" 
style="width:8px;"></div>';
                 if (ondemand == 'true')
                 {
-                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStopEnable" id="stopId_' + uuid + '" onclick="" href="#" name="lbOn" 
rel="popupNotYetImplemented">Stop</a>';
+                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStopEnable" id="stopId_' + uuid + '" onclick="" href="#" name="lbOn" 
rel="popupNotYetImplemented">' + translationStop + '</a>';
                 }
                 else
                 {
-                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStopDisable" id="stopId_' + uuid + '" onclick="javascript:return 
false;" href="#">Stop</a>';
+                    htmlContent += '<a class="gadgetsBtnTitle 
gadgetsBtnStopDisable" id="stopId_' + uuid + '" onclick="javascript:return 
false;" href="#">' + translationStop + '</a>';
                 }
                 htmlContent += '<div class="gadgetsVSpacer" 
style="width:18px;"></div>';
                 htmlContent += '<a class="gadgetsBtnNoTitle gadgetsBtnHelp" 
id="helpId_' + uuid + '" onclick="" href="#" name="lbOn" 
rel="popupNotYetImplemented"></a>';
@@ -137,7 +140,7 @@
                 htmlContent += '<div class="gadgetsVSpacer" 
style="width:8px;"></div>';
                 htmlContent += '<a class="gadgetsBtnNoTitle 
gadgetsBtnDuplicate" id="duplicateId_' + uuid + '" 
onclick="javascript:setUuidAction(\''+uuid+'\');duplicateUgc();return false;" 
href="#"></a>';
                 htmlContent += '<div class="gadgetsVSpacer" 
style="width:18px;"></div>';
-                htmlContent += '<a class="gadgetsBtnTitle gadgetsBtnDelete" 
id="deleteId_' + uuid + '" onclick="" href="#" name="lbOn" 
rel="popupConfirmDelete">Delete</a>';
+                htmlContent += '<a class="gadgetsBtnTitle gadgetsBtnDelete" 
id="deleteId_' + uuid + '" onclick="" href="#" name="lbOn" 
rel="popupConfirmDelete">' + translationDelete + '</a>';
                 htmlContent += '<div class="frame01Sep2"></div>';
                 return htmlContent;
             }
@@ -238,6 +241,28 @@
                 <xsl:value-of select="root/language"/>
             </xsl:attribute>
         </xsl:element>
+        <!-- SOME TRANSLATIONS FOR JS -->
+        <xsl:element name="input">
+            <xsl:attribute name="type">hidden</xsl:attribute>
+            <xsl:attribute name="id">translationStart</xsl:attribute>
+            <xsl:attribute name="value">
+                <xsl:value-of select="root/translations/start"/>
+            </xsl:attribute>
+        </xsl:element>
+        <xsl:element name="input">
+            <xsl:attribute name="type">hidden</xsl:attribute>
+            <xsl:attribute name="id">translationStop</xsl:attribute>
+            <xsl:attribute name="value">
+                <xsl:value-of select="root/translations/stop"/>
+            </xsl:attribute>
+        </xsl:element>
+        <xsl:element name="input">
+            <xsl:attribute name="type">hidden</xsl:attribute>
+            <xsl:attribute name="id">translationDelete</xsl:attribute>
+            <xsl:attribute name="value">
+                <xsl:value-of select="root/translations/delete"/>
+            </xsl:attribute>
+        </xsl:element>
         <!-- MAIN DIV FRAME -->
         <div style="position:absolute;
                     left:0px;
@@ -249,21 +274,21 @@
                     <xsl:attribute name="class">gadgetsFilterRadio 
gadgetsFilterRadioActivate</xsl:attribute>
                     <xsl:attribute 
name="id">gadgetsFilterRadioAll</xsl:attribute>
                     <xsl:attribute 
name="onclick">javascript:fillGadgetRows('all');return false;</xsl:attribute>
-                    <xsl:attribute name="href">#</xsl:attribute>All
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/all"/>
                 </xsl:element>
                 <div class="gadgetsVSpacer" 
style="width:5px;height:40px;"></div>
                 <xsl:element name="a">
                     <xsl:attribute name="class">gadgetsFilterRadio 
gadgetsFilterRadioEnable</xsl:attribute>
                     <xsl:attribute 
name="id">gadgetsFilterRadioOnDemand</xsl:attribute>
                     <xsl:attribute 
name="onclick">javascript:fillGadgetRows('on_demand');return 
false;</xsl:attribute>
-                    <xsl:attribute name="href">#</xsl:attribute>On demand
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/on_demand"/>
                 </xsl:element>
                 <div class="gadgetsVSpacer" 
style="width:5px;height:40px;"></div>
                 <xsl:element name="a">
                     <xsl:attribute name="class">gadgetsFilterRadio 
gadgetsFilterRadioEnable</xsl:attribute>
                     <xsl:attribute 
name="id">gadgetsFilterRadioAlerts</xsl:attribute>
                     <xsl:attribute 
name="onclick">javascript:fillGadgetRows('alerts');return false;</xsl:attribute>
-                    <xsl:attribute name="href">#</xsl:attribute>Alerts
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/alerts"/>
                 </xsl:element>
             </div>
             <div class="frame01Middle" style="height:465px;">
@@ -275,19 +300,19 @@
         <div id="popupConfirmDelete" class="popup01Box" 
onfocus="setUuidAction(arguments[0]);">
             <div class="popupFrame01Top"></div>
             <div class="popupFrame01Middle">
-                <span class="popup01Message">This action will delete this 
gadget. Continue ?</span>
+                <span class="popup01Message"><xsl:value-of 
select="root/translations/popup_confirm_delete_gadget"/></span>
                 <xsl:element name="a">
                     <xsl:attribute name="class">popupBtn</xsl:attribute>
                     <xsl:attribute name="name">lbOff</xsl:attribute>
                     <xsl:attribute name="rel">deactivate</xsl:attribute>
                     <xsl:attribute 
name="onclick">javascript:deleteUgc();return false;</xsl:attribute>
-                    <xsl:attribute name="href">#</xsl:attribute>Yes
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/yes"/>
                 </xsl:element>
                 <xsl:element name="a">
                     <xsl:attribute name="class">popupBtn</xsl:attribute>
                     <xsl:attribute name="name">lbOff</xsl:attribute>
                     <xsl:attribute name="rel">deactivate</xsl:attribute>
-                    <xsl:attribute name="href">#</xsl:attribute>No
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/no"/>
                 </xsl:element>
             </div>
             <div class="popupFrame01Bottom"></div>
@@ -296,12 +321,12 @@
         <div id="popupNotYetImplemented" class="popup01Box" onfocus="return 
false;">
             <div class="popupFrame01Top"></div>
             <div class="popupFrame01Middle">
-                <span class="popup01Message" style="width:409px;">Not yet 
implemented</span>
+                <span class="popup01Message" 
style="width:409px;"><xsl:value-of 
select="root/translations/popup_not_yet_implemented"/></span>
                 <xsl:element name="a">
                     <xsl:attribute name="class">popupBtn</xsl:attribute>
                     <xsl:attribute name="name">lbOff</xsl:attribute>
                     <xsl:attribute name="rel">deactivate</xsl:attribute>
-                    <xsl:attribute name="href">#</xsl:attribute>Close
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/close"/>
                 </xsl:element>
             </div>
             <div class="popupFrame01Bottom"></div>

Modified: 
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/default.pot
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/default.pot 
    2009-06-26 13:47:52 UTC (rev 4910)
+++ 
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/default.pot 
    2009-06-26 14:28:44 UTC (rev 4911)
@@ -27,3 +27,30 @@
 
 msgid "stop"
 msgstr ""
+
+msgid "all"
+msgstr ""
+
+msgid "on_demand"
+msgstr ""
+
+msgid "alerts"
+msgstr ""
+
+msgid "delete"
+msgstr ""
+
+msgid "popup_not_yet_implemented"
+msgstr ""
+
+msgid "popup_confirm_delete_gadget"
+msgstr ""
+
+msgid "yes"
+msgstr ""
+
+msgid "no"
+msgstr ""
+
+msgid "close"
+msgstr ""

Modified: 
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/en.po
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/en.po   
2009-06-26 13:47:52 UTC (rev 4910)
+++ software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/en.po   
2009-06-26 14:28:44 UTC (rev 4911)
@@ -27,3 +27,30 @@
 
 msgid "stop"
 msgstr "Stop"
+
+msgid "all"
+msgstr "All"
+
+msgid "on_demand"
+msgstr "On demand"
+
+msgid "alerts"
+msgstr "Alerts"
+
+msgid "delete"
+msgstr "Delete"
+
+msgid "popup_not_yet_implemented"
+msgstr "This functionality is not yet implemented."
+
+msgid "popup_confirm_delete_gadget"
+msgstr "This action will delete this gadget. Continue ?"
+
+msgid "yes"
+msgstr "Yes"
+
+msgid "no"
+msgstr "No"
+
+msgid "close"
+msgstr "Close"

Modified: 
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po   
2009-06-26 13:47:52 UTC (rev 4910)
+++ software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po   
2009-06-26 14:28:44 UTC (rev 4911)
@@ -27,3 +27,30 @@
 
 msgid "stop"
 msgstr "Stop"
+
+msgid "all"
+msgstr "Tous"
+
+msgid "on_demand"
+msgstr "A la demande"
+
+msgid "alerts"
+msgstr "Alertes"
+
+msgid "delete"
+msgstr "Suppr."
+
+msgid "popup_not_yet_implemented"
+msgstr "Cette functionnalité n'est pas encore implémentée."
+
+msgid "popup_confirm_delete_gadget"
+msgstr "Cette action va supprimer ce gadget. Continuer ?"
+
+msgid "yes"
+msgstr "Oui"
+
+msgid "no"
+msgstr "Non"
+
+msgid "close"
+msgstr "Fermer"


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to