[Dive4elements-commits] [PATCH 2 of 2] I18n for empty selection in new uesk states
Wald Commits
scm-commit at wald.intevation.org
Fri Mar 15 09:41:36 CET 2013
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1363336880 -3600
# Node ID 7fa94b793cbe0133503741e142832c8f2ff1aa4b
# Parent 7c17e3022c7352b3bbe5837b4e27542abd207773
I18n for empty selection in new uesk states.
diff -r 7c17e3022c73 -r 7fa94b793cbe flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Fri Mar 15 09:40:52 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Fri Mar 15 09:41:20 2013 +0100
@@ -956,6 +956,8 @@
String none();
+ String notselected();
+
String linetype();
String textstyle();
diff -r 7c17e3022c73 -r 7fa94b793cbe flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Fri Mar 15 09:40:52 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Fri Mar 15 09:41:20 2013 +0100
@@ -498,6 +498,8 @@
right = right
none = none
+notselected = none
+
linetype = Linetype
textstyle = Textstyle
linecolor = Linecolor
diff -r 7c17e3022c73 -r 7fa94b793cbe flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Fri Mar 15 09:40:52 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Fri Mar 15 09:41:20 2013 +0100
@@ -499,6 +499,8 @@
right = rechts
none = keines
+notselected = keine
+
linetype = Linientyp
textstyle = Textstil
linecolor = Linienfarbe
diff -r 7c17e3022c73 -r 7fa94b793cbe flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Fri Mar 15 09:40:52 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Fri Mar 15 09:41:20 2013 +0100
@@ -500,6 +500,8 @@
right = right
none = none
+notselected = none
+
linetype = Linetype
textstyle = Textstyle
linecolor = Linecolor
diff -r 7c17e3022c73 -r 7fa94b793cbe flys-client/src/main/java/de/intevation/flys/client/client/ui/HWSDatacagePanel.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/HWSDatacagePanel.java Fri Mar 15 09:40:52 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/HWSDatacagePanel.java Fri Mar 15 09:41:20 2013 +0100
@@ -116,7 +116,7 @@
}
}
if (result.length() == 0) {
- result = "none";
+ result = MSG.notselected();
}
Data[] data = new Data[1];
DataItem item = new DefaultDataItem(
diff -r 7c17e3022c73 -r 7fa94b793cbe flys-client/src/main/java/de/intevation/flys/client/client/ui/UserRGDProvider.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/UserRGDProvider.java Fri Mar 15 09:40:52 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/UserRGDProvider.java Fri Mar 15 09:41:20 2013 +0100
@@ -113,7 +113,7 @@
@Override
protected Data[] getData() {
Data[] total = new Data[1];
-GWT.log("uploadfile: "+ uploadFile);
+
if (uploadFile != null && uploadFile.length() > 0) {
DataItem item = new DefaultDataItem(
"uesk.user-rgd", "uesk.user-rgd", uploadFile);
@@ -123,7 +123,7 @@
else {
// Happens when OpenLayers is missing
DataItem item = new DefaultDataItem(
- "uesk.user-rgd", "uesk.user-rgd", "none");
+ "uesk.user-rgd", "uesk.user-rgd", MSG.notselected());
total[0] = new DefaultData(
"uesk.user-rgd", null, null, new DataItem[] { item });
}
More information about the Dive4elements-commits
mailing list