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"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.functions">
<title>Fonctions</title>
<para>
@@ -11,22 +11,20 @@
</para>
<example>
<title>syntaxe des fonctions</title>
<programlisting>
<programlisting>
<![CDATA[
{config_load file="colors.conf"}
{include file="header.tpl"}
{if $name eq "Fred"}
Vous <20>tes admis dans cette zone
{else}
Bienvenue, &lt;font color="{#fontColor#}"&gt;{$name}!&lt;/font&gt;
Bienvenue, <font color="{#fontColor#}">{$name} !</font>
{/if}
{include file="footer.tpl"}
]]>
</programlisting>
</programlisting>
</example>
<para>
Les fonctions natives et les fonctions utilisateurs ont toutes deux la m<>me

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.quotes">
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
<para>
@@ -12,7 +12,7 @@
</para>
<example>
<title>Syntaxe d'insertion de variables dans des cha<68>nes</title>
<programlisting>
<programlisting>
<![CDATA[
EXEMPLE DE SYNTAXE:
{func var="test $foo test"} <-- comprends $foo
@@ -24,10 +24,9 @@ EXEMPLE DE SYNTAXE:
EXEMPLE PRATIQUE:
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les
apostrophes inverses
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les apostrophes inverses
]]>
</programlisting>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

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

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
<sect1 id="language.function.html.radios">
<title>html_radios</title>
<informaltable frame="all">
@@ -84,7 +84,7 @@
<example>
<title>html_radios</title>
<programlisting>
<programlisting>
index.php:
require('Smarty.class.php');
@@ -98,7 +98,7 @@ $smarty-&gt;display('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:
@@ -106,10 +106,10 @@ index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('cust_radios', array(
1001 =&gt; 'Joe Schmoe',
1002 =&gt; 'Jack Smith',
1003 =&gt; 'Jane Johnson',
1004 =&gt; 'Charlie Brown'));
1000 =&gt; 'Joe Schmoe',
1001 =&gt; 'Jack Smith',
1002 =&gt; 'Jane Johnson',
1003 =&gt; 'Charlie Brown'));
$smarty-&gt;assign('client_id', 1001);
$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;"}
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="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="1003"&gt;Charlie Brown&lt;br /&gt;</programlisting>
&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="1002"&gt;Jane Johnson&lt;br /&gt;
&lt;input type="radio" name="id" value="1003"&gt;Charlie Brown&lt;br /&gt;</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

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