mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
sync with en
This commit is contained in:
@@ -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, <font color="{#fontColor#}">{$name}!</font>
|
||||
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
|
||||
|
@@ -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
|
||||
|
@@ -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>
|
||||
|
@@ -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->display('index.tpl');
|
||||
|
||||
index.tpl:
|
||||
|
||||
{html_radios values=$id_client checked=$client_id output=$nom_client separator="<br />"}
|
||||
{html_radios name="id" values=$id_client checked=$client_id output=$nom_client separator="<br />"}
|
||||
|
||||
|
||||
index.php:
|
||||
@@ -106,10 +106,10 @@ index.php:
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;
|
||||
$smarty->assign('cust_radios', array(
|
||||
1001 => 'Joe Schmoe',
|
||||
1002 => 'Jack Smith',
|
||||
1003 => 'Jane Johnson',
|
||||
1004 => 'Charlie Brown'));
|
||||
1000 => 'Joe Schmoe',
|
||||
1001 => 'Jack Smith',
|
||||
1002 => 'Jane Johnson',
|
||||
1003 => 'Charlie Brown'));
|
||||
$smarty->assign('client_id', 1001);
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
@@ -119,12 +119,12 @@ index.tpl:
|
||||
{html_radios name="id" options=$cust_radios checked=$client_id separator="<br />"}
|
||||
|
||||
|
||||
SORTIE: (both examples)
|
||||
SORTIE: (pour les deux exemples)
|
||||
|
||||
<input type="radio" name="id[]" value="1000">Joe Schmoe<br />
|
||||
<input type="radio" name="id[]" value="1001" checked="checked"><br />
|
||||
<input type="radio" name="id[]" value="1002">Jane Johnson<br />
|
||||
<input type="radio" name="id[]" value="1003">Charlie Brown<br /></programlisting>
|
||||
<input type="radio" name="id" value="1000">Joe Schmoe<br />
|
||||
<input type="radio" name="id" value="1001" checked="checked"><br />
|
||||
<input type="radio" name="id" value="1002">Jane Johnson<br />
|
||||
<input type="radio" name="id" value="1003">Charlie Brown<br /></programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the 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>
|
||||
|
Reference in New Issue
Block a user