koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha-doc codingguidelines.xml,1.1,1.2


From: skemotah
Subject: [Koha-cvs] CVS: koha-doc codingguidelines.xml,1.1,1.2
Date: Sun, 26 Jun 2005 17:47:44 -0700

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>&lt;!-- TMPL_IF --&gt;</userinput> inside a standard HTML
+         tag, like:<programlisting>&lt;td &lt;!-- tmpl_if 
name="x"&gt;class="x"&lt;!-- /TMPL_IF --&gt;&gt; or
+ &lt;input ... &lt;!-- tmpl_if name="y" --&gt; checked&lt;!-- /TMPL_IF 
--&gt;&gt;</programlisting></para>
+ 
+         <para>PLEASE always write:<programlisting>&lt;!-- TMPL_IF name="y" 
--&gt;
+     &lt;input ... checked&gt;
+ &lt;!-- TMPL_ELSE --&gt;
+     &lt;input ...&gt;
+ &lt;!-- /TMPL_IF --&gt;</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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]