got it! use request-header:User-Agent
johnson 許議中 提到: > tks, it work. > > and another question: how to get the HTTP_USER_AGENT for wap device by > inputmodule > > best regards > > johnson > > > Jasha Joachimsthal 提到: > >> You need the request inputmodule for this, not the request generator >> (sorry for confusing you). >> >> Regards, >> >> Jasha >> >> -----Original Message----- >> From: Jasha Joachimsthal >> Sent: Sat 11/25/2006 5:53 PM >> To: [email protected] >> Cc: >> Subject: RE: wap i18n >> >> You're doing 2 generates in 1 match. What about >> >> <map:match pattern="hello.wml"> >> <map:generate src="hello.xml"/> >> <map:transform type="i18n"> >> <map:parameter name="locale" value="{request:locale}"/> >> </map:transform> >> <map:transform src="page2wml.xsl"/> >> <map:serialize type="wml"/> >> </map:match> >> >>> -----Original Message----- >>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: zaterdag 25 >>> november 2006 17:49 >>> To: [email protected] >>> Subject: Re: wap i18n >>> >>> 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 >>>> >>>> [EMAIL PROTECTED] >>>> www.hippo.nl >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>>>> Sent: zaterdag 25 november 2006 17:18 >>>>> To: [email protected] >>>>> 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, ??? <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> ------------------------------------------------------------------------ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
