abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r611859 - /incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/rfc4646/Lang.java
Date Mon, 14 Jan 2008 17:12:44 GMT
Author: jmsnell
Date: Mon Jan 14 09:12:39 2008
New Revision: 611859

URL: http://svn.apache.org/viewvc?rev=611859&view=rev
Log:
Fix region bug

Modified:
    incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/rfc4646/Lang.java

Modified: incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/rfc4646/Lang.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/rfc4646/Lang.java?rev=611859&r1=611858&r2=611859&view=diff
==============================================================================
--- incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/rfc4646/Lang.java
(original)
+++ incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/rfc4646/Lang.java
Mon Jan 14 09:12:39 2008
@@ -157,7 +157,8 @@
       switch(subtag.getType()) {
         case PRIMARY:
         case EXTLANG: 
-        case SCRIPT: break;
+        case SCRIPT:
+        case REGION: break;
         case VARIANT: return subtag;
         default: return null;
       }
@@ -175,6 +176,7 @@
         case PRIMARY:
         case EXTLANG: 
         case SCRIPT:
+        case REGION:
         case VARIANT: break;
         case EXTENSION: return subtag.getPrevious();
         default: return null;
@@ -194,6 +196,7 @@
         case EXTLANG: 
         case SCRIPT:
         case VARIANT: 
+        case REGION:
         case EXTENSION: break;
         case PRIVATEUSE: return subtag.getPrevious();
         default: return null;



Mime
View raw message