[Koha-cvs] CVS: koha-doc codingguidelines.xml,1.1,1.2
skemotah
shedges at users.sourceforge.net
Mon Jun 27 02:47:44 CEST 2005
- Previous message: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/de/parameters marc_subfields_structure.tmpl,1.1,1.2 marctagstructure.tmpl,1.1,1.2 printers.tmpl,1.1,1.2 systempreferences.tmpl,1.1,1.2 z3950servers.tmpl,1.1,1.2
- Next message: [Koha-cvs] CVS: koha/misc/zebra - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/koha/koha-doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25672
Modified Files:
codingguidelines.xml
Log Message:
Added warning about TMPL_IF inside html tags
Index: codingguidelines.xml
===================================================================
RCS file: /cvsroot/koha/koha-doc/codingguidelines.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** codingguidelines.xml 13 Jun 2005 11:08:51 -0000 1.1
--- codingguidelines.xml 27 Jun 2005 00:47:42 -0000 1.2
***************
*** 159,162 ****
--- 159,173 ----
}</programlisting>
+ <para>Be aware that Koha's translation tool cannot handle
+ <userinput><!-- TMPL_IF --></userinput> inside a standard HTML
+ tag, like:<programlisting><td <!-- tmpl_if name="x">class="x"<!-- /TMPL_IF -->> or
+ <input ... <!-- tmpl_if name="y" --> checked<!-- /TMPL_IF -->></programlisting></para>
+
+ <para>PLEASE always write:<programlisting><!-- TMPL_IF name="y" -->
+ <input ... checked>
+ <!-- TMPL_ELSE -->
+ <input ...>
+ <!-- /TMPL_IF --></programlisting></para>
+
<para>Note that some scripts use two different templates, depending on
what the user wants to do. This is sometimes a mistake in Koha design,
- Previous message: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/de/parameters marc_subfields_structure.tmpl,1.1,1.2 marctagstructure.tmpl,1.1,1.2 printers.tmpl,1.1,1.2 systempreferences.tmpl,1.1,1.2 z3950servers.tmpl,1.1,1.2
- Next message: [Koha-cvs] CVS: koha/misc/zebra - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Koha-cvs
mailing list