From 319d2d89b2998cfa3ebb0952ff105ead7573ed8d Mon Sep 17 00:00:00 2001 From: Ernani Joppert Pontes Martins Date: Thu, 10 Oct 2002 04:43:47 +0000 Subject: [PATCH] Updade Translation git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@99118 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/zlib/constants.xml | 6 ++-- reference/zlib/ini.xml | 68 ++++++++++++++++++------------------ reference/zlib/reference.xml | 66 +++++++++++++++++----------------- 3 files changed, 70 insertions(+), 70 deletions(-) diff --git a/reference/zlib/constants.xml b/reference/zlib/constants.xml index 8cd681a94e..a7afb17faf 100644 --- a/reference/zlib/constants.xml +++ b/reference/zlib/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants; @@ -7,7 +7,7 @@ FORCE_GZIP - (integer) + (inteiro) @@ -18,7 +18,7 @@ FORCE_DEFLATE - (integer) + (inteiro) diff --git a/reference/zlib/ini.xml b/reference/zlib/ini.xml index 439086107c..e2bef44aba 100644 --- a/reference/zlib/ini.xml +++ b/reference/zlib/ini.xml @@ -1,21 +1,21 @@ - +
&reftitle.runtime; &extension.runtime; - 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 configuration file &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 arquivo de configuração &php.ini;. - Zlib Configuration Options + Opções de Configuração da Zlib - Name - Default - Changeable + Nome + Padrão + Modificável @@ -37,43 +37,43 @@
- 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 ini_set.
- Here is a short explanation of the configuration directives. + Aqui está uma breve explicação das diretrizes de configuração. zlib.output_compression - boolean/integer + booleano/inteiro - 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. - You can use ini_set 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 ini_set 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. - 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). - output_handler must be - empty if this is set 'On' ! Instead you must use zlib.output_handler. + output_handler deve estar + vazio se a diretriz estiver configurada em 'On'! Em vez disto você deve usar zlib.output_handler. @@ -82,11 +82,11 @@ zlib.output_compression_level - integer + inteiro - Compression level used for transparent output compression. + Nível de compressão usado para as saídas. @@ -98,9 +98,9 @@ - You cannot specify additional output handlers if zlib.output_compression - is activated here. This setting does the same as - output_handler 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 + output_handler mas em uma ordem diferente. diff --git a/reference/zlib/reference.xml b/reference/zlib/reference.xml index b52f05ffcb..669363e3b3 100644 --- a/reference/zlib/reference.xml +++ b/reference/zlib/reference.xml @@ -1,36 +1,36 @@ - + - Zlib Compression Functions + Funções de Compressão Zlib Zlib
&reftitle.intro; - This module enables you to transparently read and write - gzip (.gz) compressed files, through versions of most of - the filesystem 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 filesystem + nas quais funcionam com arquivos gzip comprimidos (e arquivos não comprimidos + também, mas não com sockets). - 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 fopen. - 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 ':'. - This feature requires a C runtime library that provides the - fopencookie() 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 + fopencookie(). Em meu conhecimento atual + a GNU libc é a única bliblioteca que provê + esta facilidade.
@@ -38,9 +38,9 @@
&reftitle.required; - This module uses the functions of zlib - by Jean-loup Gailly and Mark Adler. You have to use a zlib - version >= 1.0.9 with this module. + Este módulo usa as funções da zlib + por Jean-loup Gailly e Mark Adler. Você terá que usar uma versão zlib + >= à 1.0.9 com este módulo.
@@ -56,42 +56,42 @@
&reftitle.examples; - 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. - Small Zlib Example + Pequeno Exemplo das funções Zlib \n\n\n
\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 "
\n\n\n";