[Koha-devel] template system abuse

Paul POULAIN paul.poulain at free.fr
Thu Apr 13 16:59:02 CEST 2006


Owen Leonard a écrit :

> Paul, is this method translator-safe?  I thought you had had difficulties
> in the past with constructions like this?
> So it comes down to three suggestions from me: 
> 3. Find out if we're breaking the translator script :)

yes, this method is translator safe.
the translator only hates <tmpl_if> INSIDE an html tag, like :
<input <!-- tmpl_if name="xxx"-->type="hidden"<!-- 
tmpl_else-->type="text"<!-- /tmpl_if --> value="ttt"/>
(in this case tmpl_if/else is inside an <input>
-- 
Paul POULAIN et Henri Damien LAURENT
Consultants indépendants
en logiciels libres et bibliothéconomie (http://www.koha-fr.org)





More information about the Koha-devel mailing list