-
1. Re: Resource bundles and internationalization
cblumenro Jul 15, 2010 4:53 AM (in response to cblumenro)I just recognized that I missed another question regarding this. Can I update resource bundles on run time without having to restart the server? I guess the resources are cached somehow. Can I invalidate the cache (via JMX-console?) so that a modified properties file is read in again?
-
2. Re: Resource bundles and internationalization
julien_viet Jul 15, 2010 9:07 AM (in response to cblumenro)I'm not sure of that but if you start GateIn in "dev" (use or see tomcat gatein-dev.sh) mode, I think they are not cached.
-
3. Re: Resource bundles and internationalization
cblumenro Jul 15, 2010 2:14 PM (in response to julien_viet)I'm using JBoss, not Tomcat...
But also here, how would I be able in a production environment to update the resource bundles on the fly, when they e.g. are coming from a CMS and are deployed to the Portal server's file system? Then I would need a cache invalidation event that the properties files are read in again.
And back to my very first question: why is internationalization not working in pages.xml?
-
4. Re: Pages.xml: issues with resource bundles and internationalization
hoang_to Jul 18, 2010 10:39 PM (in response to cblumenro)The title of browser window depends on the PageNode 's metadata ( configured in navigation.xml).
Which tutorial told you that you could configure the I18n resources in pages.xml? In a pages.xml file, only the portlet window 's titles are internationalizable/localizable. However, GateIn has not supported that yet.
-
5. Re: Resource bundles and internationalization
hoang_to Jul 18, 2010 10:46 PM (in response to cblumenro)About updating I18n resources at runtime via JConsole, i created an issue here
-
6. Re: Pages.xml: issues with resource bundles and internationalization
cblumenro Jul 23, 2010 7:26 AM (in response to hoang_to)Minh Hoang TO schrieb:
The title of browser window depends on the PageNode 's metadata ( configured in navigation.xml).
When I specify this in pages.xml
{code:xml}
<page>
<name>myportlets</name>
<title>#{test}</title>
<access-permissions>Everyone</access-permissions>
<edit-permission>*:/platform/administrators</edit-permission>
<portlet-application>
<portlet>
<application-ref>gatein-jsp-hellouser-3.0.0-GA</application-ref>
<portlet-ref>JSPHelloUserPortlet</portlet-ref>
</portlet>
<access-permissions>Everyone</access-permissions>
<show-info-bar>true</show-info-bar>
<show-application-state>true</show-application-state>
<show-application-mode>true</show-application-mode>
</portlet-application>
</page>
{code}
and referring to that page in navigation.xml by
{code:xml}
<node>
<uri>myportlets</uri>
<name>myportlets</name>
<label>#{portal.classic.hello}</label>
<visibility>DISPLAYED</visibility>
<page-reference>portal::classic::myportlets</page-reference>
</node>
{code}
I get #{test} as the title of my browser window when I call the page. The translated value for #{portal.classic.hello} is correctly displayed but just in the navigation portlet, not as the browser window title.
So I think your statement is not accurate.
Minh Hoang TO schrieb:
Which tutorial told you that you could configure the I18n resources in pages.xml? In a pages.xml file, only the portlet window 's titles are internationalizable/localizable. However, GateIn has not supported that yet.
I did not see that in any tutorial at all, but it was just my assumption that internationalization would work in general.
-
7. Re: Pages.xml: issues with resource bundles and internationalization
trong.tran Jul 24, 2010 2:52 PM (in response to cblumenro)Yes, the current page's title is as browser window title.
the page's title and portlet's title are not localizable yet. That's why you can not configure them as keys in the pages.xml,
-
8. Re: Pages.xml: issues with resource bundles and internationalization
cblumenro Jul 25, 2010 11:19 AM (in response to trong.tran)Is there already a jira for this?
-
9. Re: Pages.xml: issues with resource bundles and internationalization
trong.tran Jul 25, 2010 11:28 AM (in response to cblumenro)No, there is not. Could you create one for this ?
-
10. Re: Pages.xml: issues with resource bundles and internationalization
cblumenro Jul 25, 2010 11:40 AM (in response to trong.tran)