Author: scottbw
Date: Mon Apr  4 13:33:46 2011
New Revision: 1088618

URL: http://svn.apache.org/viewvc?rev=1088618&view=rev
Log:
Make sure the language tags used for locale folders are always in lowercase

Modified:
    
incubator/wookie/trunk/src/org/apache/wookie/server/LocalizedResourceFilter.java

Modified: 
incubator/wookie/trunk/src/org/apache/wookie/server/LocalizedResourceFilter.java
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/server/LocalizedResourceFilter.java?rev=1088618&r1=1088617&r2=1088618&view=diff
==============================================================================
--- 
incubator/wookie/trunk/src/org/apache/wookie/server/LocalizedResourceFilter.java
 (original)
+++ 
incubator/wookie/trunk/src/org/apache/wookie/server/LocalizedResourceFilter.java
 Mon Apr  4 13:33:46 2011
@@ -162,7 +162,7 @@ public class LocalizedResourceFilter imp
                // If it does, return it and terminate this algorithm
                List<ULocale> locales = 
LocalizationUtils.getProcessedLocaleList(new String[]{instance.getLang()});
                for (ULocale locale:locales){
-                       String path = basePath.replace(resource, 
"locales/"+locale.toLanguageTag()+"/"+resource);
+                       String path = basePath.replace(resource, 
"locales/"+locale.toLanguageTag().toLowerCase()+"/"+resource);
                        String filePath = 
filterConfig.getServletContext().getRealPath(path);
                        if (new File(filePath).exists()) return context+path;
                }


Reply via email to