commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r507253 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java
Date Tue, 13 Feb 2007 22:06:31 GMT
Author: luc
Date: Tue Feb 13 14:06:30 2007
New Revision: 507253

URL: http://svn.apache.org/viewvc?view=rev&rev=507253
Log:
allow using locales with different variants

Modified:
    jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java

Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java?view=diff&rev=507253&r1=507252&r2=507253
==============================================================================
--- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java
(original)
+++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MathException.java
Tue Feb 13 14:06:30 2007
@@ -86,7 +86,7 @@
                     ResourceBundle.getBundle("org.apache.commons.math.MessagesResources",
locale);
             }
 
-            if (cachedResources.getLocale().equals(locale)) {
+            if (cachedResources.getLocale().getLanguage().equals(locale.getLanguage())) {
                 // the value of the resource is the translated string
                 return cachedResources.getString(s);
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message