incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r751682 - /incubator/sling/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
Date Mon, 09 Mar 2009 13:52:38 GMT
Author: fmeschbe
Date: Mon Mar  9 13:52:37 2009
New Revision: 751682

URL: http://svn.apache.org/viewvc?rev=751682&view=rev
Log:
SLING-877 Remove check for exact locale

Modified:
    incubator/sling/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java

Modified: incubator/sling/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java?rev=751682&r1=751681&r2=751682&view=diff
==============================================================================
--- incubator/sling/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
(original)
+++ incubator/sling/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java
Mon Mar  9 13:52:37 2009
@@ -436,14 +436,6 @@
             return Locale.getDefault();
         }
 
-        // check whether we have an exact match locale
-        Locale[] available = Locale.getAvailableLocales();
-        for (int i = 0; i < available.length; i++) {
-            if (available[i].toString().equals(localeString)) {
-                return available[i];
-            }
-        }
-
         // check language and country
         String[] parts = localeString.split("_");
         if (parts.length == 0) {



Mime
View raw message