Author: sebb
Date: Mon Nov 17 05:17:11 2008
New Revision: 718241

URL: http://svn.apache.org/viewvc?rev=718241&view=rev
Log:
Report error if language change is not successful

Modified:
    
jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ChangeLanguage.java

Modified: 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ChangeLanguage.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ChangeLanguage.java?rev=718241&r1=718240&r2=718241&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ChangeLanguage.java 
(original)
+++ 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ChangeLanguage.java 
Mon Nov 17 05:17:11 2008
@@ -26,6 +26,7 @@
 
 import org.apache.jmeter.util.JMeterUtils;
 import org.apache.jorphan.logging.LoggingManager;
+import org.apache.jorphan.util.JMeterError;
 import org.apache.log.Logger;
 
 /**
@@ -54,7 +55,11 @@
             loc = new Locale(locale, "");
         }
         log.debug("Changing locale to " + loc.toString());
-        JMeterUtils.setLocale(loc);
+        try {
+            JMeterUtils.setLocale(loc);
+        } catch (JMeterError err) {
+            JMeterUtils.reportErrorToUser(err.toString());
+        }
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to