Skip to content

Commit

Permalink
Update translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
André L F S Bacci committed Aug 26, 2023
1 parent ca80f1b commit 1045ad6
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 54 deletions.
10 changes: 5 additions & 5 deletions reference/zmq/zmqsocket/bind.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 2ef03df114cbcb863b26c8d967e808e8ca3e4606 Maintainer: none Status: ready -->
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: ae Status: ready -->

<refentry xml:id="zmqsocket.bind" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -12,11 +12,11 @@
<methodsynopsis>
<modifier>public</modifier> <type>ZMQSocket</type><methodname>ZMQSocket::bind</methodname>
<methodparam><type>string</type><parameter>dsn</parameter></methodparam>
<methodparam choice="opt"><type>boolean</type><parameter>force</parameter><initializer>false</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>force</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
Associa o socket a um destino. O destino é definido no formato <literal>transporte://endereco</literal>, onde
transporte é um dos seguintes itens: inproc, ipc, tcp, pgm or epgm.
Associa o socket a um destino. O destino é definido no formato <literal>transport://address</literal>, onde
transport é um dos seguintes itens: inproc, ipc, tcp, pgm or epgm.
</para>
</refsect1>

Expand All @@ -28,7 +28,7 @@
<term><parameter>dsn</parameter></term>
<listitem>
<para>
O destino que será associado, por exemplo <literal>transporte://endereco</literal>.
O destino que será associado, por exemplo <literal>transport://address</literal>.
</para>
</listitem>
</varlistentry>
Expand Down
30 changes: 18 additions & 12 deletions reference/zmq/zmqsocket/connect.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 2ef03df114cbcb863b26c8d967e808e8ca3e4606 Maintainer: none Status: ready -->
<!-- EN-Revision: d530899344cd881b6d09ff188e24252651c2f394 Maintainer: ae Status: ready -->

<refentry xml:id="zmqsocket.connect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -12,10 +12,10 @@
<methodsynopsis>
<modifier>public</modifier> <type>ZMQSocket</type><methodname>ZMQSocket::connect</methodname>
<methodparam><type>string</type><parameter>dsn</parameter></methodparam>
<methodparam choice="opt"><type>boolean</type><parameter>force</parameter><initializer>false</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>force</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
Conecta o socket ao destino remoto. O destino é definido no formato <literal>transporte://endereco</literal>, onde
Conecta o socket ao destino remoto. O destino é definido no formato <literal>transport://address</literal>, onde
transporte é um dos seguintes itens: inproc, ipc, tcp, pgm or epgm.
</para>
</refsect1>
Expand All @@ -28,7 +28,7 @@
<term><parameter>dsn</parameter></term>
<listitem>
<para>
O destino da conexão, por exemplo <literal>transporte://endereco</literal>.
O destino da conexão, por exemplo <literal>transport://address</literal>.
</para>
</listitem>
</varlistentry>
Expand All @@ -44,6 +44,20 @@
</para>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Retorna o objeto atual.
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
Lança um erro <classname>ZMQSocketException</classname>.
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down Expand Up @@ -84,14 +98,6 @@ echo "<p>O servidor disse: {$mensagem}</p>";
</para>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Retorna o objeto atual. Lança uma exceção ZMQSocketException caso haja erro.
</para>
</refsect1>


</refentry>

<!-- Keep this comment at the end of the file
Expand Down
61 changes: 27 additions & 34 deletions reference/zmq/zmqsocket/construct.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 2ef03df114cbcb863b26c8d967e808e8ca3e4606 Maintainer: none Status: ready -->
<!-- EN-Revision: 3c31131ae899b6bea6dc1d46475160afe0995773 Maintainer: ae Status: ready -->

<refentry xml:id="zmqsocket.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -10,11 +10,11 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<methodname>ZMQSocket::__construct</methodname>
<modifier>public</modifier> <methodname>ZMQSocket::__construct</methodname>
<methodparam><type>ZMQContext</type><parameter>context</parameter></methodparam>
<methodparam><type>int</type><parameter>type</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>persistent_id</parameter><initializer>null</initializer></methodparam>
<methodparam choice="opt"><type>callback</type><parameter>on_new_socket</parameter><initializer>null</initializer></methodparam>
<methodparam choice="opt"><type>string</type><parameter>persistent_id</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type>callable</type><parameter>on_new_socket</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
Constrói um objeto ZMQSocket. O parâmetro <parameter>persistent_id</parameter> pode ser usado para alocar um socket
Expand Down Expand Up @@ -60,21 +60,33 @@
Uma finção de retorno que é executada quando uma nova instância de socket é criada. Essa função não é invocada
se a conexão em uso for persistente e estiver sendo reusada.
</para>
<methodsynopsis>
<methodname><replaceable>callback</replaceable></methodname>
<methodparam><type>ZMQSocket</type><parameter>socket</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>persistent_id</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Um exemplo de <function>ZMQSocket</function></title>
<para>
Usando uma função de retorno para associar/conectar o socket
</para>
<programlisting role="php">
<refsect1 role="errors">
&reftitle.errors;
<para>
Lança um <classname>ZMQSocketException</classname> em erros.
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Exemplo de <function>ZMQSocket</function></title>
<para>
Utilizando um callback para conectar associar um socket
</para>
<programlisting role="php">
<![CDATA[
<?php
Expand All @@ -101,30 +113,11 @@ $mensagem = $socket->recv();
echo "Mensagem recebida: {$mensagem}\n";
?>
]]>
</programlisting>
</example>
</para>
</refsect1>

<refsect1 role="notes">
<para>
Assinatura da função de retorno
<note>
<para>
function novo_socket_cb(ZMQSocket $socket, string $persistent_id = null);
</para>
</note>
</para>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Lança uma exceção ZMQSocketException caso haja erro.
</programlisting>
</example>
</para>
</refsect1>


</refentry>

<!-- Keep this comment at the end of the file
Expand Down
2 changes: 1 addition & 1 deletion reference/zmq/zmqsocket/getpersistentid.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ab56145968b47219d62cf76870c9b5698ac8f956 Maintainer: none Status: ready -->
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: ae Status: ready -->

<refentry xml:id="zmqsocket.getpersistentid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down
4 changes: 2 additions & 2 deletions reference/zmq/zmqsocket/getsockettype.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 2ef03df114cbcb863b26c8d967e808e8ca3e4606 Maintainer: none Status: ready -->
<!-- EN-Revision: ad2e71299d249c84ab5a0420aeb548e66f699a13 Maintainer: ae Status: ready -->

<refentry xml:id="zmqsocket.getsockettype" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>integer</type><methodname>ZMQSocket::getSocketType</methodname>
<modifier>public</modifier> <type>int</type><methodname>ZMQSocket::getSocketType</methodname>
<void />
</methodsynopsis>
<para>
Expand Down

0 comments on commit 1045ad6

Please sign in to comment.