Mercurial > dive4elements > river
changeset 2931:d6983b78de45
Export panel: Make code more robust when trying to resolve missing i18n strings.
flys-client/trunk@4846 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 02 Jul 2012 09:11:43 +0000 |
parents | e8eca6eeeec0 |
children | c92079709a37 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ExportPanel.java |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Thu Jun 28 18:09:44 2012 +0000 +++ b/flys-client/ChangeLog Mon Jul 02 09:11:43 2012 +0000 @@ -1,3 +1,9 @@ +2012-07-02 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/ExportPanel.java: + Make getting tooltip string more robust when trying to resolve + missing I18N strings. + 2012-06-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ExportPanel.java Thu Jun 28 18:09:44 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ExportPanel.java Mon Jul 02 09:11:43 2012 +0000 @@ -1,6 +1,7 @@ package de.intevation.flys.client.client.ui; import java.util.List; +import java.util.MissingResourceException; import com.google.gwt.core.client.GWT; @@ -127,7 +128,12 @@ * @return a tooltip text. */ protected String getTooltipText(String name, String facet) { - return MSG.getString(name) + " | " + MSG.getString(facet); + try { + return MSG.getString(name) + " | " + MSG.getString(facet); + } + catch (MissingResourceException mre) { + return name + " | " + facet; + } } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :