# HG changeset patch # User Sascha L. Teichmann # Date 1341220303 0 # Node ID d6983b78de45f9ea8f2d55c7008ecb07a736c1fe # Parent e8eca6eeeec050c707ed57e8eaf109d08b14175f Export panel: Make code more robust when trying to resolve missing i18n strings. flys-client/trunk@4846 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e8eca6eeeec0 -r d6983b78de45 flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java: diff -r e8eca6eeeec0 -r d6983b78de45 flys-client/src/main/java/de/intevation/flys/client/client/ui/ExportPanel.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 :