svn: /phpdoc/de/trunk/ language-snippets.ent reference/pcre/functions/preg-split.xml reference/strings/functions/crypt.xml reference/strings/functions/md5.xml reference/strings/functions/sha1.xml reference/strings/functions/sprintf.xml

[email protected] (Nikita Popov)
Newsgroups php.doc.de
Message-ID <[email protected]>
nikic                                    Mon, 18 Jul 2011 10:45:27 +0000

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

Log:
Sync some DE docs with EN

Changed paths:
    U   phpdoc/de/trunk/language-snippets.ent
    U   phpdoc/de/trunk/reference/pcre/functions/preg-split.xml
    U   phpdoc/de/trunk/reference/strings/functions/crypt.xml
    U   phpdoc/de/trunk/reference/strings/functions/md5.xml
    U   phpdoc/de/trunk/reference/strings/functions/sha1.xml
    U   phpdoc/de/trunk/reference/strings/functions/sprintf.xml
svn-diffs-313376.txt (text/x-diff, 9.7 KB)
Modified: phpdoc/de/trunk/language-snippets.ent
===================================================================
--- phpdoc/de/trunk/language-snippets.ent	2011-07-18 10:36:09 UTC (rev 313375)
+++ phpdoc/de/trunk/language-snippets.ent	2011-07-18 10:45:27 UTC (rev 313376)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 310390 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 311626 Maintainer: simp Status: ready -->
 <!-- CREDITS: sammywg, mk, betz -->

 <!ENTITY changelog.randomseed '<row xmlns="http://docbook.org/ns/docbook"><entry>4.2.0</entry><entry>Der

Modified: phpdoc/de/trunk/reference/pcre/functions/preg-split.xml
===================================================================
--- phpdoc/de/trunk/reference/pcre/functions/preg-split.xml	2011-07-18 10:36:09 UTC (rev 313375)
+++ phpdoc/de/trunk/reference/pcre/functions/preg-split.xml	2011-07-18 10:45:27 UTC (rev 313376)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 307739 Maintainer: samesch Status: ready -->
+<!-- EN-Revision: 313291 Maintainer: samesch Status: ready -->
 <refentry xml:id="function.preg-split" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>preg_split</refname>
@@ -48,8 +48,8 @@
        Falls angegeben, werden maximal <parameter>limit</parameter>
        Teilzeichenketten zurückgegeben, wobei der Rest der Zeichenkette in der
        letzten Teilzeichenkette abgelegt wird. Ein
-       <parameter>limit</parameter> von -1, 0 oder Null bedeutet "kein Limit"
-       und wie es in PHP Standard ist, kann Null verwendet werden um den
+       <parameter>limit</parameter> von -1, 0 oder &null; bedeutet "kein Limit"
+       und wie es in PHP Standard ist, kann &null; verwendet werden um den
        Parameter <parameter>flags</parameter> zu überspringen.
       </para>
      </listitem>

Modified: phpdoc/de/trunk/reference/strings/functions/crypt.xml
===================================================================
--- phpdoc/de/trunk/reference/strings/functions/crypt.xml	2011-07-18 10:36:09 UTC (rev 313375)
+++ phpdoc/de/trunk/reference/strings/functions/crypt.xml	2011-07-18 10:45:27 UTC (rev 313376)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 312628 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 313299 Maintainer: sammywg Status: ready -->

 <refentry xmlns:xlink="http://www.w3.org/1999/xlink"  xmlns="http://docbook.org/ns/docbook" xml:id="function.crypt">
  <refnamediv>
@@ -46,7 +46,7 @@
    <listitem>
     <simpara>
      <constant>CRYPT_STD_DES</constant> - Standard DES-Hash mit einem 2-Zeichen-Salt
-     aus dem base64 Alphabet "./0-9A-Za-z". Bei Nutzung eines ungültigen Zeichens schlägt
+     aus dem Alphabet "./0-9A-Za-z". Bei Nutzung eines ungültigen Zeichens schlägt
      <function>crypt</function> fehl.
     </simpara>
    </listitem>
@@ -55,8 +55,8 @@
      <constant>CRYPT_EXT_DES</constant> - Erweiterte DES-basiertes Hashing
      mit einem 9-Zeichen-Salt, welcher aus einem Unterstrich, 4 Zeichen Iterationsanzahl
      und 4 Zeichen Salt besteht. Iterationsanzahl und Salt werden dargestellt durch Zeichen
-     aus dem base64 Alphabet "./0-9A-Za-z" dargestellt. Bei Nutzung eines ungültigen
-     Zeichens schlägt <function>crypt</function> fehl.
+     aus dem Alphabet "./0-9A-Za-z" dargestellt. Bei Nutzung eines ungültigen Zeichens
+     schlägt <function>crypt</function> fehl.
     </simpara>
    </listitem>
    <listitem>
@@ -69,7 +69,7 @@
     <simpara>
      <constant>CRYPT_BLOWFISH</constant> - Blowfish-Hash mit 22-Zeichen-Salt
      folgenden Aufbaus: "$2a$", gefolgt von einem zweistelligen Kostenparameter, einem
-     weiteren "$", und 22 Zahlen des base64 Alphabets "./0-6A-Za-z". Bei Nutzung eines
+     weiteren "$", und 22 Zahlen des Alphabets "./0-6A-Za-z". Bei Nutzung eines
      ungültigen Zeichens gibt crypt() einen leeren String zurück. Der zweistellige
      Kostenparameter ist der binäre Logarithmus der Iterationsanzahl und muss im
      Bereich von 04-31 liegen. Bei Nutzung von Werten außerhalb dieses Bereichs schlägt

Modified: phpdoc/de/trunk/reference/strings/functions/md5.xml
===================================================================
--- phpdoc/de/trunk/reference/strings/functions/md5.xml	2011-07-18 10:36:09 UTC (rev 313375)
+++ phpdoc/de/trunk/reference/strings/functions/md5.xml	2011-07-18 10:45:27 UTC (rev 313376)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 313306 Maintainer: sammywg Status: ready -->

 <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.md5">
  <refnamediv>
@@ -98,6 +98,11 @@
    </example>
   </para>
  </refsect1>
+
+ <refsect1 role="notes">
+  &reftitle.notes;
+  &note.passwordhashing;
+ </refsect1>

  <refsect1 role="seealso">
   &reftitle.seealso;

Modified: phpdoc/de/trunk/reference/strings/functions/sha1.xml
===================================================================
--- phpdoc/de/trunk/reference/strings/functions/sha1.xml	2011-07-18 10:36:09 UTC (rev 313375)
+++ phpdoc/de/trunk/reference/strings/functions/sha1.xml	2011-07-18 10:45:27 UTC (rev 313376)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 291313 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 313306 Maintainer: sammywg Status: ready -->

 <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.sha1">
  <refnamediv>
@@ -91,7 +91,6 @@

 if (sha1($str) === 'df589122eac0f6a7bd8795436e692e3675cadc3b') {
     echo "Hätten Sie gern einen grünen oder einen roten Apfel?";
-    exit;
 }
 ?>
 ]]>
@@ -99,6 +98,11 @@
    </example>
   </para>
  </refsect1>
+
+ <refsect1 role="notes">
+  &reftitle.notes;
+  &note.passwordhashing;
+ </refsect1>

  <refsect1 role="seealso">
   &reftitle.seealso;

Modified: phpdoc/de/trunk/reference/strings/functions/sprintf.xml
===================================================================
--- phpdoc/de/trunk/reference/strings/functions/sprintf.xml	2011-07-18 10:36:09 UTC (rev 313375)
+++ phpdoc/de/trunk/reference/strings/functions/sprintf.xml	2011-07-18 10:45:27 UTC (rev 313376)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 313279 Maintainer: sammywg Status: ready -->

 <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.sprintf">
  <refnamediv>
@@ -120,6 +120,10 @@
             Stelle weniger).
            </member>
            <member>
+            <literal>E</literal> - wie <literal>%e</literal>, mit dem Unterschied,
+            dass ein großes E verwendet wird (z.B. 1.2E+2).
+           </member>
+           <member>
             <literal>u</literal> - das Argument wird als Integer
             angesehen und ein positiver vorzeichenloser Dezimalwert (unsigned
             integer) ausgegeben.
@@ -136,6 +140,14 @@
             Verfügbar ab PHP 4.3.10 und PHP 5.0.3.
            </member>
            <member>
+            <literal>g</literal> - das Kürzere von <literal>%e</literal> und
+            <literal>%f</literal>.
+           </member>
+           <member>
+            <literal>G</literal> - das Kürzere von <literal>%E</literal> und
+            <literal>%f</literal>.
+           </member>
+           <member>
             <literal>o</literal> - das Argument wird als Integer
             angesehen und als Oktalzahl ausgegeben.
            </member>
@@ -166,13 +178,16 @@
         <programlisting role="php">
 <![CDATA[
 <?php
-$format = 'There are %d monkeys in the %s';
-printf($format, $num, $location);
+$anzahl = 5;
+$ort    = 'Baum';
+
+$format = 'Es sind %d Affen auf dem %s';
+printf($format, $anzahl, $ort);
 ?>
 ]]>
         </programlisting>
        </example>
-       Dies könnte "There are 5 monkeys in the tree" ausgeben. Aber nehmen
+       Dies wird "Es sind 5 Affen auf dem Baum" ausgeben. Aber nehmen
        wir einmal an, dass wir den Formatstring in einer separaten Datei
        erstellen, da wir ihn internationalisieren wollen und deshalb wie
        folgt umschreiben:
@@ -181,8 +196,8 @@
         <programlisting role="php">
 <![CDATA[
 <?php
-$format = 'The %s contains %d monkeys';
-printf($format, $num, $location);
+$format = 'Der %s enthält %d Affen';
+printf($format, $anzahl, $ort);
 ?>
 ]]>
         </programlisting>
@@ -197,8 +212,8 @@
         <programlisting role="php">
 <![CDATA[
 <?php
-$format = 'The %2$s contains %1$d monkeys';
-printf($format, $num, $location);
+$format = 'Der %2$s enthält %1$d Affen';
+printf($format, $anzahl, $ort);
 ?>
 ]]>
         </programlisting>
@@ -210,13 +225,33 @@
         <programlisting role="php">
 <![CDATA[
 <?php
-$format = 'The %2$s contains %1$d monkeys.
-           That\'s a nice %2$s full of %1$d monkeys.';
-printf($format, $num, $location);
+$format = 'Der %2$s enthält %1$d Affen.
+           %1$d Affen sind ziehmlich viel für einen %2$s.';
+printf($format, $anzahl, $ort);
 ?>
 ]]>
         </programlisting>
        </example>
+       Wenn Argumenttausch verwendet wird muss das <literal>n$</literal>
+       direkt nach dem Prozentzeichen (<literal>%</literal>) folgen, vor
+       jeglichen anderen Angaben, wie im Beispiel unten zu sehen ist.
+       <example>
+        <title>Positionstausch mit weiteren Spezifikatoren</title>
+        <programlisting role="php">
+<![CDATA[
+<?php
+$format= 'Der %2$s enthält %1$04d Affen';
+printf($format, $anzahl, $ort);
+?>
+]]>
+        </programlisting>
+        &example.outputs;
+        <screen>
+<![CDATA[
+Der Baum enthält 0005 Affen.
+]]>
+        </screen>
+       </example>
       </para>
      </listitem>
     </varlistentry>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.