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:
@@ -2,13 +2,14 @@
|
||||
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||
<!-- $Revision$ -->
|
||||
<chapter id="resources">
|
||||
<title>Weiterführende Informationen</title>
|
||||
<para>
|
||||
Smarty's Homepage erreicht man unter <ulink url="&url.smarty;">&url.smarty;</ulink>.
|
||||
Sie können der Smarty Mailingliste beitreten in dem
|
||||
sie ein E-mail an &ml.general.sub;. Das Archiv der Liste
|
||||
ist hier <ulink url="&url.ml.archive;">&url.ml.archive;</ulink> einsehbar.
|
||||
</para>
|
||||
<title>Weiterführende Informationen</title>
|
||||
<para>
|
||||
Smarty's Homepage erreicht man unter <ulink
|
||||
url="&url.smarty;">&url.smarty;</ulink>. Sie können der Smarty
|
||||
Mailingliste beitreten in dem sie ein E-mail an
|
||||
&ml.general.sub;. Das Archiv der Liste ist hier <ulink
|
||||
url="&url.ml.archive;">&url.ml.archive;</ulink> einsehbar.
|
||||
</para>
|
||||
</chapter>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,26 +1,35 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
|
||||
<chapter id="language.combining.modifiers">
|
||||
<title>Kombinieren von Modifikatoren</title>
|
||||
<para>
|
||||
Sie können auf eine Variable so viele Modifikatoren anwenden wie Sie möchten.
|
||||
Die Modifkatoren werden in der Reihenfolge angewandt, in der sie notiert wurden - von links nach rechts.
|
||||
Kombinierte Modifikatoren müssen mit einem <literal>|</literal>-Zeichen (pipe) getrennt werden.
|
||||
</para>
|
||||
<example>
|
||||
<title>Kombinieren von Modifikatoren</title>
|
||||
<programlisting>
|
||||
<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready -->
|
||||
<chapter id="language.combining.modifiers">
|
||||
<title>Kombinieren von Modifikatoren</title>
|
||||
<para>
|
||||
Sie k<EFBFBD>nnen auf eine Variable so viele Modifikatoren anwenden
|
||||
wie Sie m<>chten. Die Modifkatoren werden in der Reihenfolge
|
||||
angewandt, in der sie notiert wurden - von links nach rechts.
|
||||
Kombinierte Modifikatoren m<>ssen mit einem
|
||||
<literal>|</literal>-Zeichen (pipe) getrennt werden.
|
||||
</para>
|
||||
<example>
|
||||
<title>Kombinieren von Modifikatoren</title>
|
||||
<programlisting role="php" >
|
||||
<![CDATA[
|
||||
index.php:
|
||||
<?php
|
||||
$smarty = new Smarty;
|
||||
$smarty->assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.');
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
$smarty->assign('articleTitle',
|
||||
'Einem Stadtrat in Salem in Pennsylvania (USA) droht eine
|
||||
zweij<69>hrige Haftstrafe, da eine von ihm gehaltene Rede sechs
|
||||
Minuten l<>nger dauerte, als erlaubt. Die Redezeit ist auf maximal
|
||||
f<>nf Minuten begrenzt.');
|
||||
|
||||
?>
|
||||
|
||||
index.tpl:
|
||||
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Wobei das Template dann folgendes ent<6E>lt:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{$articleTitle}
|
||||
{$articleTitle|upper|spacify}
|
||||
{$articleTitle|lower|spacify|truncate}
|
||||
@@ -28,22 +37,18 @@ index.tpl:
|
||||
{$articleTitle|lower|spacify|truncate:30:". . ."}
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
AUSGABE:
|
||||
</para>
|
||||
<screen>
|
||||
<para>
|
||||
AUSGABE:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Einem Stadtrat in Salem in Pennsylvania (USA) droht eine zweijährige Haftstrafe, da eine von ihm gehaltene Rede sechs Minuten länger dauerte, als erlaubt. Die Redezeit ist auf maximal fünf Minuten begrenzt.
|
||||
|
||||
EINEM STADTRAT IN SALEM IN PENNSYLVANIA (USA) DROHT EINE ZWEIJäHRIGE HAFTSTRAFE, DA EINE VON IHM GEHALTENE REDE SECHS MINUTEN LäNGER DAUERTE, ALS ERLAUBT. DIE REDEZEIT IST AUF MAXIMAL FüNF MINUTEN BEGRENZT.
|
||||
|
||||
Einem Stadtrat in Salem in Pennsylvania (USA) droht eine (usw.)
|
||||
EINEM STADTRAT IN SALEM IN PENNSYLVANIA (USA) DROHT EINE (usw.)
|
||||
e i n e m s t a d t r a t i n s a l e m i n...
|
||||
|
||||
e i n e m s t a d t r a t i n s a l e m i n . . .
|
||||
|
||||
e i n e m s t a d t r. . .]]>
|
||||
</screen>
|
||||
</example>
|
||||
</example>
|
||||
</chapter>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
Reference in New Issue
Block a user