Updade Translation

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@99118 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ernani Joppert Pontes Martins 2002-10-10 04:43:47 +00:00
parent d56d9df9cf
commit 319d2d89b2
3 changed files with 70 additions and 70 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- EN-Revision: 1.31 Maintainer: ernani Status: ready -->
<section id="zlib.constants">
&reftitle.constants;
&extension.constants;
@ -7,7 +7,7 @@
<varlistentry>
<term>
<constant>FORCE_GZIP</constant>
(<link linkend="language.types.integer">integer</link>)
(<link linkend="language.types.integer">inteiro</link>)
</term>
<listitem>
<simpara>
@ -18,7 +18,7 @@
<varlistentry>
<term>
<constant>FORCE_DEFLATE</constant>
(<link linkend="language.types.integer">integer</link>)
(<link linkend="language.types.integer">inteiro</link>)
</term>
<listitem>
<simpara>

View file

@ -1,21 +1,21 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.11 Maintainer: ernani Status: ready -->
<section id="zlib.configuration">
&reftitle.runtime;
&extension.runtime;
<para>
The zlib extension offers the option to transparently compress
your pages on-the-fly, if the requesting browser supports
this. Therefore there are three options in the <link
linkend="configuration.file">configuration file</link> &php.ini;.
A extensão zlib oferece a opção de comprimir transparentemente
suas páginas em tempo real, se o navegador requisitante suportar isto.
Então existem três opções no <link
linkend="configuration.file">arquivo de configuração</link> &php.ini;.
<table>
<title>Zlib Configuration Options</title>
<title>Opções de Configuração da Zlib</title>
<tgroup cols="3">
<thead>
<row>
<entry>Name</entry>
<entry>Default</entry>
<entry>Changeable</entry>
<entry>Nome</entry>
<entry>Padrão</entry>
<entry>Modificável</entry>
</row>
</thead>
<tbody>
@ -37,43 +37,43 @@
</tbody>
</tgroup>
</table>
For further details and definition of the PHP_INI_* constants see
Para maiores detalhes e definições das constantes PHP_INI_* veja a função
<function>ini_set</function>.
</para>
<para>
Here is a short explanation of the configuration directives.
Aqui está uma breve explicação das diretrizes de configuração.
<variablelist>
<varlistentry id="ini.zlib.output-compression">
<term>
<parameter>zlib.output_compression</parameter>
<type>boolean</type>/<type>integer</type>
<type>booleano</type>/<type>inteiro</type>
</term>
<listitem>
<para>
Whether to transparently compress pages. If this option is set
to "On" in &php.ini; or the Apache configuration, pages are
compressed if the browser sends an "Accept-Encoding: gzip" or
"deflate" header. "Content-Encoding: gzip" (respectively
"deflate") and "Vary: Accept-Encoding" headers are added to
the output.
Serve para comprimir páginas de modo transparente. Se esta opção for
mudada para "On" no &php.ini; ou na configuração do Apache, as páginas serão
comprimidas se o navegador enviar um cabeçalho "Accept-Encoding: gzip" ou
"deflate". "Content-Encoding: gzip" (respectivamente
"deflate") e cabeçalhos "Vary: Accept-Encoding" serão adicionados para
a saida.
</para>
<para>
You can use <function>ini_set</function> to disable this in
your script if the headers aren't already sent. If you output
a "Content-Type: image/" header the compression is disabled,
too (in order to circumvent a Netscape bug). You can reenable
it, if you add "ini_set('zlib.output_compression', 'On')"
after the header call which added the image content-type.
Você pode usar a função <function>ini_set</function> para desabilitar isto em
seu script se os cabeçalhos ainda não foram enviados. Se você enviar um cabeçalho à saída
"Content-Type: image/" a compressão será desabilitada,
também (para corrigir um defeito do Netscape). Você pode reabilitar
isto, se você adicionar a função "ini_set('zlib.output_compression', 'On')"
depois da chamada do cabeçalho que que foi adicionado o content-type da imagem.
</para>
<para>
This option also accepts integer values instead of boolean
"On"/"Off", using this you can set the output buffer size
(default is 4KB).
Esta opção também aceita valores inteiros em vez de valores booleanos
"On"/"Off", usando isto você pode configurar o tamanho do buffer de saída
(o padrão é 4KB).
</para>
<note>
<para>
<link linkend="ini.output-handler">output_handler</link> must be
empty if this is set 'On' ! Instead you must use zlib.output_handler.
<link linkend="ini.output-handler">output_handler</link> deve estar
vazio se a diretriz estiver configurada em 'On'! Em vez disto você deve usar zlib.output_handler.
</para>
</note>
</listitem>
@ -82,11 +82,11 @@
<varlistentry id="ini.zlib.output-compression-level">
<term>
<parameter>zlib.output_compression_level</parameter>
<type>integer</type>
<type>inteiro</type>
</term>
<listitem>
<para>
Compression level used for transparent output compression.
Nível de compressão usado para as saídas.
</para>
</listitem>
</varlistentry>
@ -98,9 +98,9 @@
</term>
<listitem>
<para>
You cannot specify additional output handlers if zlib.output_compression
is activated here. This setting does the same as <link linkend="ini.output-handler">
output_handler</link> but in a different order.
Você não pode especificar tratamentos adicionais de saída se zlib.output_compression
for ativado. Esta configuração faz o mesmo que a <link linkend="ini.output-handler">
output_handler</link> mas em uma ordem diferente.
</para>
</listitem>
</varlistentry>

View file

@ -1,36 +1,36 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- EN-Revision: 1.11 Maintainer: ernani Status: ready -->
<reference id="ref.zlib">
<title>Zlib Compression Functions</title>
<title>Funções de Compressão Zlib</title>
<titleabbrev>Zlib</titleabbrev>
<partintro>
<section id="zlib.intro">
&reftitle.intro;
<para>
This module enables you to transparently read and write
gzip (.gz) compressed files, through versions of most of
the <link linkend="ref.filesystem">filesystem</link> functions
which work with gzip-compressed files (and uncompressed files,
too, but not with sockets).
Este módulo lhe possibilita ler e gerar transparentemente
arquivos comprimidos do tipo gzip (.gz), através de muitas das
funções <link linkend="ref.filesystem">filesystem</link>
nas quais funcionam com arquivos gzip comprimidos (e arquivos não comprimidos
também, mas não com sockets).
</para>
<note>
<para>
Version 4.0.4 introduced a fopen-wrapper for .gz-files, so that
you can use a special 'zlib:' URL to access compressed files
transparently using the normal f*() file access functions if you
prepend the filename or path with a 'zlib:' prefix when calling
A Versão 4.0.4 introduziu a função fopen-wrapper para arquivos .gz, então
você pode usar o prefixo 'zlib:' especial para acessar arquivos comprimidos
transparentemente usando as funções normais de acesso a arquivos f*() se
você concatenar o nome do arquivo e ou seu caminho com o prefixo 'zlib:' quando usar a função
<function>fopen</function>.
</para>
<para>
In version 4.3.0, this special prefix has been changed to 'zlib://'
to prevent ambiguities with filenames containing ':'.
Na versão 4.3.0, este prefixo especial foi mudado para 'zlib://'
para previnir ambiguidades com nome de arquivos contendo ':'.
</para>
<para>
This feature requires a C runtime library that provides the
<literal>fopencookie()</literal> function. To my current
knowledge the GNU libc is the only library that provides
this feature.
Esta facilidade requer uma biblioteca em tempo de execução que provê a função
<literal>fopencookie()</literal>. Em meu conhecimento atual
a GNU libc é a única bliblioteca que provê
esta facilidade.
</para>
</note>
</section>
@ -38,9 +38,9 @@
<section id="zlib.requirements">
&reftitle.required;
<para>
This module uses the functions of <ulink url="&url.zlib;">zlib</ulink>
by Jean-loup Gailly and Mark Adler. You have to use a zlib
version &gt;= 1.0.9 with this module.
Este módulo usa as funções da <ulink url="&url.zlib;">zlib</ulink>
por Jean-loup Gailly e Mark Adler. Você terá que usar uma versão zlib
&gt;= à 1.0.9 com este módulo.
</para>
</section>
@ -56,42 +56,42 @@
<section id="zlib.examples">
&reftitle.examples;
<para>
This example opens a temporary file and writes a test string
to it, then it prints out the content of this file twice.
Este exemplo abre um arquivo temporário e gera uma string teste
dentro dele, então ela mostra o conteúdo deste arquivo duas vezes.
</para>
<example>
<title>Small Zlib Example</title>
<title>Pequeno Exemplo das funções Zlib</title>
<programlisting role="php">
<![CDATA[
<?php
$filename = tempnam ('/tmp', 'zlibtest').'.gz';
$filename = tempnam ('/tmp', 'zlibteste').'.gz';
print "<html>\n<head></head>\n<body>\n<pre>\n";
$s = "Only a test, test, test, test, test, test, test, test!\n";
$s = "Somente um teste, teste, teste, teste, teste, teste, teste, teste!\n";
// open file for writing with maximum compression
// abre o arquivo para gerar ele com a compressão máxima
$zp = gzopen($filename, "w9");
// write string to file
// escreve a string no arquivo
gzwrite($zp, $s);
// close file
// fecha o arquivo
gzclose($zp);
// open file for reading
// abre o arquivo para leitura
$zp = gzopen($filename, "r");
// read 3 char
// lê 3 caracteres
print gzread($zp, 3);
// output until end of the file and close it.
// mostra o conteúdo até o fim do arquivo e o fecha.
gzpassthru($zp);
print "\n";
// open file and print content (the 2nd time).
// abre o arquivo e imprime o conteúdo dele (pela segunda vez).
if (readgzfile($filename) != strlen($s)) {
echo "Error with zlib functions!";
echo "Erro com as funções zlib!";
}
unlink($filename);
print "</pre>\n</h1></body>\n</html>\n";