cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 許議中 <john...@erp.tw>
Subject Re: wap i18n
Date Sat, 25 Nov 2006 16:49:12 GMT
tks but how to use.

I use it like

<map:match pattern="hello.wml">
       <map:generate type="request"/>
	<map:generate src="hello.xml"/>
       <map:transform type="i18n">
          <map:parameter name="locale" value="{../locale}"/>
       </map:transform>
	 <map:transform src="page2wml.xsl"/>
	<map:serialize type="wml"/>
</map:match>

got 500 error

johnson


Jasha Joachimsthal 提到:
> You can use request:locale from the RequestGenerator. Or if your uri's are like http://server/language/path/to/document.wml
your matcher can define it from the uri.
> 
> Jasha Joachimsthal
> 
> ---------
> 
> Hippo
> Oosteinde 11
> 1017 WT Amsterdam
> The Netherlands
> +31 (0)20 5224466 
> 
> jasha@hippo.nl
> www.hippo.nl
> 
> 
> 
>>-----Original Message-----
>>From: johnson@erp.tw [mailto:johnson@erp.tw]
>>Sent: zaterdag 25 november 2006 17:18
>>To: users@cocoon.apache.org
>>Subject: Re: wap i18n
>>
>>
>>tks, try it ok, but some of device show wrong languages.
>>
>>how to know the {local} which the client(mobile phone) send to server.
>>
>>Best Regards
>>
>>johnnson
>>
>>Bertrand Delacretaz 提到:
>>
>>>On 11/25/06, 許議中 <johnson@erp.tw> wrote:
>>>
>>>
>>>>...does anybody know how to use i18n in wml...
>>>
>>>
>>>Generating wml via i18n you mean? No problem:
>>>
>>> generator -> transformers -> i18nTransformer -> WMLSerializer
>>>
>>>WMLSerializer is an XML serializer with the appropriate mime-type 
>>>configuration.
>>>
>>>HTH,
>>>-Bertrand
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>


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


Mime
View raw message