cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Sozeau <mat...@netcourrier.com>
Subject Changes in I18nTransformer
Date Mon, 15 Apr 2002 20:13:11 GMT
This patch is a work-in-progress. Markup in params seems clear and stable but in-place translation
has not been much discussed.
Solutions are :
1. 
<i18n:choose>
  <i18n:when test="en">Hello</i18n:when>
  <i18n:when test="ru">ðÒÉ×ÅÔ</i18n:when>
  <i18n:otherwise>...</i18n:otherwise>
</i18n:choose>

2.
<i18n:if locale="en_US">Program</i18n:if>
<i18n:if locale="en_GB">Programm</i18n:if>

perhap's the both must be implemented ? 
I think a default translation is needed so i'll change my implementation for solution 2 tomorrow
and finish this patch to merge with current cocoon (also updating the doc which must change
a little). 

Any feedback/criticism appreciated.

P.S: what is the preferred format for submission of large patches (apart from diff -u)?
-- 
"Black holes are where God divided by zero." - Steven Wright

MaT|TaM
Mime
View raw message