portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r333036 - in /portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl: LanguageImpl.java LanguageSetImpl.java
Date Sun, 13 Nov 2005 15:58:31 GMT
Author: ate
Date: Sun Nov 13 07:58:21 2005
New Revision: 333036

URL: http://svn.apache.org/viewcvs?rev=333036&view=rev
Log:
A few bugs I overlooked

Modified:
    portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
    portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageSetImpl.java

Modified: portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java?rev=333036&r1=333035&r2=333036&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
Sun Nov 13 07:58:21 2005
@@ -137,7 +137,7 @@
         {
             setTitle(getStringValue(bundle, JAVAX_PORTLET_TITLE, getTitle()));
             setShortTitle(getStringValue(bundle, JAVAX_PORTLET_SHORT_TITLE, getShortTitle()));
-            setKeywords(getStringValue(bundle, JAVAX_PORTLET_TITLE, getKeywordStr()));
+            setKeywords(getStringValue(bundle, JAVAX_PORTLET_KEYWORDS, getKeywordStr()));
         }
     }
     

Modified: portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageSetImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageSetImpl.java?rev=333036&r1=333035&r2=333036&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageSetImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageSetImpl.java
Sun Nov 13 07:58:21 2005
@@ -217,13 +217,16 @@
     public void postLoad( Object parameter ) throws Exception
     {
         Iterator iter = ((Collection) parameter).iterator();
+        LanguageImpl language;
         while (iter.hasNext())
         {
-            LanguageImpl language = (LanguageImpl)get((Locale)iter.next());
+            language = (LanguageImpl)get((Locale)iter.next());
+            // load available resource bundle values
             language.loadDefaults();
         }
-        // ensure default locale language is created
-        get(getDefaultLocale());
+        // ensure default locale language is created and available resource bundle values
are loaded
+        language = (LanguageImpl)get(getDefaultLocale());
+        language.loadDefaults();
     }
 
     protected ResourceBundle loadResourceBundle( Locale locale )



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


Mime
View raw message