diff --git a/reference/zlib/constants.xml b/reference/zlib/constants.xml index a7afb17faf..719637b021 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 - (inteiro) + (integer) @@ -18,7 +18,7 @@ FORCE_DEFLATE - (inteiro) + (integer) diff --git a/reference/zlib/ini.xml b/reference/zlib/ini.xml index e2bef44aba..3342b374fb 100644 --- a/reference/zlib/ini.xml +++ b/reference/zlib/ini.xml @@ -1,21 +1,21 @@ - +
&reftitle.runtime; &extension.runtime; - 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;. + 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;. - Opções de Configuração da Zlib + Zlib Configuration Options - Nome - Padrão - Modificável + Name + Default + Changeable @@ -37,43 +37,43 @@
- Para maiores detalhes e definições das constantes PHP_INI_* veja a função + For further details and definition of the PHP_INI_* constants see ini_set.
- Aqui está uma breve explicação das diretrizes de configuração. + Here is a short explanation of the configuration directives. zlib.output_compression - booleano/inteiro + boolean/integer - 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. + 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. - 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. + 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. - 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). + This option also accepts integer values instead of boolean + "On"/"Off", using this you can set the output buffer size + (default is 4KB). - output_handler deve estar - vazio se a diretriz estiver configurada em 'On'! Em vez disto você deve usar zlib.output_handler. + output_handler must be + empty if this is set 'On' ! Instead you must use zlib.output_handler. @@ -82,11 +82,11 @@ zlib.output_compression_level - inteiro + integer - Nível de compressão usado para as saídas. + Compression level used for transparent output compression. @@ -98,9 +98,9 @@ - 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. + 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. diff --git a/reference/zlib/reference.xml b/reference/zlib/reference.xml index 669363e3b3..db8a95d8f3 100644 --- a/reference/zlib/reference.xml +++ b/reference/zlib/reference.xml @@ -1,36 +1,36 @@ - + - Funções de Compressão Zlib + Zlib Compression Functions Zlib
&reftitle.intro; - 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). + 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). - 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 + 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 fopen. - Na versão 4.3.0, este prefixo especial foi mudado para 'zlib://' - para previnir ambiguidades com nome de arquivos contendo ':'. + In version 4.3.0, this special prefix has been changed to 'zlib://' + to prevent ambiguities with filenames containing ':'. - 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. + 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.
@@ -38,9 +38,9 @@
&reftitle.required; - 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. + 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.
@@ -56,42 +56,42 @@
&reftitle.examples; - 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. + This example opens a temporary file and writes a test string + to it, then it prints out the content of this file twice. - Pequeno Exemplo das funções Zlib + Small Zlib Example \n\n\n
\n";
-$s = "Somente um teste, teste, teste, teste, teste, teste, teste, teste!\n";
+$s = "Only a test, test, test, test, test, test, test, test!\n";
 
-// abre o arquivo para gerar ele com a compressão máxima
+// open file for writing with maximum compression
 $zp = gzopen($filename, "w9");
 
-// escreve a string no arquivo
+// write string to file
 gzwrite($zp, $s);
 
-// fecha o arquivo
+// close file
 gzclose($zp);
 
-// abre o arquivo para leitura
+// open file for reading
 $zp = gzopen($filename, "r");
 
-// lê 3 caracteres
+// read 3 char
 print gzread($zp, 3);
 
-// mostra o conteúdo até o fim do arquivo e o fecha.
+// output until end of the file and close it.
 gzpassthru($zp);
 
 print "\n";
 
-// abre o arquivo e imprime o conteúdo dele (pela segunda vez).
+// open file and print content (the 2nd time).
 if (readgzfile($filename) != strlen($s)) {
-        echo "Erro com as funções zlib!";
+        echo "Error with zlib functions!";
 }
 unlink($filename);
 print "
\n\n\n";