Skip to content

Commit 1e75e36

Browse files
authored
Add translation for str_increment() and str_decrement() (#27)
* Add Polish translation for str_increment() and str_decrement() * Fix CI: add missing xml:id for scale parameter in bcadd The xpointer reference function.bcadd..parameters.scale is used by bcdiv, bcpow, bcpowmod and bcsqrt but was missing from the Polish translation of bcadd.xml, causing XInclude resolution failure. * Fix CI: align bcadd.xml and fgetcsv.xml with doc-en structure - bcadd.xml: remove xmlns attribute, use simpara instead of para to match EN structure required for XInclude xpointer resolution - fgetcsv.xml: replace outdated note with warning element and add xml:id for XInclude from splfileobject/fgetcsv.xml
1 parent a583557 commit 1e75e36

2 files changed

Lines changed: 269 additions & 0 deletions

File tree

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 57c83578be2f0ebf3528f1296040fe738dac37de Maintainer: lacatoire Status: ready -->
3+
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.str-decrement">
4+
<refnamediv>
5+
<refname>str_decrement</refname>
6+
<refpurpose>Dekrementuje ciąg alfanumeryczny</refpurpose>
7+
</refnamediv>
8+
9+
<refsect1 role="description">
10+
&reftitle.description;
11+
<methodsynopsis>
12+
<type>string</type><methodname>str_decrement</methodname>
13+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
14+
</methodsynopsis>
15+
<para>
16+
Zwraca zdekrementowany alfanumeryczny ciąg <acronym>ASCII</acronym>
17+
<parameter>string</parameter>.
18+
</para>
19+
</refsect1>
20+
21+
<refsect1 role="parameters">
22+
&reftitle.parameters;
23+
<para>
24+
<variablelist>
25+
<varlistentry>
26+
<term><parameter>string</parameter></term>
27+
<listitem>
28+
<para>
29+
Ciąg wejściowy.
30+
</para>
31+
</listitem>
32+
</varlistentry>
33+
</variablelist>
34+
</para>
35+
</refsect1>
36+
37+
<refsect1 role="returnvalues">
38+
&reftitle.returnvalues;
39+
<para>
40+
Zwraca zdekrementowany alfanumeryczny ciąg <acronym>ASCII</acronym>.
41+
</para>
42+
</refsect1>
43+
44+
<refsect1 role="errors">
45+
&reftitle.errors;
46+
<para>
47+
Jeśli <parameter>string</parameter> jest pusty, zostanie zgłoszony
48+
wyjątek <classname>ValueError</classname>.
49+
</para>
50+
<para>
51+
Jeśli <parameter>string</parameter> nie jest alfanumerycznym ciągiem
52+
<acronym>ASCII</acronym>, zostanie zgłoszony wyjątek
53+
<classname>ValueError</classname>.
54+
</para>
55+
<para>
56+
Jeśli <parameter>string</parameter> nie może być zdekrementowany,
57+
zostanie zgłoszony wyjątek <classname>ValueError</classname>.
58+
Na przykład <literal>"A"</literal> lub <literal>"0"</literal>.
59+
</para>
60+
</refsect1>
61+
62+
<refsect1 role="examples">
63+
&reftitle.examples;
64+
<para>
65+
<example>
66+
<title>Podstawowy przykład użycia <function>str_decrement</function></title>
67+
<programlisting role="php">
68+
<![CDATA[
69+
<?php
70+
$str = 'ABC';
71+
var_dump(str_decrement($str));
72+
?>
73+
]]>
74+
</programlisting>
75+
&example.outputs;
76+
<screen>
77+
<![CDATA[
78+
string(3) "ABB"
79+
]]>
80+
</screen>
81+
</example>
82+
</para>
83+
<para>
84+
<example>
85+
<title>Przykład <function>str_decrement</function> z przeniesieniem</title>
86+
<programlisting role="php">
87+
<![CDATA[
88+
<?php
89+
$str = 'ZA';
90+
var_dump(str_decrement($str));
91+
92+
$str = 'AA';
93+
var_dump(str_decrement($str));
94+
?>
95+
]]>
96+
</programlisting>
97+
&example.outputs;
98+
<screen>
99+
<![CDATA[
100+
string(2) "YZ"
101+
string(1) "Z"
102+
]]>
103+
</screen>
104+
</example>
105+
</para>
106+
</refsect1>
107+
108+
<refsect1 role="seealso">
109+
&reftitle.seealso;
110+
<para>
111+
<simplelist>
112+
<member><function>str_increment</function></member>
113+
</simplelist>
114+
</para>
115+
</refsect1>
116+
117+
</refentry>
118+
<!-- Keep this comment at the end of the file
119+
Local variables:
120+
mode: sgml
121+
sgml-omittag:t
122+
sgml-shorttag:t
123+
sgml-minimize-attributes:nil
124+
sgml-always-quote-attributes:t
125+
sgml-indent-step:1
126+
sgml-indent-data:t
127+
indent-tabs-mode:nil
128+
sgml-parent-document:nil
129+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
130+
sgml-exposed-tags:nil
131+
sgml-local-catalogs:nil
132+
sgml-local-ecat-files:nil
133+
End:
134+
vim600: syn=xml fen fdm=syntax fdl=2 si
135+
vim: et tw=78 syn=sgml
136+
vi: ts=1 sw=1
137+
-->
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 57c83578be2f0ebf3528f1296040fe738dac37de Maintainer: lacatoire Status: ready -->
3+
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.str-increment">
4+
<refnamediv>
5+
<refname>str_increment</refname>
6+
<refpurpose>Inkrementuje ciąg alfanumeryczny</refpurpose>
7+
</refnamediv>
8+
9+
<refsect1 role="description">
10+
&reftitle.description;
11+
<methodsynopsis>
12+
<type>string</type><methodname>str_increment</methodname>
13+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
14+
</methodsynopsis>
15+
<para>
16+
Zwraca zinkrementowany alfanumeryczny ciąg <acronym>ASCII</acronym>
17+
<parameter>string</parameter>.
18+
</para>
19+
</refsect1>
20+
21+
<refsect1 role="parameters">
22+
&reftitle.parameters;
23+
<para>
24+
<variablelist>
25+
<varlistentry>
26+
<term><parameter>string</parameter></term>
27+
<listitem>
28+
<para>
29+
Ciąg wejściowy.
30+
</para>
31+
</listitem>
32+
</varlistentry>
33+
</variablelist>
34+
</para>
35+
</refsect1>
36+
37+
<refsect1 role="returnvalues">
38+
&reftitle.returnvalues;
39+
<para>
40+
Zwraca zinkrementowany alfanumeryczny ciąg <acronym>ASCII</acronym>.
41+
</para>
42+
</refsect1>
43+
44+
<refsect1 role="errors">
45+
&reftitle.errors;
46+
<para>
47+
Jeśli <parameter>string</parameter> jest pusty, zostanie zgłoszony
48+
wyjątek <classname>ValueError</classname>.
49+
</para>
50+
<para>
51+
Jeśli <parameter>string</parameter> nie jest alfanumerycznym ciągiem
52+
<acronym>ASCII</acronym>, zostanie zgłoszony wyjątek
53+
<classname>ValueError</classname>.
54+
</para>
55+
</refsect1>
56+
57+
<refsect1 role="examples">
58+
&reftitle.examples;
59+
<para>
60+
<example>
61+
<title>Podstawowy przykład użycia <function>str_increment</function></title>
62+
<programlisting role="php">
63+
<![CDATA[
64+
<?php
65+
$str = 'ABC';
66+
var_dump(str_increment($str));
67+
?>
68+
]]>
69+
</programlisting>
70+
&example.outputs;
71+
<screen>
72+
<![CDATA[
73+
string(3) "ABD"
74+
]]>
75+
</screen>
76+
</example>
77+
</para>
78+
<para>
79+
<example>
80+
<title>Przykład <function>str_increment</function> z przeniesieniem</title>
81+
<programlisting role="php">
82+
<![CDATA[
83+
<?php
84+
$str = 'DZ';
85+
var_dump(str_increment($str));
86+
87+
$str = 'ZZ';
88+
var_dump(str_increment($str));
89+
?>
90+
]]>
91+
</programlisting>
92+
&example.outputs;
93+
<screen>
94+
<![CDATA[
95+
string(2) "EA"
96+
string(3) "AAA"
97+
]]>
98+
</screen>
99+
</example>
100+
</para>
101+
</refsect1>
102+
103+
<refsect1 role="seealso">
104+
&reftitle.seealso;
105+
<para>
106+
<simplelist>
107+
<member><function>str_decrement</function></member>
108+
</simplelist>
109+
</para>
110+
</refsect1>
111+
112+
</refentry>
113+
<!-- Keep this comment at the end of the file
114+
Local variables:
115+
mode: sgml
116+
sgml-omittag:t
117+
sgml-shorttag:t
118+
sgml-minimize-attributes:nil
119+
sgml-always-quote-attributes:t
120+
sgml-indent-step:1
121+
sgml-indent-data:t
122+
indent-tabs-mode:nil
123+
sgml-parent-document:nil
124+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
125+
sgml-exposed-tags:nil
126+
sgml-local-catalogs:nil
127+
sgml-local-ecat-files:nil
128+
End:
129+
vim600: syn=xml fen fdm=syntax fdl=2 si
130+
vim: et tw=78 syn=sgml
131+
vi: ts=1 sw=1
132+
-->

0 commit comments

Comments
 (0)