sync with en

This commit is contained in:
didou
2004-11-08 02:10:34 +00:00
parent 9860831eb2
commit 2b45953b32
5 changed files with 28 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.functions"> <sect1 id="language.syntax.functions">
<title>Fonctions</title> <title>Fonctions</title>
<para> <para>
@@ -13,15 +13,13 @@
<title>syntaxe des fonctions</title> <title>syntaxe des fonctions</title>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
{config_load file="colors.conf"} {config_load file="colors.conf"}
{include file="header.tpl"} {include file="header.tpl"}
{if $name eq "Fred"} {if $name eq "Fred"}
Vous <20>tes admis dans cette zone Vous <20>tes admis dans cette zone
{else} {else}
Bienvenue, &lt;font color="{#fontColor#}"&gt;{$name}!&lt;/font&gt; Bienvenue, <font color="{#fontColor#}">{$name} !</font>
{/if} {/if}
{include file="footer.tpl"} {include file="footer.tpl"}

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.quotes"> <sect1 id="language.syntax.quotes">
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title> <title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
<para> <para>
@@ -24,8 +24,7 @@ EXEMPLE DE SYNTAXE:
EXEMPLE PRATIQUE: EXEMPLE PRATIQUE:
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur {include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les {cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les apostrophes inverses
apostrophes inverses
]]> ]]>
</programlisting> </programlisting>
</example> </example>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.function.foreach"> <sect1 id="language.function.foreach">
<title>foreach,foreachelse</title> <title>foreach,foreachelse</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -22,10 +22,10 @@
<tbody> <tbody>
<row> <row>
<entry>from</entry> <entry>from</entry>
<entry>cha<EFBFBD>ne de caract<63>re</entry> <entry>tableau</entry>
<entry>oui</entry> <entry>oui</entry>
<entry><emphasis>n/a</emphasis></entry> <entry><emphasis>n/a</emphasis></entry>
<entry>Le nom du tableau <20> parcourir</entry> <entry>Le tableau <20> parcourir</entry>
</row> </row>
<row> <row>
<entry>item</entry> <entry>item</entry>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.function.html.radios"> <sect1 id="language.function.html.radios">
<title>html_radios</title> <title>html_radios</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -98,7 +98,7 @@ $smarty-&gt;display('index.tpl');
index.tpl: index.tpl:
{html_radios values=$id_client checked=$client_id output=$nom_client separator="&lt;br /&gt;"} {html_radios name="id" values=$id_client checked=$client_id output=$nom_client separator="&lt;br /&gt;"}
index.php: index.php:
@@ -106,10 +106,10 @@ index.php:
require('Smarty.class.php'); require('Smarty.class.php');
$smarty = new Smarty; $smarty = new Smarty;
$smarty-&gt;assign('cust_radios', array( $smarty-&gt;assign('cust_radios', array(
1001 =&gt; 'Joe Schmoe', 1000 =&gt; 'Joe Schmoe',
1002 =&gt; 'Jack Smith', 1001 =&gt; 'Jack Smith',
1003 =&gt; 'Jane Johnson', 1002 =&gt; 'Jane Johnson',
1004 =&gt; 'Charlie Brown')); 1003 =&gt; 'Charlie Brown'));
$smarty-&gt;assign('client_id', 1001); $smarty-&gt;assign('client_id', 1001);
$smarty-&gt;display('index.tpl'); $smarty-&gt;display('index.tpl');
@@ -119,12 +119,12 @@ index.tpl:
{html_radios name="id" options=$cust_radios checked=$client_id separator="&lt;br /&gt;"} {html_radios name="id" options=$cust_radios checked=$client_id separator="&lt;br /&gt;"}
SORTIE: (both examples) SORTIE: (pour les deux exemples)
&lt;input type="radio" name="id[]" value="1000"&gt;Joe Schmoe&lt;br /&gt; &lt;input type="radio" name="id" value="1000"&gt;Joe Schmoe&lt;br /&gt;
&lt;input type="radio" name="id[]" value="1001" checked="checked"&gt;&lt;br /&gt; &lt;input type="radio" name="id" value="1001" checked="checked"&gt;&lt;br /&gt;
&lt;input type="radio" name="id[]" value="1002"&gt;Jane Johnson&lt;br /&gt; &lt;input type="radio" name="id" value="1002"&gt;Jane Johnson&lt;br /&gt;
&lt;input type="radio" name="id[]" value="1003"&gt;Charlie Brown&lt;br /&gt;</programlisting> &lt;input type="radio" name="id" value="1003"&gt;Charlie Brown&lt;br /&gt;</programlisting>
</example> </example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready --> <!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.variables.smarty"> <sect1 id="language.variables.smarty">
<title>Variable r<>serv<72>e {$smarty}</title> <title>Variable r<>serv<72>e {$smarty}</title>
<para> <para>
@@ -119,16 +119,16 @@
<sect2 id="language.variables.smarty.ldelim"> <sect2 id="language.variables.smarty.ldelim">
<title>{$smarty.ldelim}</title> <title>{$smarty.ldelim}</title>
<para> <para>
This variable is used for printing the left-delimiter value Cette variable est utilis<69> pour afficher le d<>l<EFBFBD>miteur gauche. Lisez aussi
literally. See also <link la partie <link
linkend="language.function.ldelim">{ldelim},{rdelim}</link>. linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
</para> </para>
</sect2> </sect2>
<sect2 id="language.variables.smarty.rdelim"> <sect2 id="language.variables.smarty.rdelim">
<title>{$smarty.rdelim}</title> <title>{$smarty.rdelim}</title>
<para> <para>
This variable is used for printing the right-delimiter value literally. Cette variable est utilis<69> pour afficher le d<>l<EFBFBD>miteur droit. Lisez aussi
See also <link linkend="language.function.ldelim">{rdelim},{rdelim}</link>. la partie <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
</para> </para>
</sect2> </sect2>
</sect1> </sect1>