[Cartoweb-users] "alt" and "title" parameters of toolbar images

Oliver Christen oliver.christen at camptocamp.com
Thu Mar 29 04:46:06 EST 2007


oh, and I forgot to say,
the name used for alt and title is the id of the tool.
If you start to mess the tool ids in php you will most certainly break the 
tools.

regards
Oliver

> well, this may be problematic
> the toolbar button are generated dynamically via the toolbar.tpl file
>
> alt="{$tool->id}" title="{t}{$tool->id}{/t}"
>
> and there is no real easy or nice way to define a smarty array in the 
> template (at least none that I know)
> so the easiest would be to add some ugly list of {if} {elseif} {/if} 
> clauses
> for exemple:
> alt="{if $tool->id == 'zoomin'}Zoom In{elseif $tool->id == 'zoomout'}Zoom 
> Out{elseif $tool->id == 'full_extent'}Full Extent{/if}"
>
> it would be more efficient with the language translation system
>
> regards
> Oliver
>
> ----- Original Message ----- 
> From: "Valerio Noti" <valerio.noti at gmail.com>
> To: "Oliver Christen" <oliver.christen at camptocamp.com>
> Cc: <cartoweb-users at lists.maptools.org>
> Sent: Thursday, March 29, 2007 11:10 AM
> Subject: Re: [Cartoweb-users] "alt" and "title" parameters of toolbar 
> images
>
>
> Oliver,
> at the moment I don't use language management and .po files.
> I'd need a quick and temporary solution. Where can I find (php files?)
> the original strings to modify?
>
> Thanks
>
> Valerio
>
> 2007/3/29, Oliver Christen <oliver.christen at camptocamp.com>:
>> Hi Valerio
>>
>> simply add the corresponding string in the .po files for the language you
>> want
>>
>> for exemple
>>
>> msgid "full_extent"
>> msgstr "Vue générale"
>>
>> then setup your project with cw3setup.php --install to regenerate the .mo
>> and cw3setup.php --clean to remove cached template files
>>
>> regards
>> Oliver
>>
>> > Hi,
>> > how can I change "alt" and "title" parameters of toolbar images in cw3
>> > interface?
>> > i.e. I'd like user read "Zoom All" instead of "full_extent" when he's
>> > over the button with mouse.
>> >
>> > Thanks in advance
>> >
>> > Valerio
>> >
>> > --
>> > /*
>> > Valerio Noti
>> > */
>> > _______________________________________________
>> > Cartoweb-users mailing list
>> > Cartoweb-users at lists.maptools.org
>> > http://lists.maptools.org/mailman/listinfo/cartoweb-users
>> >
>>
>>
>
>
> -- 
> /*
> Valerio Noti
> */
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> 



More information about the Cartoweb-users mailing list