Skip to content

Commit fab9e21

Browse files
author
Pedro Antonio Gil Rodríguez
committed
Actualización a la última versión
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@329958 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 73c9c7b commit fab9e21

12 files changed

+193
-55
lines changed

appendices/migration54.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 8ad0d94e1c87b2daabff88e74acc31e8a11eec0a Maintainer: seros Status: ready -->
3+
<!-- EN-Revision: cd09fab47b40563cb8b2316d817efc973d991713 Maintainer: seros Status: ready -->
44
<!-- Reviewed: no Maintainer: andresdzphp -->
55
<!-- Based on UPGRADING version 322438. Work in progess !-->
66

@@ -353,6 +353,12 @@
353353
o posterior. Los sistemas anteriores no soportan enlaces simbólicos.
354354
</simpara>
355355
</listitem>
356+
<listitem>
357+
<simpara>
358+
<function>parse_url</function> ahora reconoce el host al omitir el esquema
359+
y está presente un separador componentes está presente al inicio. A partir de PHP 5.4.7.
360+
</simpara>
361+
</listitem>
356362
</itemizedlist>
357363
<simpara>OpenSSL:</simpara>
358364
<itemizedlist>
@@ -780,7 +786,7 @@
780786
Las extensiones de MySQL <link linkend="book.mysql">mysql</link>,
781787
<link linkend="book.mysqli">mysqli</link> y <link linkend="ref.pdo-mysql">PDO_mysql</link>
782788
utilizan ahora <link linkend="book.mysqlnd">mysqlnd</link> como la biblioteca predeterminada. Aún es posible usar
783-
libmysql especificando una ruta en las opciones de configuración.
789+
libmysqlclient especificando una ruta en las opciones de configuración.
784790
</simpara>
785791
</listitem>
786792
</itemizedlist>

language-snippets.ent

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 1865487b42aa7a9d88581e3f9c2f0d5d04a7afff Maintainer: seros Status: ready -->
3+
<!-- EN-Revision: 0f2e02d872820af3f807c1bfba2bcde0764d175f Maintainer: seros Status: ready -->
44
<!-- Reviewed: no -->
55
<!-- Keep 'em sorted -->
66

@@ -412,6 +412,8 @@ si PHP fue compilado con suporte de freetype (<option role="configure">--with-fr
412412

413413
<!ENTITY note.gd.notrequired '<note xmlns="http://docbook.org/ns/docbook"><para>Esta función no requiere la librería GD image.</para></note>'>
414414

415+
<!ENTITY note.gd.interpolation '<note xmlns="http://docbook.org/ns/docbook"><para>Está función se ve afectada por el método de interpolación establecido por <function>imagesetinterpolation</function>.</para></note>'>
416+
415417
<!ENTITY gd.image.description '<varlistentry xmlns="http://docbook.org/ns/docbook"><term><parameter>
416418
image</parameter></term><listitem><para>Un recurso image, es devuelto por una de las funciones de creación de imágenes,
417419
como <function>imagecreatetruecolor</function>.</para></listitem></varlistentry>'>
@@ -1066,7 +1068,7 @@ devuelto por <function>mysqli_stmt_init</function>.</para></listitem></varlisten
10661068
linkend="book.mysqlnd">mysqlnd</link>.'>
10671069
<!ENTITY mysqli.charset.note '<note xmlns="http://docbook.org/ns/docbook">
10681070
<para>MySQLnd siempre utiliza el juego de caracteres de idioma predeterminado. El juego de caracteres se envía en la
1069-
autentificación/acuerdo que se produce durante la conexión, que utilizará mysqlnd.</para><para>Libmysql utiliza el juego de caracteres predeterminado definido en
1071+
autentificación/acuerdo que se produce durante la conexión, que utilizará mysqlnd.</para><para>Libmysqlclient utiliza el juego de caracteres predeterminado definido en
10701072
<filename>my.cnf</filename> o se puede establecer llamando <function>mysqli_options</function> antes de
10711073
user <function>mysqli_real_connect</function>, pero después de <function>mysqli_init</function>.</para></note>'>
10721074

reference/image/book.xml

+72-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 858cacd62cfb747d3a1395b047136cf3f63441b5 Maintainer: seros Status: ready -->
3+
<!-- EN-Revision: c626fef979d3af2156736f93b050ebe742f5aece Maintainer: seros Status: ready -->
44
<!-- Reviewed: yes Maintainer: seros -->
55
<!-- Membership: bundled -->
66

@@ -51,7 +51,78 @@
5151
</simpara>
5252
</note>
5353
</para>
54+
55+
<para>
56+
GD admite variedad de formatos. Abajo se muestra una lista de los formatos soportados por GD y las observaciones
57+
sobre su disponibilidad incluyendo el soporte para lectura/escritura.
58+
</para>
59+
<para>
60+
<table>
61+
<title>Formatos admitidos por GD</title>
62+
<tgroup cols="4">
63+
<thead>
64+
<row>
65+
<entry>Formato</entry>
66+
<entry>Soporte para lectura</entry>
67+
<entry>Soporte para escritura</entry>
68+
<entry>Observaciones</entry>
69+
</row>
70+
</thead>
71+
<tbody>
72+
<row>
73+
<entry>JPEG</entry>
74+
<entry>&true;</entry>
75+
<entry>&true;</entry>
76+
<entry>GD 1.8+</entry>
77+
</row>
78+
<row>
79+
<entry>PNG</entry>
80+
<entry>&true;</entry>
81+
<entry>&true;</entry>
82+
<entry></entry>
83+
</row>
84+
<row>
85+
<entry>GIF</entry>
86+
<entry>&true;</entry>
87+
<entry>&true;</entry>
88+
<entry>No disponible entre GD 1.6 y GD 2.0.28</entry>
89+
</row>
90+
<row>
91+
<entry>XBM</entry>
92+
<entry>&true;</entry>
93+
<entry>&true;</entry>
94+
<entry>Soporte para lecutra a partir de PHP 4.0.1, y soporte para escritura a partir de PHP 5.0.0</entry>
95+
</row>
96+
<row>
97+
<entry>XPM</entry>
98+
<entry>&true;</entry>
99+
<entry>&false;</entry>
100+
<entry>Soporte para lectura a partir de PHP 4.0.1, no disponible en Windows. Requiere una versión interna de GD</entry>
101+
</row>
102+
<row>
103+
<entry>WBMP</entry>
104+
<entry>&true;</entry>
105+
<entry>&true;</entry>
106+
<entry>GD 1.8+</entry>
107+
</row>
108+
<row>
109+
<entry>WebP</entry>
110+
<entry>&true;</entry>
111+
<entry>&true;</entry>
112+
<entry>GD 2.1+, PHP 5.5+</entry>
113+
</row>
114+
</tbody>
115+
</tgroup>
116+
</table>
117+
</para>
118+
<para>
119+
A pesar de que la mayoría de los formatos están disponibles tanto para lectura como para escritura en la tabla de arriba,
120+
esto no significa que PHP fuera compilado con soporta para ellos. Para averiguar qué formatos estaban disponibles
121+
al compilar GD, use la función <function>gd_info</function>; para más información
122+
sobre el soporte de compilación para uno o más formatos, véase el capítulo de instalación.
123+
</para>
54124
</preface>
125+
55126
<!-- }}} -->
56127

57128
&reference.image.setup;

reference/image/examples.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 79dcbe011fb254dcd92c597064571fe313362a09 Maintainer: seros Status: ready -->
3+
<!-- EN-Revision: 87be62964da7a1e0c9a0e71f45f8ecc6f7f2b56f Maintainer: seros Status: ready -->
44
<!-- Reviewed: yes Maintainer: seros -->
55

66
<chapter xml:id="image.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -103,7 +103,7 @@ $margen_inf = 10;
103103
$sx = imagesx($estampa);
104104
$sy = imagesy($estampa);
105105
106-
// Fusionar la estampa con nuestra foto con una opacidad (transparencia) del 50%
106+
// Fusionar la estampa con nuestra foto con una opacidad del 50%
107107
imagecopymerge($im, $estampa, imagesx($im) - $sx - $margen_dcho, imagesy($im) - $sy - $margen_inf, 0, 0, imagesx($estampa), imagesy($estampa), 50);
108108
109109
// Guardar la imagen en un archivo y liberar memoria
@@ -122,9 +122,9 @@ imagedestroy($im);
122122
</example>
123123
Este ejemplo usa <function>imagecopymerge</function> para fusionar la estampa
124124
con la imagen original. Al usar esto, se puede establecer la opacidad de la estampa;
125-
en nuestro ejemplo la establecimos al 50% de opacidad (otro término para transparencia).
126-
En la práctica, esto sería útil para la protección del copyright como marcas de agua
127-
semitransparentes que son difíciles de eliminar, pero aún permiten ver la imagen.
125+
en nuestro ejemplo la establecimos al 50% de opacidad. En la práctica, esto sería útil
126+
para la protección del copyright como marcas de agua semitransparentes que son difíciles
127+
de eliminar, pero que aún permiten ver la imagen.
128128
</para>
129129
</section>
130130
</chapter>

reference/image/functions/gd-info.xml

+25-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 7be5197da2181e9d43bf8f9efda9fd00998bd7a7 Maintainer: seros Status: ready -->
3+
<!-- EN-Revision: 63ad4c2f57b6310d29af22d0b9821561fa4b726d Maintainer: seros Status: ready -->
44
<!-- Reviewed: yes Maintainer: seros -->
55
<refentry xml:id='function.gd-info' xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -36,59 +36,64 @@
3636
<tbody>
3737
<row>
3838
<entry>GD Version</entry>
39-
<entry>valor tipo <type>string</type> que describe la versión de
39+
<entry>valor de tipo <type>string</type> que describe la versión de
4040
<literal>libgd</literal> instalada.</entry>
4141
</row>
4242
<row>
4343
<entry>FreeType Support</entry>
44-
<entry>valor tipo <type>boolean</type>. &true;
44+
<entry>valor de tipo <type>boolean</type>. &true;
4545
si está instalado el soporte para Freetype.</entry>
4646
</row>
4747
<row>
4848
<entry>Freetype Linkage</entry>
49-
<entry>valor tipo <type>string</type> que describe la forma en la cual
49+
<entry>valor de tipo <type>string</type> que describe la forma en la cual
5050
Freetype fue vinculado. Los valores esperados son: 'with freetype',
5151
'with TTF library' y 'with unknown library'. Este elemento sólo
5252
estará definido si <literal>Freetype Support</literal> fue evaluado como
5353
&true;.</entry>
5454
</row>
5555
<row>
5656
<entry>T1Lib Support</entry>
57-
<entry>valor tipo <type>boolean</type>. &true;
57+
<entry>valor de tipo <type>boolean</type>. &true;
5858
si el soporte para <literal>T1Lib</literal> está incluido.</entry>
5959
</row>
6060
<row>
6161
<entry>GIF Read Support</entry>
62-
<entry>valor tipo <type>boolean</type>. &true;
62+
<entry>valor de tipo <type>boolean</type>. &true;
6363
si el soporte para la <emphasis>lectura</emphasis> de imágenes <literal>GIF</literal>
6464
está incluido.</entry>
6565
</row>
6666
<row>
6767
<entry>GIF Create Support</entry>
68-
<entry>valor tipo <type>boolean</type>. &true;
68+
<entry>valor de tipo <type>boolean</type>. &true;
6969
si el soporte para la <emphasis>creación</emphasis> de imágenes <literal>GIF</literal>
7070
está incluido.</entry>
7171
</row>
7272
<row>
7373
<entry>JPEG Support</entry>
74-
<entry>valor tipo <type>boolean</type>. &true;
74+
<entry>valor de tipo <type>boolean</type>. &true;
7575
si el soporte para <literal>JPEG</literal> está incluido.</entry>
7676
</row>
7777
<row>
7878
<entry>PNG Support</entry>
79-
<entry>valor tipo <type>boolean</type>. &true;
79+
<entry>valor de tipo <type>boolean</type>. &true;
8080
si el soporte para <literal>PNG</literal> está incluido.</entry>
8181
</row>
8282
<row>
8383
<entry>WBMP Support</entry>
84-
<entry>valor tipo <type>boolean</type>. &true;
84+
<entry>valor de tipo <type>boolean</type>. &true;
8585
si el soporte para <literal>WBMP</literal> está incluido.</entry>
8686
</row>
8787
<row>
8888
<entry>XBM Support</entry>
89-
<entry>valor tipo <type>boolean</type>. &true;
89+
<entry>valor de tipo <type>boolean</type>. &true;
9090
si el soporte para <literal>XBM</literal> está incluido.</entry>
9191
</row>
92+
<row>
93+
<entry>WebP Support</entry>
94+
<entry>Valor de tipo <type>boolean</type>. &true;
95+
si el soporte para <literal>WebP</literal> está incluido.</entry>
96+
</row>
9297
</tbody>
9398
</tgroup>
9499
</table>
@@ -140,8 +145,8 @@ array(9) {
140145
</example>
141146
</para>
142147
</refsect1>
143-
144-
<refsect1 role="changelog">
148+
149+
<refsect1 role="changelog">
145150
&reftitle.changelog;
146151
<para>
147152
<informaltable>
@@ -153,6 +158,12 @@ array(9) {
153158
</row>
154159
</thead>
155160
<tbody>
161+
<row>
162+
<entry>5.5.0</entry>
163+
<entry>
164+
Se añadió <literal>WebP Support</literal>.
165+
</entry>
166+
</row>
156167
<row>
157168
<entry>5.3.0</entry>
158169
<entry>
@@ -164,7 +175,7 @@ array(9) {
164175
</informaltable>
165176
</para>
166177
</refsect1>
167-
178+
168179
<refsect1 role="seealso">
169180
&reftitle.seealso;
170181
<para>

reference/image/functions/imagecreatefromgif.xml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: d732584196d90d7be728ea0ca101461c2ed8570c Maintainer: seros Status: ready -->
3+
<!-- EN-Revision: 98cb35bf0ffffbb3130f093f929a907e3e0b35f8 Maintainer: seros Status: ready -->
4+
<!-- Reviewed: no -->
45
<refentry xml:id="function.imagecreatefromgif" xmlns="http://docbook.org/ns/docbook">
56
<refnamediv>
67
<refname>imagecreatefromgif</refname>
@@ -93,6 +94,12 @@ imagedestroy($img);
9394
disponible entre estas versiones.
9495
</para>
9596
</note>
97+
<note>
98+
<para>
99+
Al leer ficheros GIF animados desde memoria, solamente es devuelto el
100+
primer fotograma de la imagen al puntero de recurso.
101+
</para>
102+
</note>
96103
&warn.no-win32-fopen-wrapper;
97104
</refsect1>
98105
</refentry>

reference/image/functions/imageistruecolor.xml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: seros Status: ready -->
3+
<!-- EN-Revision: 62b9defe2b949e14782a2e2abe6d5bb9039b37c7 Maintainer: seros Status: ready -->
4+
<!-- Reviewed: no -->
45
<refentry xml:id="function.imageistruecolor" xmlns="http://docbook.org/ns/docbook">
56
<refnamediv>
67
<refname>imageistruecolor</refname>
@@ -48,11 +49,14 @@ if(!imageistruecolor($im))
4849
// Crear una nueva instancia de imagen de color verdadero
4950
$tc = imagecreatetruecolor(imagesx($im), imagesy($im));
5051
52+
// Copiar sobre los píxeles
5153
imagecopy($tc, $im, 0, 0, 0, 0, imagesx($im), imagesy($im));
5254
imagedestroy($im);
5355
5456
$im = $tc;
5557
$tc = NULL;
58+
59+
// O usar imagepalettetotruecolor()
5660
}
5761
5862
// Continuar trabajando con la instancia de imagen
@@ -71,6 +75,7 @@ if(!imageistruecolor($im))
7175
<para>
7276
<simplelist>
7377
<member><function>imagecreatetruecolor</function></member>
78+
<member><function>imagepalettetotruecolor</function></member>
7479
</simplelist>
7580
</para>
7681
</refsect1>

0 commit comments

Comments
 (0)