[Webflysuesk-commits] r60 - in webflysuesk/branches/openlayers-integration: . webflys/src/main/webapp/pages

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 2 15:50:20 CEST 2009


Author: iweinzierl
Date: 2009-07-02 15:50:18 +0200 (Thu, 02 Jul 2009)
New Revision: 60

Modified:
   webflysuesk/branches/openlayers-integration/ChangeLog.txt
   webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js
Log:
Changed default language to german when selecting the range with the InteractiveRangeSelection Tool. TODO: I18N implementation to support different languages.

Modified: webflysuesk/branches/openlayers-integration/ChangeLog.txt
===================================================================
--- webflysuesk/branches/openlayers-integration/ChangeLog.txt	2009-04-20 10:10:43 UTC (rev 59)
+++ webflysuesk/branches/openlayers-integration/ChangeLog.txt	2009-07-02 13:50:18 UTC (rev 60)
@@ -1,3 +1,10 @@
+2009-07-02  Ingo Weinzierl <ingo.weinzierl at intevation.de>
+
+	* webflys/src/main/webapp/pages/InteractiveRangeSelection.js: Changed
+	  standard language to german when selecting the range with the
+	  InteractiveRangeSelectionTool.
+	  TODO: I18N implementation to support different languages.
+
 2009-04-20  Ingo Weinzierl <ingo.weinzierl at intevation.de>
 	
 	* doc/INSTALL-ger.txt,

Modified: webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js
===================================================================
--- webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js	2009-04-20 10:10:43 UTC (rev 59)
+++ webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js	2009-07-02 13:50:18 UTC (rev 60)
@@ -215,6 +215,14 @@
     var low  = range.lowestKm();
     var high = range.highestKm();
 
+    // convert from english to german
+    // TODO I18N
+    if(low.indexOf(".", 0) != -1)
+        low = low.replace(".", ",");
+
+    if(high.indexOf(".", 0) != -1)
+        high = high.replace(".", ",");
+
     if(range.count == 2) {
         $j('#webflys').contents().find('#from').val(low);
         $j('#webflys').contents().find('#to').val(high);



More information about the Webflysuesk-commits mailing list