[Chameleon] Dual Language Functionality
Little, John
JLittle at NRCan.gc.ca
Mon Jun 26 11:12:17 EDT 2006
Hi Paul,
Thanks for your response.
I managed to solve my problem, though I'm sure there are better ways. I
simply made both English and French versions for the index, template and
map files and toggle between default languages by using
"myurl/index_en.phtml?LANGUAGE=en-CA" and
"myurl/index_fr.phtml?LANGUAGE=fr-CA" tagged onto the end of the url.
This does what I want, however I'm interested in learning the
recommended way to do manage dual languages.
I have not yet upgraded to 2.4 b/c there are other applications running
off 2.0 that we cannot disrupt at this time.
Cheers,
John
-----Original Message-----
From: Paul Spencer [mailto:pspencer at dmsolutions.ca]
Sent: Saturday, June 24, 2006 9:43 AM
To: Little, John
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Dual Language Functionality
John,
I'm fairly sure there would be at least some minor issues with upgrading
from 2.0 to 2.4 but I would hope these would be fairly isolated.
The latest version has some examples of bilingualizing stuff in the
samples directory.
Regarding wms_title_en and wms_title_fr (etc), I'm not sure that will
work ... well, obviously it doesn't ... but I'm not sure its even
supposed to work. I assume you are having problems with the legend
widget displaying names in english/french when you switch. I know
someone solved this problem. Hopefully they are reading and will post a
response.
Cheers
Paul
On 22-Jun-06, at 1:27 PM, Little, John wrote:
> Hi all,
>
> We are currently using Chameleon 2.0 (have not yet upgraded) and I am
> trying to make our application bilingual. I have found some
> information on this message board and have managed to get it to
> (mostly) work using the (now depreciated) language widget -- but I am
> having some problems... I have 2 templates (template_en.html &
> template_fr.html). Both pointing to a single map file. My
> understanding is that I should be able to use a single map file and
> display the correct language title by setting both a "wms_title_en"
> and a "wms_title_fr" (as well as all the other metadata eg:
> "wms_abstract_en" and "wms_abstract_fr" etc.) though this does not
> seem to work by adding the "_en" or "_fr". Am I missing something?
>
> Or..
>
> If I were to upgrade from 2.0 to 2.4, would this affect the existing
> application in any way? Also if this is the recommended approach,
> could someone explain (I am fairly new to Chameleon) exactly how to
> get dual language functionality working or point me to some
> documentation.
>
> I'd appreciate any help.
>
> Thanks,
>
> JL
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list