cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: < i18n:when> ????????????
Date Tue, 14 Jan 2003 08:33:17 GMT
< i18n:when> ????????????<i18n:when> is implemented in Cocoon 2.1-dev only.
Take a look at the i18n samples there.

Konstantin
  ----- Original Message ----- 
  From: Hong Gia Dinh 
  To: cocoon-users@xml.apache.org 
  Sent: Tuesday, January 14, 2003 06:47
  Subject: < i18n:when> ????????????


  Can you all tell me where <i18n:when> is implemented??????????? 

  in which version of Cocoon??? i am using cocoon 2.0.3 but cant find and use it! 
  Thanks a lot 



  -----Original Message----- 
  From: Piroumian Konstantin [mailto:KPiroumian@protek.com] 
  Sent: 13 October 2002 16:48 
  To: 'cocoon-users@xml.apache.org' 
  Subject: RE: i18n:when 



  > From: Alex Romayev [mailto:romayev@yahoo.com] 
  > 
  > Hello, 
  > 
  > Just wanted to follow through on the discussion from a 
  > couple of month back.  There was a proposal that 
  > Konstantin was going to work on to implement i18:when 
  > tag as an alternative to using message files, so that 
  > you could have in the same file something like: 

  Yes, that's true. 
  And it was implemented by Matthieu Sozeau as we discussed. As the 
  implementation was done long time ago (several months) it needs 
  synchronization with the current version of Cocoon, but I hadn't time to do 
  it. Though, if anybody needs the full implementation with updated samples 
  and dictionary handling, just let me know (kpiroumian at apache dot org). 

  > 
  > <page> 
  >   <title> 
  >     <i18:when locale='en'>hello</i18n:when> 
  >     <i18n:when locale='fr'>bonjour</i18n:when> 
  >   </title> 
  > </page> 

  But note, that this is not an alternative to message bundles, but an 
  addition. You can still have all the pages generated from a bundle, but 
  provide some specific messages for a particular language. 

  > 
  > Now here is my question (I'm making some assumptions 
  > here, so please correct me if I'm wrong): 
  > 
  > I18nTransformer is not cacheable, which generally is 
  > not a problem, since it is used as one of the last 
  > transformers in a pipeline, when most of the 
  > "heavy-duty" processing is already done.  Now, this 
  > might not be true for i18n:when tag, which is most 
  > likely to be the first step in a pipeline and hence 
  > the rest of the pipleline is not going to get cached. 
  > Also note, that there is no reason why the result of 
  > i18n:when could not be cached. 

  So seems that i18n transformer can be cached based on the selected locale 
  and cache validity of the used dictionary. I have to think about it, but 
  again I have absolutely no time to work on it, sorry. 

  > 
  > Is this concern valid or am I missing something? 

  Seems reasonable and not only for the i18n:when case. 

  Regards, 
    Konstantin 

  > 
  > Cheers, 
  > -Alex 
  > 
  > --------------------------------------------------------------------- 
  > Please check that your question  has not already been answered in the 
  > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html> 
  > 
  > To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org> 
  > For additional commands, e-mail:   <cocoon-users-help@xml.apache.org> 
  > 

  --------------------------------------------------------------------- 
  Please check that your question  has not already been answered in the 
  FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html> 

  To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org> 
  For additional commands, e-mail:   <cocoon-users-help@xml.apache.org> 

Mime
View raw message