Skip to content

Commit a6947de

Browse files
committed
initial translation in geoip/functions
1 parent 6b8794b commit a6947de

19 files changed

+2267
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3+
<refentry xml:id="function.geoip-asnum-by-name" xmlns="http://docbook.org/ns/docbook">
4+
<refnamediv>
5+
<refname>geoip_asnum_by_name</refname>
6+
<refpurpose>Obtém os Números do Sistema Autônomo (ASN)</refpurpose>
7+
</refnamediv>
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis>
11+
<type>string</type><methodname>geoip_asnum_by_name</methodname>
12+
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
13+
</methodsynopsis>
14+
15+
<para>
16+
A função <function>geoip_asnum_by_name</function> retornará os Números de
17+
Sistema Autônomo (ASN) associados a um endereço IP.
18+
</para>
19+
20+
</refsect1>
21+
<refsect1 role="parameters">
22+
&reftitle.parameters;
23+
<para>
24+
<variablelist>
25+
<varlistentry>
26+
<term><parameter>hostname</parameter></term>
27+
<listitem>
28+
<para>
29+
O nome do host ou endereço IP.
30+
</para>
31+
</listitem>
32+
</varlistentry>
33+
</variablelist>
34+
</para>
35+
</refsect1>
36+
<refsect1 role="returnvalues">
37+
&reftitle.returnvalues;
38+
<para>
39+
Retorna o ASN em caso de sucesso, ou &false; se o endereço
40+
não puder ser encontrado no banco de dados.
41+
</para>
42+
</refsect1>
43+
44+
<refsect1 role="examples">
45+
&reftitle.examples;
46+
<para>
47+
<example>
48+
<title>Um exemplo de <function>geoip_asnum_by_name</function></title>
49+
<para>
50+
Isso gerará o ASN do host www.example.com.
51+
</para>
52+
<programlisting role="php">
53+
<![CDATA[
54+
<?php
55+
$asn = geoip_asnum_by_name('www.example.com');
56+
57+
if ($asn) {
58+
echo 'O ASN é: ' . $asn;
59+
}
60+
?>
61+
]]>
62+
</programlisting>
63+
&example.outputs;
64+
<screen>
65+
<![CDATA[
66+
O ASN é: AS15133 EdgeCast Networks, Inc
67+
]]>
68+
</screen>
69+
</example>
70+
</para>
71+
</refsect1>
72+
73+
</refentry>
74+
75+
<!-- Keep this comment at the end of the file
76+
Local variables:
77+
mode: sgml
78+
sgml-omittag:t
79+
sgml-shorttag:t
80+
sgml-minimize-attributes:nil
81+
sgml-always-quote-attributes:t
82+
sgml-indent-step:1
83+
sgml-indent-data:t
84+
indent-tabs-mode:nil
85+
sgml-parent-document:nil
86+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
87+
sgml-exposed-tags:nil
88+
sgml-local-catalogs:nil
89+
sgml-local-ecat-files:nil
90+
End:
91+
vim600: syn=xml fen fdm=syntax fdl=2 si
92+
vim: et tw=78 syn=sgml
93+
vi: ts=1 sw=1
94+
-->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3+
<refentry xml:id="function.geoip-continent-code-by-name" xmlns="http://docbook.org/ns/docbook">
4+
<refnamediv>
5+
<refname>geoip_continent_code_by_name</refname>
6+
<refpurpose>Obtém o código de duas letras do continente</refpurpose>
7+
</refnamediv>
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis>
11+
<type>string</type><methodname>geoip_continent_code_by_name</methodname>
12+
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
13+
</methodsynopsis>
14+
15+
<para>
16+
A função <function>geoip_continent_code_by_name</function> retornará
17+
o código de continente de duas letras correspondente a um nome de host ou endereço IP.
18+
</para>
19+
20+
</refsect1>
21+
<refsect1 role="parameters">
22+
&reftitle.parameters;
23+
<para>
24+
<variablelist>
25+
<varlistentry>
26+
<term><parameter>hostname</parameter></term>
27+
<listitem>
28+
<para>
29+
O nome do host ou endereço IP cuja localização deve ser consultada.
30+
</para>
31+
</listitem>
32+
</varlistentry>
33+
</variablelist>
34+
</para>
35+
</refsect1>
36+
<refsect1 role="returnvalues">
37+
&reftitle.returnvalues;
38+
<para>
39+
Retorna o código de continente de duas letras em caso de sucesso, ou &false; se o
40+
endereço não puder ser encontrado no banco de dados.
41+
</para>
42+
<table>
43+
<title>Continent codes</title>
44+
<tgroup cols="2">
45+
<thead>
46+
<row>
47+
<entry>Código</entry>
48+
<entry>Nome do continente</entry>
49+
</row>
50+
</thead>
51+
<tbody>
52+
<row>
53+
<entry><literal>AF</literal></entry>
54+
<entry>África</entry>
55+
</row>
56+
<row>
57+
<entry><literal>AN</literal></entry>
58+
<entry>Antártida</entry>
59+
</row>
60+
<row>
61+
<entry><literal>AS</literal></entry>
62+
<entry>Ásia</entry>
63+
</row>
64+
<row>
65+
<entry><literal>EU</literal></entry>
66+
<entry>Europa</entry>
67+
</row>
68+
<row>
69+
<entry><literal>NA</literal></entry>
70+
<entry>América do Norte</entry>
71+
</row>
72+
<row>
73+
<entry><literal>OC</literal></entry>
74+
<entry>Oceania</entry>
75+
</row>
76+
<row>
77+
<entry><literal>SA</literal></entry>
78+
<entry>América do Sul</entry>
79+
</row>
80+
</tbody>
81+
</tgroup>
82+
</table>
83+
</refsect1>
84+
85+
<refsect1 role="examples">
86+
&reftitle.examples;
87+
<para>
88+
<example>
89+
<title>Um exemplo de <function>geoip_continent_code_by_name</function></title>
90+
<para>
91+
Isso exibirá onde o host example.com está localizado.
92+
</para>
93+
<programlisting role="php">
94+
<![CDATA[
95+
<?php
96+
$continent = geoip_continent_code_by_name('www.example.com');
97+
if ($continent) {
98+
echo 'Este host está localizado em: ' . $continent;
99+
}
100+
?>
101+
]]>
102+
</programlisting>
103+
&example.outputs;
104+
<screen>
105+
<![CDATA[
106+
Este host está localizado em: NA
107+
]]>
108+
</screen>
109+
</example>
110+
</para>
111+
</refsect1>
112+
113+
<refsect1 role="seealso">
114+
&reftitle.seealso;
115+
<para>
116+
<simplelist>
117+
<member><function>geoip_country_code_by_name</function></member>
118+
</simplelist>
119+
</para>
120+
</refsect1>
121+
122+
</refentry>
123+
124+
<!-- Keep this comment at the end of the file
125+
Local variables:
126+
mode: sgml
127+
sgml-omittag:t
128+
sgml-shorttag:t
129+
sgml-minimize-attributes:nil
130+
sgml-always-quote-attributes:t
131+
sgml-indent-step:1
132+
sgml-indent-data:t
133+
indent-tabs-mode:nil
134+
sgml-parent-document:nil
135+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
136+
sgml-exposed-tags:nil
137+
sgml-local-catalogs:nil
138+
sgml-local-ecat-files:nil
139+
End:
140+
vim600: syn=xml fen fdm=syntax fdl=2 si
141+
vim: et tw=78 syn=sgml
142+
vi: ts=1 sw=1
143+
-->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3+
<refentry xml:id="function.geoip-country-code-by-name" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4+
<refnamediv>
5+
<refname>geoip_country_code_by_name</refname>
6+
<refpurpose>Obtém o código de país de duas letras</refpurpose>
7+
</refnamediv>
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis>
11+
<type>string</type><methodname>geoip_country_code_by_name</methodname>
12+
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
13+
</methodsynopsis>
14+
15+
<para>
16+
A função <function>geoip_country_code_by_name</function> retornará
17+
o código de país de duas letras correspondente a um nome de host ou endereço IP.
18+
</para>
19+
20+
</refsect1>
21+
<refsect1 role="parameters">
22+
&reftitle.parameters;
23+
<para>
24+
<variablelist>
25+
<varlistentry>
26+
<term><parameter>hostname</parameter></term>
27+
<listitem>
28+
<para>
29+
O nome do host ou endereço IP cuja localização deve ser consultada.
30+
</para>
31+
</listitem>
32+
</varlistentry>
33+
</variablelist>
34+
</para>
35+
</refsect1>
36+
<refsect1 role="returnvalues">
37+
&reftitle.returnvalues;
38+
<para>
39+
Retorna o código ISO de duas letras do país em caso de sucesso, ou &false;
40+
se o endereço não puder ser encontrado no banco de dados.
41+
</para>
42+
</refsect1>
43+
44+
<refsect1 role="examples">
45+
&reftitle.examples;
46+
<para>
47+
<example>
48+
<title>Um exemplo de <function>geoip_country_code_by_name</function></title>
49+
<para>
50+
Isso exibirá onde o host example.com está localizado.
51+
</para>
52+
<programlisting role="php">
53+
<![CDATA[
54+
<?php
55+
$country = geoip_country_code_by_name('www.example.com');
56+
if ($country) {
57+
echo 'Este host está localizado em: ' . $country;
58+
}
59+
?>
60+
]]>
61+
</programlisting>
62+
&example.outputs;
63+
<screen>
64+
<![CDATA[
65+
Este host está localizado em: US
66+
]]>
67+
</screen>
68+
</example>
69+
</para>
70+
</refsect1>
71+
72+
<refsect1 role="notes">
73+
&reftitle.notes;
74+
<caution>
75+
<para>
76+
Consulte
77+
<link xlink:href="&url.maxmind.iso3166;">&url.maxmind.iso3166;</link> para
78+
uma lista completa de possíveis valores de retorno, incluindo códigos especiais.
79+
</para>
80+
</caution>
81+
</refsect1>
82+
83+
<refsect1 role="seealso">
84+
&reftitle.seealso;
85+
<para>
86+
<simplelist>
87+
<member><function>geoip_country_code3_by_name</function></member>
88+
<member><function>geoip_country_name_by_name</function></member>
89+
</simplelist>
90+
</para>
91+
</refsect1>
92+
93+
</refentry>
94+
95+
<!-- Keep this comment at the end of the file
96+
Local variables:
97+
mode: sgml
98+
sgml-omittag:t
99+
sgml-shorttag:t
100+
sgml-minimize-attributes:nil
101+
sgml-always-quote-attributes:t
102+
sgml-indent-step:1
103+
sgml-indent-data:t
104+
indent-tabs-mode:nil
105+
sgml-parent-document:nil
106+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
107+
sgml-exposed-tags:nil
108+
sgml-local-catalogs:nil
109+
sgml-local-ecat-files:nil
110+
End:
111+
vim600: syn=xml fen fdm=syntax fdl=2 si
112+
vim: et tw=78 syn=sgml
113+
vi: ts=1 sw=1
114+
-->

0 commit comments

Comments
 (0)