Skip to content

Commit 129af63

Browse files
committed
update python-newest.c-api--conversion/id.po with latest contents from transifex
1 parent 89bf72a commit 129af63

File tree

1 file changed

+79
-39
lines changed
  • python-newest.c-api--conversion

1 file changed

+79
-39
lines changed
Lines changed: 79 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, Python Software Foundation
2+
# Copyright (C) 2001 Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -9,12 +9,12 @@
99
#, fuzzy
1010
msgid ""
1111
msgstr ""
12-
"Project-Id-Version: Python 3.9\n"
12+
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2021-02-20 05:29+0000\n"
15-
"PO-Revision-Date: 2017-02-16 17:34+0000\n"
14+
"POT-Creation-Date: 2025-05-09 14:19+0000\n"
15+
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1616
"Last-Translator: Faiq Zakki <221709674@stis.ac.id>, 2021\n"
17-
"Language-Team: Indonesian (https://www.transifex.com/python-doc/teams/5390/id/)\n"
17+
"Language-Team: Indonesian (https://app.transifex.com/python-doc/teams/5390/id/)\n"
1818
"MIME-Version: 1.0\n"
1919
"Content-Type: text/plain; charset=UTF-8\n"
2020
"Content-Transfer-Encoding: 8bit\n"
@@ -55,67 +55,107 @@ msgstr ""
5555
msgid ""
5656
"The wrappers ensure that ``str[size-1]`` is always ``'\\0'`` upon return. "
5757
"They never write more than *size* bytes (including the trailing ``'\\0'``) "
58-
"into str. Both functions require that ``str != NULL``, ``size > 0`` and "
59-
"``format != NULL``."
58+
"into str. Both functions require that ``str != NULL``, ``size > 0``, "
59+
"``format != NULL`` and ``size < INT_MAX``. Note that this means there is no "
60+
"equivalent to the C99 ``n = snprintf(NULL, 0, ...)`` which would determine "
61+
"the necessary buffer size."
6062
msgstr ""
6163

62-
#: ../../c-api/conversion.rst:33
63-
msgid ""
64-
"If the platform doesn't have :c:func:`vsnprintf` and the buffer size needed "
65-
"to avoid truncation exceeds *size* by more than 512 bytes, Python aborts "
66-
"with a :c:func:`Py_FatalError`."
67-
msgstr ""
68-
69-
#: ../../c-api/conversion.rst:37
64+
#: ../../c-api/conversion.rst:34
7065
msgid ""
7166
"The return value (*rv*) for these functions should be interpreted as "
7267
"follows:"
7368
msgstr ""
7469

75-
#: ../../c-api/conversion.rst:39
70+
#: ../../c-api/conversion.rst:36
7671
msgid ""
7772
"When ``0 <= rv < size``, the output conversion was successful and *rv* "
7873
"characters were written to *str* (excluding the trailing ``'\\0'`` byte at "
7974
"``str[rv]``)."
8075
msgstr ""
8176

82-
#: ../../c-api/conversion.rst:43
77+
#: ../../c-api/conversion.rst:40
8378
msgid ""
8479
"When ``rv >= size``, the output conversion was truncated and a buffer with "
8580
"``rv + 1`` bytes would have been needed to succeed. ``str[size-1]`` is "
8681
"``'\\0'`` in this case."
8782
msgstr ""
8883

89-
#: ../../c-api/conversion.rst:47
84+
#: ../../c-api/conversion.rst:44
9085
msgid ""
9186
"When ``rv < 0``, \"something bad happened.\" ``str[size-1]`` is ``'\\0'`` in"
9287
" this case too, but the rest of *str* is undefined. The exact cause of the "
9388
"error depends on the underlying platform."
9489
msgstr ""
9590

96-
#: ../../c-api/conversion.rst:51
91+
#: ../../c-api/conversion.rst:49
9792
msgid ""
9893
"The following functions provide locale-independent string to number "
9994
"conversions."
10095
msgstr ""
10196

102-
#: ../../c-api/conversion.rst:56
97+
#: ../../c-api/conversion.rst:53
98+
msgid ""
99+
"Convert the initial part of the string in ``str`` to an :c:expr:`unsigned "
100+
"long` value according to the given ``base``, which must be between ``2`` and"
101+
" ``36`` inclusive, or be the special value ``0``."
102+
msgstr ""
103+
104+
#: ../../c-api/conversion.rst:57
105+
msgid ""
106+
"Leading white space and case of characters are ignored. If ``base`` is zero"
107+
" it looks for a leading ``0b``, ``0o`` or ``0x`` to tell which base. If "
108+
"these are absent it defaults to ``10``. Base must be 0 or between 2 and 36 "
109+
"(inclusive). If ``ptr`` is non-``NULL`` it will contain a pointer to the "
110+
"end of the scan."
111+
msgstr ""
112+
113+
#: ../../c-api/conversion.rst:63
114+
msgid ""
115+
"If the converted value falls out of range of corresponding return type, "
116+
"range error occurs (:c:data:`errno` is set to :c:macro:`!ERANGE`) and "
117+
":c:macro:`!ULONG_MAX` is returned. If no conversion can be performed, ``0``"
118+
" is returned."
119+
msgstr ""
120+
121+
#: ../../c-api/conversion.rst:68
122+
msgid "See also the Unix man page :manpage:`strtoul(3)`."
123+
msgstr ""
124+
125+
#: ../../c-api/conversion.rst:75
126+
msgid ""
127+
"Convert the initial part of the string in ``str`` to an :c:expr:`long` value"
128+
" according to the given ``base``, which must be between ``2`` and ``36`` "
129+
"inclusive, or be the special value ``0``."
130+
msgstr ""
131+
132+
#: ../../c-api/conversion.rst:79
133+
msgid ""
134+
"Same as :c:func:`PyOS_strtoul`, but return a :c:expr:`long` value instead "
135+
"and :c:macro:`LONG_MAX` on overflows."
136+
msgstr ""
137+
138+
#: ../../c-api/conversion.rst:82
139+
msgid "See also the Unix man page :manpage:`strtol(3)`."
140+
msgstr ""
141+
142+
#: ../../c-api/conversion.rst:89
103143
msgid ""
104-
"Convert a string ``s`` to a :c:type:`double`, raising a Python exception on "
144+
"Convert a string ``s`` to a :c:expr:`double`, raising a Python exception on "
105145
"failure. The set of accepted strings corresponds to the set of strings "
106146
"accepted by Python's :func:`float` constructor, except that ``s`` must not "
107147
"have leading or trailing whitespace. The conversion is independent of the "
108148
"current locale."
109149
msgstr ""
110150

111-
#: ../../c-api/conversion.rst:62
151+
#: ../../c-api/conversion.rst:95
112152
msgid ""
113153
"If ``endptr`` is ``NULL``, convert the whole string. Raise "
114154
":exc:`ValueError` and return ``-1.0`` if the string is not a valid "
115155
"representation of a floating-point number."
116156
msgstr ""
117157

118-
#: ../../c-api/conversion.rst:66
158+
#: ../../c-api/conversion.rst:99
119159
msgid ""
120160
"If endptr is not ``NULL``, convert as much of the string as possible and set"
121161
" ``*endptr`` to point to the first unconverted character. If no initial "
@@ -124,84 +164,84 @@ msgid ""
124164
"ValueError, and return ``-1.0``."
125165
msgstr ""
126166

127-
#: ../../c-api/conversion.rst:73
167+
#: ../../c-api/conversion.rst:106
128168
msgid ""
129169
"If ``s`` represents a value that is too large to store in a float (for "
130170
"example, ``\"1e500\"`` is such a string on many platforms) then if "
131-
"``overflow_exception`` is ``NULL`` return ``Py_HUGE_VAL`` (with an "
171+
"``overflow_exception`` is ``NULL`` return ``Py_INFINITY`` (with an "
132172
"appropriate sign) and don't set any exception. Otherwise, "
133173
"``overflow_exception`` must point to a Python exception object; raise that "
134174
"exception and return ``-1.0``. In both cases, set ``*endptr`` to point to "
135175
"the first character after the converted value."
136176
msgstr ""
137177

138-
#: ../../c-api/conversion.rst:81
178+
#: ../../c-api/conversion.rst:114
139179
msgid ""
140180
"If any other error occurs during the conversion (for example an out-of-"
141181
"memory error), set the appropriate Python exception and return ``-1.0``."
142182
msgstr ""
143183

144-
#: ../../c-api/conversion.rst:90
184+
#: ../../c-api/conversion.rst:123
145185
msgid ""
146-
"Convert a :c:type:`double` *val* to a string using supplied *format_code*, "
186+
"Convert a :c:expr:`double` *val* to a string using supplied *format_code*, "
147187
"*precision*, and *flags*."
148188
msgstr ""
149189

150-
#: ../../c-api/conversion.rst:93
190+
#: ../../c-api/conversion.rst:126
151191
msgid ""
152192
"*format_code* must be one of ``'e'``, ``'E'``, ``'f'``, ``'F'``, ``'g'``, "
153193
"``'G'`` or ``'r'``. For ``'r'``, the supplied *precision* must be 0 and is "
154194
"ignored. The ``'r'`` format code specifies the standard :func:`repr` "
155195
"format."
156196
msgstr ""
157197

158-
#: ../../c-api/conversion.rst:98
198+
#: ../../c-api/conversion.rst:131
159199
msgid ""
160200
"*flags* can be zero or more of the values ``Py_DTSF_SIGN``, "
161201
"``Py_DTSF_ADD_DOT_0``, or ``Py_DTSF_ALT``, or-ed together:"
162202
msgstr ""
163203

164-
#: ../../c-api/conversion.rst:101
204+
#: ../../c-api/conversion.rst:134
165205
msgid ""
166206
"``Py_DTSF_SIGN`` means to always precede the returned string with a sign "
167207
"character, even if *val* is non-negative."
168208
msgstr ""
169209

170-
#: ../../c-api/conversion.rst:104
210+
#: ../../c-api/conversion.rst:137
171211
msgid ""
172212
"``Py_DTSF_ADD_DOT_0`` means to ensure that the returned string will not look"
173213
" like an integer."
174214
msgstr ""
175215

176-
#: ../../c-api/conversion.rst:107
216+
#: ../../c-api/conversion.rst:140
177217
msgid ""
178218
"``Py_DTSF_ALT`` means to apply \"alternate\" formatting rules. See the "
179219
"documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for details."
180220
msgstr ""
181221

182-
#: ../../c-api/conversion.rst:111
222+
#: ../../c-api/conversion.rst:144
183223
msgid ""
184224
"If *ptype* is non-``NULL``, then the value it points to will be set to one "
185225
"of ``Py_DTST_FINITE``, ``Py_DTST_INFINITE``, or ``Py_DTST_NAN``, signifying "
186226
"that *val* is a finite number, an infinite number, or not a number, "
187227
"respectively."
188228
msgstr ""
189229

190-
#: ../../c-api/conversion.rst:115
230+
#: ../../c-api/conversion.rst:148
191231
msgid ""
192232
"The return value is a pointer to *buffer* with the converted string or "
193233
"``NULL`` if the conversion failed. The caller is responsible for freeing the"
194234
" returned string by calling :c:func:`PyMem_Free`."
195235
msgstr ""
196236

197-
#: ../../c-api/conversion.rst:124
237+
#: ../../c-api/conversion.rst:157
198238
msgid ""
199239
"Case insensitive comparison of strings. The function works almost "
200-
"identically to :c:func:`strcmp` except that it ignores the case."
240+
"identically to :c:func:`!strcmp` except that it ignores the case."
201241
msgstr ""
202242

203-
#: ../../c-api/conversion.rst:130
243+
#: ../../c-api/conversion.rst:163
204244
msgid ""
205245
"Case insensitive comparison of strings. The function works almost "
206-
"identically to :c:func:`strncmp` except that it ignores the case."
246+
"identically to :c:func:`!strncmp` except that it ignores the case."
207247
msgstr ""

0 commit comments

Comments
 (0)