Skip to content

Commit

Permalink
small translation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardolara committed Dec 3, 2024
1 parent 01cace5 commit bf10e80
Show file tree
Hide file tree
Showing 23 changed files with 84 additions and 84 deletions.
2 changes: 1 addition & 1 deletion appendices/migration73/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<simpara><constant>CURL_SSLVERSION_TLSv1_3</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURL_VERSION_ALTSVC</constant> (as of PHP 7.3.6)</simpara>
<simpara><constant>CURL_VERSION_ALTSVC</constant> (a partir do PHP 7.3.6)</simpara>
</listitem>
<listitem>
<simpara><constant>CURL_VERSION_ASYNCHDNS</constant></simpara>
Expand Down
8 changes: 4 additions & 4 deletions appendices/migration80/incompatible.xml
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,9 @@ $array["key"];
<itemizedlist>
<listitem>
<para>
The deprecated functions <function>ldap_sort</function>,
<function>ldap_control_paged_result</function> and
<function>ldap_control_paged_result_response</function> have been removed.
As funções descontinuadas <function>ldap_sort</function>,
<function>ldap_control_paged_result</function> e
<function>ldap_control_paged_result_response</function> foram removidas.
</para>
</listitem>
<listitem>
Expand Down Expand Up @@ -1389,7 +1389,7 @@ $array["key"];
</listitem>
<listitem>
<para>
The <link linkend="filters.string.strip_tags">string.strip_tags</link> filter has been removed.
O filtro <link linkend="filters.string.strip_tags">string.strip_tags</link> foi removido.
</para>
</listitem>
<listitem>
Expand Down
8 changes: 4 additions & 4 deletions language/context/http.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: e50e79746736dbdfbabe9bd3566793b3ddf38f58 Maintainer: fabioluciano Status: ready --><!-- CREDITS: fabioluciano,lhsazevedo,leonardolara -->
<!-- EN-Revision: e50e79746736dbdfbabe9bd3566793b3ddf38f58 Maintainer: leonardolara Status: ready --><!-- CREDITS: fabioluciano,lhsazevedo,leonardolara -->

<refentry xml:id="context.http" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_context_option">
<refnamediv>
Expand Down Expand Up @@ -244,11 +244,11 @@ $opts = array('http' =>
$context = stream_context_create($opts);
$stream = fopen($url, 'r', false, $context);
// header information as well as meta data
// about the stream
// informação de cabeçalho e metadados
// sobre o fluxo
var_dump(stream_get_meta_data($stream));
// actual data at $url
// dados reais no $url
var_dump(stream_get_contents($stream));
fclose($stream);
?>
Expand Down
2 changes: 1 addition & 1 deletion reference/curl/constants_curl_setopt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4281,7 +4281,7 @@
Um nome de usuário e senha formatados como
<literal>[usuário]:[senha]</literal> a serem usados para a
conexão.
Available as cURL 7.1.0.
Disponível a partir do cURL 7.1.0.
</para>
</listitem>
</varlistentry>
Expand Down
4 changes: 2 additions & 2 deletions reference/image/functions/imagecreatefromstring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
<row>
<entry>8.0.0</entry>
<entry>
On success, this function returns a <classname>GDImage</classname> instance now;
previously, a <type>resource</type> was returned.
Em caso de sucesso, esta função retorna agora uma instância de <classname>GDImage</classname>;
anteriormente, retornava um <type>resource</type>.
</entry>
</row>
<row>
Expand Down
6 changes: 3 additions & 3 deletions reference/intl/grapheme/grapheme-substr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
<row>
<entry>8.0.0</entry>
<entry>
A função agora consistentemente function now consistently clamps out-of-bounds offsets to the string boundary.
Previously, &false; was returned instead of the empty string in some cases.
A função agora fixa consistentemente deslocamentos fora dos limites ao limite da string.
Anteriormente, &false; era retornado em vez da string vazia em alguns casos.
</entry>
</row>
</tbody>
Expand Down Expand Up @@ -123,7 +123,7 @@ a%CC%8Abco%CC%88
<member><function>grapheme_extract</function></member>
<member>
<link xlink:href="&uri.unicode.graphemes;">
Unicode Text Segmentation: Grapheme Cluster Boundaries
Segmentação de texto Unicode: limites do cluster de grafema (em inglês)
</link>
</member>
</simplelist>
Expand Down
2 changes: 1 addition & 1 deletion reference/math/book.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<para>
<simplelist>
<member>
<link linkend="language.operators.arithmetic">operadores aritméticos</link>
<link linkend="language.operators.arithmetic">Operadores aritméticos</link>
</member>
<member>
<link linkend="book.bc">Funções matemáticas com precisão arbitrária</link>
Expand Down
4 changes: 2 additions & 2 deletions reference/math/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
</term>
<listitem>
<simpara>
Approximation da constante de Euler γ
Aproximação da constante de Euler γ
(<literal>0.57721566490153286061</literal>).
</simpara>
</listitem>
Expand All @@ -221,7 +221,7 @@
</term>
<listitem>
<simpara>
Not A Number (um não-número)
Um não-número (Not A Number)
</simpara>
</listitem>
</varlistentry>
Expand Down
4 changes: 2 additions & 2 deletions reference/math/reference.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: felipe Status: ready -->
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: leonardolara Status: ready -->

<reference xml:id="ref.math" xmlns="http://docbook.org/ns/docbook">
<title>&Functions; Matemáticas</title>
<title>&Functions; de Math</title>

&reference.math.entities.functions;

Expand Down
4 changes: 2 additions & 2 deletions reference/mbstring/functions/mb-ereg-replace-callback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ $text.= "Last christmas was 12/24/2001\n";
function next_year($matches)
{
// como de costume: $matches[0] é a correspondência completa
// $matches[1] é a correspondência para o primeiro subpadrão
// cercado por '(...)' e assim por diante
// $matches[1] é a correspondência para a primeira sub-expressão
// envolvida por '(...)' e assim por diante
return $matches[1].($matches[2]+1);
}
echo mb_ereg_replace_callback(
Expand Down
2 changes: 1 addition & 1 deletion reference/mhash/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</term>
<listitem>
<simpara>
Available as of PHP 7.4.0.
Disponível a partir do PHP 7.4.0.
</simpara>
</listitem>
</varlistentry>
Expand Down
6 changes: 3 additions & 3 deletions reference/mysql/functions/mysql-drop-db.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
die('Não foi possível conectar: ' . mysql_error());
}
$sql = 'DROP DATABASE my_db';
if (mysql_query($sql, $link)) {
echo "Database my_db was successfully dropped\n";
echo "Banco de dados my_db foi excluído com sucesso\n";
} else {
echo 'Error dropping database: ' . mysql_error() . "\n";
echo 'Erro ao excluir o banco de dados: ' . mysql_error() . "\n";
}
?>
]]>
Expand Down
4 changes: 2 additions & 2 deletions reference/mysql/functions/mysql-list-dbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
<programlisting role="php">
<![CDATA[
<?php
// Usage without mysql_list_dbs()
// Uso sem mysql_list_dbs()
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$res = mysql_query("SHOW DATABASES");
while ($row = mysql_fetch_assoc($res)) {
echo $row['Database'] . "\n";
}
// Deprecated as of PHP 5.4.0
// Descontinuado a partir do PHP 5.4.0
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$db_list = mysql_list_dbs($link);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $result = $collection
->execute();
if (!$result->getWarningsCount()) {
echo "There was an error:\n";
echo "Ocorreu um erro:\n";
print_r($result->getWarnings());
exit;
}
Expand All @@ -74,19 +74,19 @@ var_dump($result->fetchOne());
<screen>
<![CDATA[
There was an error:
Ocorreu um erro:
Array
(
[0] => mysql_xdevapi\Warning Object
(
[message] => Something bad and so on
[message] => Algo de errado
[level] => 2
[code] => 1365
)
[1] => mysql_xdevapi\Warning Object
(
[message] => Something bad and so on
[message] => Algo de errado
[level] => 2
[code] => 1365
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $result = $collection
->execute();
if (!$result->getWarningsCount()) {
echo "There was an error:\n";
echo "Ocorreu um erro:\n";
print_r($result->getWarnings());
exit;
}
Expand Down
6 changes: 3 additions & 3 deletions reference/mysqlnd/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<listitem>
<para>
Fragmentação. Um exemplo disso é a extensão PECL/mysqlnd_mc (Multi
Conecão). Esta extensão tentará dividir uma instrução SELECT
Conexão). Esta extensão tentará dividir uma instrução SELECT
em n partes, usando SELECT ... LIMIT part_1, SELECT
LIMIT part_n. Ele envia as consultas para servidores MySQL distintos e
mescla o resultado no cliente.
Expand All @@ -128,7 +128,7 @@
</listitem>
</itemizedlist>
<para>
<emphasis role="bold">Driver Nativo MySQL Plugins Available</emphasis>
<emphasis role="bold">Plugins Disponíveis do Driver Nativo MySQL</emphasis>
</para>
<para>
Existem vários plug-ins do mysqlnd já disponíveis. Esses
Expand Down Expand Up @@ -200,7 +200,7 @@
</listitem>
<listitem>
<para>
Fácil de escalonar horizontalmente (escalonar horizontalmente, escalonar por cliente)
Fácil de escalonar horizontalmente (escalonar por cliente)
</para>
</listitem>
</orderedlist>
Expand Down
2 changes: 1 addition & 1 deletion reference/openssl/functions/openssl-x509-verify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ foreach($cont["options"]["ssl"]["peer_certificate_chain"] as $chaincert)
if ($r==1)
{
echo $certparsed['subject']['CN'];
echo " was digitally signed by ";
echo " foi assinado digitalmente por ";
echo $chainparsed['subject']['CN']."\n";
}
}
Expand Down
28 changes: 14 additions & 14 deletions reference/reflection/reflectionproperty/construct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,30 @@ $prop = new ReflectionProperty('Str', 'length');
// Imprime informações básicas
printf(
"===> The%s%s%s%s property '%s' (which was %s)\n" .
" having the modifiers %s\n",
$prop->isPublic() ? ' public' : '',
$prop->isPrivate() ? ' private' : '',
$prop->isProtected() ? ' protected' : '',
$prop->isStatic() ? ' static' : '',
"===> A propriedade%s%s%s%s '%s' (que foi %s)\n" .
" com os modificadores %s\n",
$prop->isPublic() ? ' pública' : '',
$prop->isPrivate() ? ' privada' : '',
$prop->isProtected() ? ' protegida' : '',
$prop->isStatic() ? ' estática' : '',
$prop->getName(),
$prop->isDefault() ? 'declared at compile-time' : 'created at run-time',
$prop->isDefault() ? 'declarada no momento da compilação' : 'criada durante a execução',
var_export(Reflection::getModifierNames($prop->getModifiers()), true)
);
// Cria uma instância de Str
$obj= new Str();
// Obtém o valor atual
printf("---> Value is: ");
printf("---> O valor é: ");
var_dump($prop->getValue($obj));
// Altera o valor
$prop->setValue($obj, 10);
printf("---> Setting value to 10, new value is: ");
printf("---> Definindo o valor para 10, o novo valor é: ");
var_dump($prop->getValue($obj));
// Mostra o objeto
// Exibe o objeto
var_dump($obj);
?>
Expand All @@ -98,12 +98,12 @@ var_dump($obj);
&example.outputs.similar;
<screen>
<![CDATA[
===> The public property 'length' (which was declared at compile-time)
having the modifiers array (
===> A propriedade pública 'length' (que foi declarada no momento da compilação)
com os modificadores array (
0 => 'public',
)
---> Value is: int(5)
---> Setting value to 10, new value is: int(10)
---> O valor é: int(5)
---> Definindo o valor para 10, o novo valor é: int(10)
object(Str)#2 (1) {
["length"]=>
int(10)
Expand Down
Loading

0 comments on commit bf10e80

Please sign in to comment.