-
1. Re: How do JBossPortal support multi lingual?
antoine_h Nov 27, 2007 4:39 AM (in response to hosseinhelali)good support...
it is compliant to the standard of JSR-168, that have settled all that.
I have done a portal with 3 languages, and given consulting advice for another one in belgium : 3 languages too.
no problems.
you have to manage the way you want the language to be choosen (at first visit, with the user preference, or let the user choose it when he wants).
and manage the way you store the choice...
that is a business choice... not a portal requierement... so you have to do it.
but it is not difficult.
for arabic (or chinese), be carefull with the encoding, etc...
but that is not specific to a portal : it is something for all application (web application, desktop application)...
there are plenty of post and answer about that in the forum.
search with the word "locale". -
2. Re: How do JBossPortal support multi lingual?
littleprince Feb 24, 2008 9:58 AM (in response to hosseinhelali)you have to manage the way you want the language to be choosen (at first visit, with the user preference, or let the user choose it when he wants). and manage the way you store the choice... that is a business choice... not a portal requierement... so you have to do it. but it is not difficult.
I have problem on manage the way of storing the choice. Can anyone advise me on this?
i put a language selection box on the header, and when the user change the language, it suppose to change the language of the portal and portlets. However, i have no idea how to pass the parameter from servlet to the portal and portlets.
i tried to use setAttribute with application_scope, but seems is not working because of they are not in the same war. -
3. Re: How do JBossPortal support multi lingual?
juancito Feb 27, 2008 5:55 PM (in response to hosseinhelali)As you could do this:
Ingles
Aleman
Frances
If I select English to me to show all files that have English language, as you could do it? -
4. Re: How do JBossPortal support multi lingual?
littleprince Feb 27, 2008 8:05 PM (in response to hosseinhelali)ya. Finally i did it correctly. Thanks
-
5. Re: How do JBossPortal support multi lingual?
juancito Feb 28, 2008 9:32 AM (in response to hosseinhelali)You can share the information, please.
How do you do? -
6. Re: How do JBossPortal support multi lingual?
littleprince Feb 28, 2008 7:55 PM (in response to hosseinhelali)in jsp i put as juancito said in the previous post.
at the servlet i put
String paramter = req.getParameter("language");
String url = req.getParameter("url");
req.getSession().setAttribute("language", paramter);
resp.sendRedirect(url);
at LocaleInterceptor.java.
HttpServletRequest http_req = invocation.getServerContext().getClientRequest();
String lang = (String)http_req.getSession().getAttribute("language"); -
7. Re: How do JBossPortal support multi lingual?
avalendino Aug 13, 2008 9:10 AM (in response to hosseinhelali)I am exactly in the same case of littleprince, but i have not understood one thing: how you can write a servlet that works with jboss portal?
i've tryed to write a servlet, i have modified the web.xml of the portal-core application and the sevlet is correctly initializeb, but it is never executed before, and the servlet mapping is correct
what do you mean when you say "i put this code in the servlet" ?
there is a system servlet of jboss portal that i don't know?
thanks -
8. Re: How do JBossPortal support multi lingual?
littleprince Aug 13, 2008 8:40 PM (in response to hosseinhelali)i put the code at jboss-portal.sar\portal-server.war\WEB-INF\web.xml