You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Yen Dung <du...@sdcgrp.com> on 2002/04/01 04:26:38 UTC

How to change language in Jetspeed?

Could we customize language for our portlets?

 In Jetspeed portal web application, I want to add a function which enables users to customize the language for portlets, and it does not affect to other web browser.

I see, with Jetspeed 1.3a2 release, we could change from English to German by setting the internet options | Language . 

Could we program that action from a portlet application?

 If anyone has experiences on this issue, please show me.

 Thanks,

Yendung

Re: How to change language in Jetspeed?

Posted by Hugh Brien <hp...@comcast.net>.
Here is a bit of code that may point you in the right direction

        try
        {
            User jetspeedUser = JetspeedSecurity.getUser(user);
            this.runData.setUser(jetspeedUser);
            jetspeedUser.setTemp("locale", this.getRunData().getLocale());
        }
        catch (org.apache.turbine.util.security.UnknownEntityException use)
        {
            use.printStackTrace();
        }
        catch (org.apache.turbine.util.security.DataBackendException dbe)
        {
            dbe.printStackTrace();
        }



----- Original Message -----
From: "Yen Dung" <du...@sdcgrp.com>
To: <je...@jakarta.apache.org>
Sent: Sunday, March 31, 2002 9:26 PM
Subject: How to change language in Jetspeed?


Could we customize language for our portlets?

 In Jetspeed portal web application, I want to add a function which enables
users to customize the language for portlets, and it does not affect to
other web browser.

I see, with Jetspeed 1.3a2 release, we could change from English to German
by setting the internet options | Language .

Could we program that action from a portlet application?

 If anyone has experiences on this issue, please show me.

 Thanks,

Yendung



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Using a cancel button on the customize portlet

Posted by amit srivastava <am...@cisco.com>.
I have a cancel button in my portlet customizer.I am not able to go back 
from my portlet customizer to the main portal screen.
The doCancel method executes in my action handler class, but I am not sure 
what I need to do  in the doCancel method for the portlet to essentially do 
a "restore".


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to change language in Jetspeed?

Posted by Paul Spencer <pa...@apache.org>.
Yendung,
We are getting the language information from the browser, like you 
stated.  What is the reason for changing the "user's language" in 
jetspeed so it does not match the browser setting?

Paul Spencer


Yen Dung wrote:

> Could we customize language for our portlets?
> 
>  In Jetspeed portal web application, I want to add a function which enables users to customize the language for portlets, and it does not affect to other web browser.
> 
> I see, with Jetspeed 1.3a2 release, we could change from English to German by setting the internet options | Language . 
> 
> Could we program that action from a portlet application?
> 
>  If anyone has experiences on this issue, please show me.
> 
>  Thanks,
> 
> Yendung
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>