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