[Cartoweb-dev] Problem: refresh map and set the language
Giovanni Virdis
g.virdis at riteco.it
Tue May 27 06:41:48 EDT 2008
Hi,
Thanks for your help.
I have looked the layers.tpl file in the demoCW3 project but I have not understood how to use this example.
I try to give you some information on my project:
Project name : 1_Applicazione
This is the organization of my folder:
Client_conf
Coreplugins (in this folder there is layers.tpl)
Htdocs
Po
Server_conf
Templates
How I can use the layers.tpl?
I have the problem also with the language.
I have made all the modifications that you have said to me but the language is always English.
In order :
* I have modified the file client.ini I and I have add this rows "defaultLang = it langList = it,fr, en"
* I have copy the file .po in my folder "1_Applicazione\po"
* I have created the file .mo in the folder "C:\ms4w\apps\cartoweb3\locale"
* I have executed the cw3setup.php -install and -clean
* I have restarded Apache
But the language is English.
Can you help me?
Thanks
________________________________
Da: Oliver Christen [mailto:oliver.christen at camptocamp.com]
Inviato: martedì 27 maggio 2008 10.31
A: Giovanni Virdis; cartoweb-dev at lists.maptools.org
Oggetto: Re: [Cartoweb-dev] Problem: refresh map and set the language
Hi
1) look at the layers.tpl file in the demoCW3 project, there are additional javscript function on the layer's checkbox
2) http://www.cartoweb.org/doc_head/docbook/xhtml/user.i18n.html#user.i18n.translations.translating
copy the existing .po files in your project and rename them with your lang tag (client.po -> client.it.po, server.your_project_name.po -> server.your_project_name.it.po, server.po -> server.it.po)
add your lang in client.ini : http://www.cartoweb.org/doc_head/docbook/xhtml/user.config.html#user.config.client
defaultLang = it
langList = it (for example)
and finally execut the cw3setup.php --install command so the .po get compiled into .mo
clean Smarty cache cw3setup.php --clean
eventualy restart apache (there are some unstabilities between gettext and apache)
regards
Oliver
----- Original Message -----
From: Giovanni Virdis <mailto:g.virdis at riteco.it>
To: cartoweb-dev at lists.maptools.org
Sent: Tuesday, May 27, 2008 9:28 AM
Subject: [Cartoweb-dev] Problem: refresh map and set the language
Hi, i have some question
* How I can refresh the map when i click on the check of the layer without use a button "refresh"
* How I can set the language to Italian
Thanks
________________________________
_______________________________________________
Cartoweb-dev mailing list
Cartoweb-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-dev/attachments/20080527/8c1166e6/attachment-0001.html
More information about the Cartoweb-dev
mailing list