portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/localization/impl LocalizationValveImpl.java
Date Mon, 07 Mar 2005 14:03:07 GMT
ate         2005/03/07 06:03:07

  Modified:    portal/src/java/org/apache/jetspeed/localization/impl
                        LocalizationValveImpl.java
  Log:
  Save the current user Locale for this Thread in org.apache.jetspeed.i18n.CurrentLocale for
usage by KeyedMessage message translation.
  See: http://issues.apache.org/jira/browse/JS2-219
  
  Revision  Changes    Path
  1.9       +3 -1      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/localization/impl/LocalizationValveImpl.java
  
  Index: LocalizationValveImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/localization/impl/LocalizationValveImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- LocalizationValveImpl.java	26 Jan 2005 00:44:41 -0000	1.8
  +++ LocalizationValveImpl.java	7 Mar 2005 14:03:07 -0000	1.9
  @@ -21,6 +21,7 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.jetspeed.PortalReservedParameters;
  +import org.apache.jetspeed.i18n.CurrentLocale;
   import org.apache.jetspeed.pipeline.PipelineException;
   import org.apache.jetspeed.pipeline.valve.AbstractValve;
   import org.apache.jetspeed.pipeline.valve.LocalizationValve;
  @@ -117,6 +118,7 @@
           request.setLocale(locale);
           request.getRequest().setAttribute(PortalReservedParameters.PREFERED_LOCALE_ATTRIBUTE,
locale);
           request.getRequest().getSession().setAttribute(PortalReservedParameters.PREFERED_LOCALE_ATTRIBUTE,
locale);
  +        CurrentLocale.set(locale);
          
           // Pass control to the next Valve in the Pipeline
           context.invokeNext(request);
  
  
  

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


Mime
View raw message