[mapserver-users] Re: mapserver and i18n
Bart van den Eijnden
bartvde at osgis.nl
Wed Oct 6 23:30:45 PDT 2010
Hi Steve,
I did not (mean to) say the client does not send the correct language parameter to the server. The client (browser) is in control and will request the language needed.
Your e-mail said the client needed to do the actual translation of e.g. layer names, and that's where I disagreed.
Best regards,
Bart
--
Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html
Bart van den Eijnden
OSGIS
bartvde at osgis.nl
On Oct 7, 2010, at 2:05 AM, Stephen Woodbridge wrote:
> On 10/6/2010 7:23 PM, Michael Smith wrote:
>> I would do this on the backend. Pass a language variable to your data
>> query
>>
>> DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY"
>>
>> And have one mapfile and just have your translations in
>> PostGis/Oracle/etc.
>>
>> Mike
>>
>>
>
> Yeah, that is what I have done but that requires the client to handle the management of the language selection and as Bart is pointing out the language selection should be handled on the server.
>
> Here is an example where you can select English, Arabic or French for the language of the Instructions.
>
> http://gis.imaptools.com/routing/leaddog/?zoom=10&lat=33.865&lon=35.52263&layers=B0TTTF&start=35.484217%2033.830394&stop=35.627718%2033.92659&method=STS&lang=arb
>
> It obviously needs more work to translate the whole page but my job was to just deal with the instructions part of this.
>
> -Steve
>
More information about the MapServer-users
mailing list