[Cartoweb-users] Internationalization

Alexandre Saunier alexandre.saunier at camptocamp.com
Mon Jan 29 03:12:45 EST 2007


Hello,

make sure that your projet client_conf/client.ini contains something like:
langList = en, pt
defaultLang = en

and that your cartoclient.tpl contains some lang switcher code. For 
instance in the default cartoclient.tpl:
      {if $locales|default:''}
     <p>
       {foreach from=$locales item=locale name=lang}
       {if !$smarty.foreach.lang.first || !$smarty.foreach.lang.last}
         {if $locale != $currentLang}<a 
href="javascript:document.carto_form.action='{$selfUrl}?lang={$locale}';FormItemSelected();">{$locale}</a>{else}<strong>{$locale}</strong>{/if}
         {if !$smarty.foreach.lang.last}|{/if}
       {/if}
       {/foreach}
     </p>
     {/if}

AS

Cristhiano Vasconcellos wrote:
> Hello to all!
> 
> I´ve done translation to portuguese and english. Mo files were generated 
> OK. But language icons don´t appear. The interface is only in 
> portuguese. What can I do to have this icons back?
> 
> Best regards
> Thanks in advance
> Cristhiano


More information about the Cartoweb-users mailing list