[Top][All Lists]
[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><!-- 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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha-doc codingguidelines.xml,1.1,1.2,
skemotah <=
- Prev by Date:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/de/circ branchtransfers.tmpl,1.2,1.3 circulation.tmpl,1.2,1.3 selectbranchprinter.tmpl,1.2,1.3
- Next by Date:
[Koha-cvs] CVS: koha/misc/zebra - New directory
- Previous by thread:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/de/circ branchtransfers.tmpl,1.2,1.3 circulation.tmpl,1.2,1.3 selectbranchprinter.tmpl,1.2,1.3
- Next by thread:
[Koha-cvs] CVS: koha/misc/zebra - New directory
- Index(es):