svn: /phpdoc/ bg/trunk/reference/strings/functions/get-html-translation-table.xml cs/trunk/reference/strings/functions/get-html-translation-table.xml de/trunk/reference/strings/functions/get-html-translation-table.xml el/trunk/reference/strings/functions/get-html-translation-table.xml it/trunk/reference/strings/functions/get-html-translation-table.xml kr/trunk/reference/strings/functions/get-html-translation-table.xml nl/trunk/reference/strings/functions/get-html-translation-table.xml pt_BR/trun

[email protected] (Richard Quadling) Wed, 05 Oct 2011 10:55:27 +0000
Newsgroups php.doc.bg,php.doc.cs,php.doc.de,php.doc.el,php.doc.it,php.doc.kr,php.doc.nl,php.doc.pt-br,php.doc.tr
Message-ID <[email protected]>
rquadling                                Wed, 05 Oct 2011 10:55:27 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=317774

Log:
Standardise the only example in the entire manual with an HTML entity that would normally be a UTF-8 character.

Changed paths:
    U   phpdoc/bg/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/cs/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/de/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/el/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/it/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/kr/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/nl/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/pt_BR/trunk/reference/strings/functions/get-html-translation-table.xml
    U   phpdoc/tr/trunk/reference/strings/functions/get-html-translation-table.xml
svn-diffs-317774.txt (text/x-diff, 10.1 KB)
Modified: phpdoc/bg/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/bg/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/bg/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -77,7 +77,7 @@
 <![CDATA[
 <?php
 $trans = get_html_translation_table(HTML_ENTITIES);
-$str = "Hallo & <Frau> & Kramer";
+$str = "Hallo & <Frau> & Krämer";
 $encoded = strtr($str, $trans);

 echo $encoded;
@@ -86,8 +86,8 @@
     </programlisting>
     &example.outputs;
     <screen>
-     <![CDATA[
-Hallo &amp;amp; &amp;lt;Frau&amp;gt; &amp;amp; Kr&amp;auml;mer
+<![CDATA[
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
 ]]>
     </screen>
    </example>

Modified: phpdoc/cs/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/cs/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/cs/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -33,35 +33,24 @@
       <title>Ukázka na překladovou tabulku</title>
       <programlisting role="php">
 <![CDATA[
-$trans = get_html_translation_table (HTML_ENTITIES);
-$str = "Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer";
-$encoded = strtr ($str, $trans);
+<?php
+$trans = get_html_translation_table(HTML_ENTITIES);
+$str = "Hallo & <Frau> & Krämer";
+$encoded = strtr($str, $trans);
+
+echo $encoded;
+?>
 ]]>
       </programlisting>
+      &example.outputs;
+      <screen>
+<![CDATA[
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
+]]>
+      </screen>
      </example>
-     Proměnná <literal>$encoded</literal> teď obsahuje: "Hallo
-     &amp;<tag>amp</tag>;
-     &amp;<tag>lt</tag>;Frau&amp;<tag>gt</tag>;
-     &amp;<tag>amp</tag>; Kr&amp;<tag>auml</tag>;mer".
     </para>
     <para>
-    Skvělé je, že pomocí <function>array_flip</function> můžete změnit směr
-    překladu.
-     <informalexample>
-      <programlisting role="php">
-$trans = array_flip ($trans);
-$original = strtr ($str, $trans);
-      </programlisting>
-     </informalexample>
-      Obsahem <literal>$original</literal> je: "Hallo &amp;
-      &lt;Frau> &amp; Krämer".
-     <note>
-      <para>
-       Tato funkce byla přidána v PHP 4.0.
-      </para>
-     </note>
-    </para>
-    <para>
      Viz také: <function>htmlspecialchars</function>,
      <function>htmlentities</function>,
      <function>strtr</function> a

Modified: phpdoc/de/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/de/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/de/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -91,7 +91,7 @@
     &example.outputs;
     <screen>
 <![CDATA[
-Hallo &amp; &lt;Frau&gt; &amp; Krämer
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
 ]]>
     </screen>
    </example>

Modified: phpdoc/el/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/el/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/el/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -36,30 +36,20 @@
 <![CDATA[
 <?php
 $trans = get_html_translation_table(HTML_ENTITIES);
-$str = "Hallo & <Frau> & Krδmer";
+$str = "Hallo & <Frau> & Krämer";
 $encoded = strtr($str, $trans);
+
+echo $encoded;
 ?>
 ]]>
       </programlisting>
-     </example>
-     Η μεταβλητή <literal>$encoded</literal> θα περιέχει τώρα:
-     <literal>"Hallo &amp;amp; &amp;lt;Frau&amp;gt; &amp;amp;
-     Kr&amp;auml;mer".</literal>
-    </para>
-    <para>
-     Μία άλλη ενδιαφέρουσα χρήση της συνάρτησης είναι, με τη βοήθεια της <function>array_flip</function>, η αλλαγή της κατεύθυνσης μετάφρασης.
-     <informalexample>
-      <programlisting role="php">
+      &example.outputs;
+      <screen>
 <![CDATA[
-<?php
-$trans = array_flip($trans);
-$original = strtr($encoded, $trans);
-?>
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
 ]]>
-      </programlisting>
-     </informalexample>
-      Το περιέχομενο της μεταβλητής <literal>$original</literal> θα είναι: "Hallo &amp;
-      &lt;Frau> &amp; Kr&auml;mer".
+      </screen>
+     </example>
     </para>
     <para>
      Ανατρέξτε επίσης στις: <function>htmlspecialchars</function>,

Modified: phpdoc/it/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/it/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/it/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -43,29 +43,18 @@
 $trans = get_html_translation_table(HTML_ENTITIES);
 $str = "Hallo & <Frau> & Krämer";
 $encoded = strtr($str, $trans);
+
+echo $encoded;
 ?>
 ]]>
       </programlisting>
-     </example>
-     La variabile <literal>$encoded</literal> ora contiene:
-     <literal>"Hallo &amp;amp; &amp;lt;Frau&amp;gt; &amp;amp;
-     Kr&amp;auml;mer".</literal>
-    </para>
-    <para>
-     Un'altro utilizzo interessante di questa funzione è dato, in combinazione con <function>array_flip</function>,
-     dalla possibilità di cambiare direzione alla decodifica.
-     <informalexample>
-      <programlisting role="php">
+      &example.outputs;
+      <screen>
 <![CDATA[
-<?php
-$trans = array_flip($trans);
-$original = strtr($encoded, $trans);
-?>
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
 ]]>
-      </programlisting>
-     </informalexample>
-      Il contenuto <literal>$original</literal> sarà: "Hallo &amp;
-      &lt;Frau> &amp; Kr&auml;mer".
+      </screen>
+     </example>
     </para>
     <para>
      Vedere anche: <function>htmlspecialchars</function>,

Modified: phpdoc/kr/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/kr/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/kr/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -89,7 +89,7 @@
     &example.outputs;
     <screen>
 <![CDATA[
-Hallo &amp;amp; &amp;lt;Frau&amp;gt; &amp;amp; Kr&amp;auml;mer
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
 ]]>
     </screen>
    </example>

Modified: phpdoc/nl/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/nl/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/nl/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -30,35 +30,23 @@
       <title>Vertalingstabel Voorbeeld</title>
       <programlisting role="php">
 <![CDATA[
-$trans = get_html_translation_table (HTML_ENTITIES);
+<?php
+$trans = get_html_translation_table(HTML_ENTITIES);
 $str = "Hallo & <Frau> & Krämer";
-$encoded = strtr ($str, $trans);
+$encoded = strtr($str, $trans);
+
+echo $encoded;
+?>
 ]]>
       </programlisting>
-     </example>
-     De <literal>$encoded</literal> variabele zal nu bevatten:
-     <literal>&quot;Hallo &amp;amp &amp;lt;Frau&amp;gt; &amp;amp;
-     Kr&amp;auml;mer</literal>.
-    </para>
-    <para>
-     Leuk is het gebruikmaken van <function>array_flip</function> om
-     de richting van de vertaling te veranderen.
-     <informalexample>
-      <programlisting role="php">
+      &example.outputs;
+      <screen>
 <![CDATA[
-$trans = array_flip ($trans);
-$original = strtr ($str, $trans);
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
 ]]>
-      </programlisting>
-     </informalexample>
-      De inhoud van <literal>$original</literal> zou zijn: &quot;Hallo &amp;
-      &lt;Frau> &amp; Krämer&quot;.
+      </screen>
+     </example>
     </para>
-    <para>
-     Zie ook: <function>htmlspecialchars</function>,
-     <function>htmlentities</function>, <function>strtr</function>,
-     en <function>array_flip</function>.
-    </para>
    </refsect1>
   </refentry>


Modified: phpdoc/pt_BR/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/pt_BR/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/pt_BR/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -72,19 +72,24 @@
   <para>
   <example>
    <title>Exemplo de tabela de tradução</title>
-   <programlisting role="php">
+    <programlisting role="php">
 <![CDATA[
 <?php
 $trans = get_html_translation_table(HTML_ENTITIES);
 $str = "Hallo & <Frau> & Krämer";
 $encoded = strtr($str, $trans);
+
+echo $encoded;
 ?>
 ]]>
     </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
+]]>
+    </screen>
    </example>
-   A variável <literal>$encoded</literal> conterá agora:
-   <literal>"Hallo &amp; &lt;Frau&gt; &amp;
-   Krämer".</literal>
   </para>
  </refsect1>


Modified: phpdoc/tr/trunk/reference/strings/functions/get-html-translation-table.xml
===================================================================
--- phpdoc/tr/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:40:55 UTC (rev 317773)
+++ phpdoc/tr/trunk/reference/strings/functions/get-html-translation-table.xml	2011-10-05 10:55:27 UTC (rev 317774)
@@ -90,7 +90,7 @@
     &example.outputs;
     <screen>
 <![CDATA[
-Hallo &amp;amp; &amp;lt;Frau&amp;gt; &amp;amp; Kr&amp;auml;mer
+Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
 ]]>
     </screen>
    </example>