mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
sync with EN
This commit is contained in:
@@ -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.5 Maintainer: gerald Status: ready -->
|
<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready -->
|
||||||
|
|
||||||
<sect1 id="language.syntax.comments">
|
<sect1 id="language.syntax.comments">
|
||||||
<title>Commentaires</title>
|
<title>Commentaires</title>
|
||||||
@@ -18,22 +18,23 @@
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<body>
|
<body>
|
||||||
{* un commentaire sur une seule ligne *}
|
{* Je suis un commentaire Smarty, je n'existe pas dans la sortie compil<69>e *}
|
||||||
|
|
||||||
|
{* un autre commentaire Smarty sur une seule ligne *}
|
||||||
|
<!-- Un commentaire Html qui sera envoy<6F> au navigateur -->
|
||||||
|
|
||||||
{* ces multi-lignes sont des commentaires
|
{* ces multi-lignes sont des commentaires
|
||||||
qui ne sont pas envoy<6F>es au navigateur
|
qui ne sont pas envoy<6F>es au navigateur
|
||||||
*}
|
*}
|
||||||
|
|
||||||
{* Inclusion de l'en t<>te *}
|
{* Inclusion du fichier d'en t<>te *}
|
||||||
{include file='header.tpl'}
|
{include file='header.tpl'}
|
||||||
|
|
||||||
|
|
||||||
{* Note aux d<>veloppeurs : $includeFile est assign<67> au script foo.php *}
|
{* Note aux d<>veloppeurs : $includeFile est assign<67> au script foo.php *}
|
||||||
<!-- ce commentaire html est envoy<6F> au navigateur -->
|
<!-- Affichage du bloc principal -->
|
||||||
{include file=$includeFile}
|
{include file=$includeFile}
|
||||||
|
|
||||||
{include file=#includeFile#}
|
|
||||||
|
|
||||||
{* Ce block <select> est redondant *}
|
{* Ce block <select> est redondant *}
|
||||||
{*
|
{*
|
||||||
<select name="company">
|
<select name="company">
|
||||||
|
@@ -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.6 Maintainer: yannick Status: ready -->
|
<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready -->
|
||||||
|
|
||||||
<sect1 id="language.function.assign">
|
<sect1 id="language.function.assign">
|
||||||
<title>{assign}</title>
|
<title>{assign}</title>
|
||||||
@@ -60,6 +60,16 @@ La valeur de $name est Bob.
|
|||||||
</screen>
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
|
|
||||||
|
<example>
|
||||||
|
<title>{assign} avec quelques fonctions math<74>matiques</title>
|
||||||
|
<para>Cet exemple complexe doit avoir ces variables entre crochets.</para>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
{assign var=running_total value=`$running_total+$some_array[loop].some_value`}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
</example>
|
||||||
|
|
||||||
<example>
|
<example>
|
||||||
<title>Acc<EFBFBD>s aux variables {assign} depuis un script PHP.</title>
|
<title>Acc<EFBFBD>s aux variables {assign} depuis un script PHP.</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -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.12 Maintainer: yannick Status: ready -->
|
<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready -->
|
||||||
|
|
||||||
<sect1 id="language.modifier.date.format">
|
<sect1 id="language.modifier.date.format">
|
||||||
<title>date_format</title>
|
<title>date_format</title>
|
||||||
@@ -77,6 +77,9 @@
|
|||||||
<![CDATA[
|
<![CDATA[
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$config['date'] = '%I:%M %p';
|
||||||
|
$config['time'] = '%H:%M:%S';
|
||||||
|
$smarty->assign('config',$config);
|
||||||
$smarty->assign('hier', strtotime('-1 day'));
|
$smarty->assign('hier', strtotime('-1 day'));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -89,10 +92,10 @@ $smarty->assign('hier', strtotime('-1 day'));
|
|||||||
<![CDATA[
|
<![CDATA[
|
||||||
{$smarty.now|date_format}
|
{$smarty.now|date_format}
|
||||||
{$smarty.now|date_format:"%D"}
|
{$smarty.now|date_format:"%D"}
|
||||||
{$smarty.now|date_format:"%I:%M %p"}
|
{$smarty.now|date_format:$config.date}
|
||||||
{$yesterday|date_format}
|
{$yesterday|date_format}
|
||||||
{$yesterday|date_format:"%A, %B %e, %Y"}
|
{$yesterday|date_format:"%A, %B %e, %Y"}
|
||||||
{$yesterday|date_format:"%H:%M:%S"}
|
{$yesterday|date_format:$config.time}
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -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.5 Maintainer: yannick Status: ready -->
|
<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready -->
|
||||||
|
|
||||||
<sect1 id="language.modifier.default">
|
<sect1 id="language.modifier.default">
|
||||||
<title>default</title>
|
<title>default</title>
|
||||||
@@ -38,34 +38,39 @@
|
|||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</informaltable>
|
||||||
<example>
|
<example>
|
||||||
<title>default</title>
|
<title>D<EFBFBD>faut</title>
|
||||||
<programlisting role="php">
|
<programlisting role="php">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$smarty->assign('TitreArticle', 'Les portes de la moria restent ferm<72>es.');
|
$smarty->assign('TitreArticle', 'Les portes de la moria restent ferm<72>es.');
|
||||||
|
$smarty->assign('email','');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
O<EFBFBD> le template est :
|
O<EFBFBD> le template est :
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
{$TitreArticle|default:"pas de titre"}
|
{$articleTitle|default:'Aucun titre'}
|
||||||
{$monTitre|default:"pas de titre"}
|
{$myTitle|default:'Aucun titre'}
|
||||||
|
{$email|default:'Aucune adresse email disponible'}
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
Ce qui donne <20> l'<27>cran :
|
Ce qui donne <20> l'<27>cran :
|
||||||
</para>
|
</para>
|
||||||
<screen>
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
Les portes de la moria restent ferm<72>es.
|
Les portes de la moria restent ferm<72>es.
|
||||||
pas de titre
|
Aucun titre
|
||||||
</screen>
|
Aucune adresse email disponible
|
||||||
</example>
|
]]>
|
||||||
<para>
|
</screen>
|
||||||
|
</example>
|
||||||
|
<para>
|
||||||
Voir aussi
|
Voir aussi
|
||||||
<link linkend="tips.default.var.handling">la gestion des variables par d<>faut</link>
|
<link linkend="tips.default.var.handling">la gestion des variables par d<>faut</link>
|
||||||
et <link linkend="tips.blank.var.handling">la gestion de l'effacement des variables</link>.
|
et <link linkend="tips.blank.var.handling">la gestion de l'effacement des variables</link>.
|
||||||
|
@@ -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.5 Maintainer: yannick Status: ready -->
|
<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready -->
|
||||||
|
|
||||||
<sect1 id="language.modifier.indent">
|
<sect1 id="language.modifier.indent">
|
||||||
<title>indent</title>
|
<title>indent</title>
|
||||||
@@ -98,7 +98,8 @@ Statistics show that teen pregnancy drops off significantly after 25.
|
|||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Voir aussi
|
Voir aussi
|
||||||
<link linkend="language.modifier.strip">strip</link> et
|
<link linkend="language.modifier.strip">strip</link>,
|
||||||
|
<link linkend="language.modifier.wordwrap">wordwrap</link> et
|
||||||
<link linkend="language.modifier.spacify">spacify</link>.
|
<link linkend="language.modifier.spacify">spacify</link>.
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
Reference in New Issue
Block a user