svn: /phpdoc/es/trunk/reference/ iconv/functions/iconv-substr.xml imap/functions/imap-createmailbox.xml
| From: | Juan Pablo Berdejo | Date: | Tue, 23 Aug 2011 00:41:56 +0000 |
| Subject: | svn: /phpdoc/es/trunk/reference/ iconv/functions/iconv-substr.xml imap/functions/imap-createmailbox.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-4707@lists.php.net to get a copy of this message | ||
jpberdejo Tue, 23 Aug 2011 00:41:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=315321
Log:
English version update
Changed paths:
U phpdoc/es/trunk/reference/iconv/functions/iconv-substr.xml
U phpdoc/es/trunk/reference/imap/functions/imap-createmailbox.xml
Modified: phpdoc/es/trunk/reference/iconv/functions/iconv-substr.xml
===================================================================
--- phpdoc/es/trunk/reference/iconv/functions/iconv-substr.xml 2011-08-22 23:56:34 UTC (rev 315320)
+++ phpdoc/es/trunk/reference/iconv/functions/iconv-substr.xml 2011-08-23 00:41:56 UTC (rev 315321)
@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 308253 Maintainer: jpberdejo Status: ready -->
+<!-- EN-Revision: 315005 Maintainer: jpberdejo Status: ready -->
<refentry xml:id="function.iconv-substr" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>iconv_substr</refname>
Modified: phpdoc/es/trunk/reference/imap/functions/imap-createmailbox.xml
===================================================================
--- phpdoc/es/trunk/reference/imap/functions/imap-createmailbox.xml 2011-08-22 23:56:34 UTC (rev
315320)
+++ phpdoc/es/trunk/reference/imap/functions/imap-createmailbox.xml 2011-08-23 00:41:56 UTC (rev
315321)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: lboshell Status: ready -->
+<!-- EN-Revision: 314999 Maintainer: jpberdejo Status: ready -->
<refentry xml:id="function.imap-createmailbox" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imap_createmailbox</refname>
@@ -50,51 +50,51 @@
<programlisting role="php">
<![CDATA[
<?php
-$buzon = imap_open("{imap.example.org}", "usuario", "contraseña",
OP_HALFOPEN)
- or die("no se pudo conectar: " . imap_last_error());
+$mbox = imap_open("{imap.example.org}", "username", "password",
OP_HALFOPEN)
+ or die("can't connect: " . imap_last_error());
-$nombre1 = "phpnuevobuzon";
-$nombre2 = imap_utf7_encode("phpnuevobuzón");
+$name1 = "phpnewbox";
+$name2 = imap_utf7_encode("phpnewböx"); // phpnewb&w7Y-x
-$nuevo_nombre = $nombre1;
+$newname = $name1;
-echo "El nuevo nombre será '$nombre1'<br />\n";
+echo "Newname will be '$name1'<br />\n";
-// ahora crearemos un nuevo buzón "phpbuzonprueba" en su carpeta de entrada,
+// ahora crearemos un nuevo buzón "phptestbox" en su carpeta de entrada,
// chequearemos su status después de su creación y finalmente lo removeremos
// para recuperar el estado inicial del buzón de entrada
-if (@imap_createmailbox($buzon,
imap_utf7_encode("{imap.example.org}INBOX.$nuevo_nombre"))) {
- $status = @imap_status($buzon, "{imap.example.org}INBOX.$nuevo_nombre", SA_ALL);
+if (@imap_createmailbox($mbox, imap_utf7_encode("{imap.example.org}INBOX.$newname"))) {
+ $status = @imap_status($mbox, "{imap.example.org}INBOX.$newname", SA_ALL);
if ($status) {
- echo "su nuevo buzón '$nombre1' tiene el siguiente status:<br
/>\n";
- echo "Mensajes: " . $status->messages . "<br />\n";
- echo "Recientes: " . $status->recent . "<br />\n";
- echo "No leídos: " . $status->unseen . "<br />\n";
- echo "Siguiente UID: " . $status->uidnext . "<br />\n";
- echo "Validez UID: " . $status->uidvalidity . "<br />\n";
+ echo "your new mailbox '$name1' has the following status:<br
/>\n";
+ echo "Messages: " . $status->messages . "<br />\n";
+ echo "Recent: " . $status->recent . "<br />\n";
+ echo "Unseen: " . $status->unseen . "<br />\n";
+ echo "UIDnext: " . $status->uidnext . "<br />\n";
+ echo "UIDvalidity:" . $status->uidvalidity . "<br />\n";
- if (imap_renamemailbox($buzon, "{imap.example.org}INBOX.$nuevo_nombre",
"{imap.example.org}INBOX.$nombre2")) {
- echo "se renombró el nuevo buzón de '$nombre1' a
'$nombre2'<br />\n";
- $nuevo_nombre = $nombre2;
+ if (imap_renamemailbox($mbox, "{imap.example.org}INBOX.$newname",
"{imap.example.org}INBOX.$name2")) {
+ echo "renamed new mailbox from '$name1' to '$name2'<br
/>\n";
+ $newname = $name2;
} else {
- echo "imap_renamemailbox en el nuevo buzón falló: " . imap_last_error() .
"<br />\n";
+ echo "imap_renamemailbox on new mailbox failed: " . imap_last_error() .
"<br />\n";
}
} else {
- echo "imap_status en el nuevo buzón falló: " . imap_last_error() . "<br
/>\n";
+ echo "imap_status on new mailbox failed: " . imap_last_error() . "<br
/>\n";
}
- if (@imap_deletemailbox($buzon, "{imap.example.org}INBOX.$nuevo_nombre")) {
- echo "el nuevo buzón fue eliminado para recuperar el estado inicial<br
/>\n";
+ if (@imap_deletemailbox($mbox, "{imap.example.org}INBOX.$newname")) {
+ echo "new mailbox removed to restore initial state<br />\n";
} else {
- echo "imap_deletemailbox en el nuevo buzón falló: " . implode("<br
/>\n", imap_errors()) . "<br />\n";
+ echo "imap_deletemailbox on new mailbox failed: " . implode("<br
/>\n", imap_errors()) . "<br />\n";
}
} else {
- echo "no se pudo crear un nuevo buzón: " . implode("<br />\n",
imap_errors()) . "<br />\n";
+ echo "could not create new mailbox: " . implode("<br />\n",
imap_errors()) . "<br />\n";
}
-imap_close($buzon);
+imap_close($mbox);
?>
]]>
</programlisting>