Skip to content

Commit 57ad988

Browse files
Update reviewed translations from Transifex
1 parent dd5b0d5 commit 57ad988

14 files changed

Lines changed: 234 additions & 138 deletions

File tree

‎builtins/functions.po‎

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-13 17:08+0000\n"
14+
"POT-Creation-Date: 2026-09-15 17:49+0000\n"
1515
"PO-Revision-Date: 2026-09-13 17:09+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -22,14 +22,17 @@ msgstr ""
2222
"Language: pa\n"
2323
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2424

25-
msgid "Built-in Functions"
25+
msgid "Built-in functions"
2626
msgstr ""
2727

2828
msgid ""
2929
"The Python interpreter has a number of functions and types built into it "
3030
"that are always available. They are listed here in alphabetical order."
3131
msgstr ""
3232

33+
msgid "Built-in Functions"
34+
msgstr ""
35+
3336
msgid "**A**"
3437
msgstr ""
3538

@@ -1597,10 +1600,10 @@ msgid ""
15971600
"already exists), ``'x'`` for exclusive creation, and ``'a'`` for appending "
15981601
"(which on *some* Unix systems, means that *all* writes append to the end of "
15991602
"the file regardless of the current seek position). In text mode, if "
1600-
"*encoding* is not specified the encoding used is platform-dependent: :func:"
1601-
"`locale.getencoding` is called to get the current locale encoding. (For "
1602-
"reading and writing raw bytes use binary mode and leave *encoding* "
1603-
"unspecified.) The available modes are:"
1603+
"*encoding* is not specified, UTF-8 is used by default; if :ref:`Python UTF-8 "
1604+
"Mode <utf8-mode>` is disabled, :func:`locale.getencoding` is called to get "
1605+
"the current locale encoding. (For reading and writing raw bytes use binary "
1606+
"mode and leave *encoding* unspecified.) The available modes are:"
16041607
msgstr ""
16051608

16061609
msgid "Character"
@@ -1663,8 +1666,8 @@ msgid ""
16631666
"argument) return contents as :class:`bytes` objects without any decoding. "
16641667
"In text mode (the default, or when ``'t'`` is included in the *mode* "
16651668
"argument), the contents of the file are returned as :class:`str`, the bytes "
1666-
"having been first decoded using a platform-dependent encoding or using the "
1667-
"specified *encoding* if given."
1669+
"having been first decoded using the default encoding or using the specified "
1670+
"*encoding* if given."
16681671
msgstr ""
16691672

16701673
msgid ""
@@ -1700,10 +1703,12 @@ msgstr ""
17001703

17011704
msgid ""
17021705
"*encoding* is the name of the encoding used to decode or encode the file. "
1703-
"This should only be used in text mode. The default encoding is platform "
1704-
"dependent (whatever :func:`locale.getencoding` returns), but any :term:`text "
1705-
"encoding` supported by Python can be used. See the :mod:`codecs` module for "
1706-
"the list of supported encodings."
1706+
"This should only be used in text mode. The default encoding is UTF-8; if :"
1707+
"ref:`Python UTF-8 Mode <utf8-mode>` is disabled, the default is platform-"
1708+
"dependent (whatever :func:`locale.getencoding` returns). Any :term:`text "
1709+
"encoding` supported by Python can be used, and ``encoding=\"locale\"`` "
1710+
"specifies the current locale encoding explicitly. See the :mod:`codecs` "
1711+
"module for the list of supported encodings."
17071712
msgstr ""
17081713

17091714
msgid ""
@@ -1840,6 +1845,11 @@ msgstr ""
18401845
msgid "The ``'U'`` mode has been removed."
18411846
msgstr ""
18421847

1848+
msgid ""
1849+
"UTF-8 is now the default encoding, instead of the platform-dependent locale "
1850+
"encoding (:pep:`686`)."
1851+
msgstr ""
1852+
18431853
msgid "Return the ordinal value of a character."
18441854
msgstr ""
18451855

‎c-api/bytearray.po‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-05 16:26+0000\n"
14+
"POT-Creation-Date: 2026-09-15 17:49+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -29,6 +29,13 @@ msgid ""
2929
"This subtype of :c:type:`PyObject` represents a Python bytearray object."
3030
msgstr ""
3131

32+
msgid ""
33+
"The internal buffer of :c:type:`PyByteArrayObject` always includes an extra "
34+
"trailing null byte for compatibility with null terminated C strings. This "
35+
"extra byte is not counted in :c:func:`PyByteArray_Size` nor in the *len* "
36+
"arguments of the functions below."
37+
msgstr ""
38+
3239
msgid ""
3340
"This instance of :c:type:`PyTypeObject` represents the Python bytearray "
3441
"type; it is the same object as :class:`bytearray` in the Python layer."

‎c-api/bytes.po‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-05 16:26+0000\n"
14+
"POT-Creation-Date: 2026-09-15 17:49+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -30,6 +30,13 @@ msgid ""
3030
"called with a non-bytes parameter."
3131
msgstr ""
3232

33+
msgid ""
34+
"The internal buffer of :c:type:`PyBytesObject` always includes an extra "
35+
"trailing null byte for compatibility with null terminated C strings. This "
36+
"extra byte is not counted in :c:func:`PyBytes_Size` nor in the various "
37+
"*length* and *size* arguments of the functions below."
38+
msgstr ""
39+
3340
msgid "This subtype of :c:type:`PyObject` represents a Python bytes object."
3441
msgstr ""
3542

‎library/codecs.po‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-09 17:24+0000\n"
14+
"POT-Creation-Date: 2026-09-15 17:49+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -1917,6 +1917,11 @@ msgid ""
19171917
"``errors='strict'`` is supported."
19181918
msgstr ""
19191919

1920+
msgid ""
1921+
"This codec builds on ``punycode``, whose algorithms scale poorly, so limit "
1922+
"the length of untrusted input."
1923+
msgstr ""
1924+
19201925
msgid "mbcs"
19211926
msgstr ""
19221927

@@ -2209,6 +2214,11 @@ msgid ""
22092214
"encoding and :mod:`stringprep`."
22102215
msgstr ""
22112216

2217+
msgid ""
2218+
"This module builds on ``punycode``, whose algorithms scale poorly, so limit "
2219+
"the length of untrusted input."
2220+
msgstr ""
2221+
22122222
msgid ""
22132223
"If you need the IDNA 2008 standard from :rfc:`5891` and :rfc:`5895`, use the "
22142224
"third-party :pypi:`idna` module."

‎library/csv.po‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-08-27 23:26+0000\n"
14+
"POT-Creation-Date: 2026-09-15 17:49+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -22,7 +22,7 @@ msgstr ""
2222
"Language: pa\n"
2323
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2424

25-
msgid ":mod:`!csv` --- CSV File Reading and Writing"
25+
msgid ":mod:`!csv` --- CSV file reading and writing"
2626
msgstr ""
2727

2828
msgid "**Source code:** :source:`Lib/csv.py`"
@@ -62,7 +62,7 @@ msgstr ""
6262
msgid "The Python Enhancement Proposal which proposed this addition to Python."
6363
msgstr ""
6464

65-
msgid "Module Contents"
65+
msgid "Module contents"
6666
msgstr ""
6767

6868
msgid "The :mod:`!csv` module defines the following functions:"
@@ -449,7 +449,7 @@ msgstr ""
449449
msgid "Raised by any of the functions when an error is detected."
450450
msgstr ""
451451

452-
msgid "Dialects and Formatting Parameters"
452+
msgid "Dialects and formatting parameters"
453453
msgstr ""
454454

455455
msgid ""
@@ -552,7 +552,7 @@ msgid ""
552552
"``False``."
553553
msgstr ""
554554

555-
msgid "Reader Objects"
555+
msgid "Reader objects"
556556
msgstr ""
557557

558558
msgid ""
@@ -586,7 +586,7 @@ msgid ""
586586
"initialized upon first access or when the first record is read from the file."
587587
msgstr ""
588588

589-
msgid "Writer Objects"
589+
msgid "Writer objects"
590590
msgstr ""
591591

592592
msgid ""
@@ -672,22 +672,21 @@ msgstr ""
672672

673673
msgid ""
674674
"Since :func:`open` is used to open a CSV file for reading, the file will by "
675-
"default be decoded into unicode using the system default encoding (see :func:"
676-
"`locale.getencoding`). To decode a file using a different encoding, use the "
677-
"``encoding`` argument of open::"
675+
"default be decoded into Unicode using UTF-8. To decode a file using a "
676+
"different encoding, use the ``encoding`` argument of open::"
678677
msgstr ""
679678

680679
msgid ""
681680
"import csv\n"
682-
"with open('some.csv', newline='', encoding='utf-8') as f:\n"
681+
"with open('some.csv', newline='', encoding='latin-1') as f:\n"
683682
" reader = csv.reader(f)\n"
684683
" for row in reader:\n"
685684
" print(row)"
686685
msgstr ""
687686

688687
msgid ""
689-
"The same applies to writing in something other than the system default "
690-
"encoding: specify the encoding argument when opening the output file."
688+
"The same applies to writing in something other than the default encoding: "
689+
"specify the encoding argument when opening the output file."
691690
msgstr ""
692691

693692
msgid "Registering a new dialect::"

‎library/io.po‎

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-09 17:24+0000\n"
14+
"POT-Creation-Date: 2026-09-15 17:49+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -158,46 +158,26 @@ msgid ""
158158
"implement retry behavior."
159159
msgstr ""
160160

161-
msgid "Text Encoding"
161+
msgid "Text encoding"
162162
msgstr ""
163163

164164
msgid ""
165-
"The default encoding of :class:`TextIOWrapper` and :func:`open` is locale-"
166-
"specific (:func:`locale.getencoding`)."
167-
msgstr ""
168-
169-
msgid ""
170-
"However, many developers forget to specify the encoding when opening text "
171-
"files encoded in UTF-8 (e.g. JSON, TOML, Markdown, etc...) since most Unix "
172-
"platforms use UTF-8 locale by default. This causes bugs because the locale "
173-
"encoding is not UTF-8 for most Windows users. For example::"
174-
msgstr ""
175-
176-
msgid ""
177-
"# May not work on Windows when non-ASCII characters in the file.\n"
178-
"with open(\"README.md\") as f:\n"
179-
" long_description = f.read()"
180-
msgstr ""
181-
182-
msgid ""
183-
"Accordingly, it is highly recommended that you specify the encoding "
184-
"explicitly when opening text files. If you want to use UTF-8, pass "
185-
"``encoding=\"utf-8\"``. To use the current locale encoding, "
186-
"``encoding=\"locale\"`` is supported since Python 3.10."
165+
"The default encoding of :class:`TextIOWrapper` and :func:`open` is UTF-8. "
166+
"If :ref:`Python UTF-8 Mode <utf8-mode>` is disabled, the default encoding is "
167+
"locale-specific (:func:`locale.getencoding`)."
187168
msgstr ""
188169

189170
msgid ":ref:`utf8-mode`"
190171
msgstr ""
191172

192173
msgid ""
193-
"Python UTF-8 Mode can be used to change the default encoding to UTF-8 from "
194-
"locale-specific encoding."
174+
"Python UTF-8 Mode ignores the locale encoding and forces the use of UTF-8."
195175
msgstr ""
196176

197177
msgid ":pep:`686`"
198178
msgstr ""
199179

200-
msgid "Python 3.15 will make :ref:`utf8-mode` default."
180+
msgid "Python 3.15 made :ref:`utf8-mode` the default."
201181
msgstr ""
202182

203183
msgid "Opt-in EncodingWarning"
@@ -207,10 +187,10 @@ msgid "See :pep:`597` for more details."
207187
msgstr ""
208188

209189
msgid ""
210-
"To find where the default locale encoding is used, you can enable the :"
211-
"option:`-X warn_default_encoding <-X>` command line option or set the :"
212-
"envvar:`PYTHONWARNDEFAULTENCODING` environment variable, which will emit an :"
213-
"exc:`EncodingWarning` when the default encoding is used."
190+
"To find where the default encoding is used, you can enable the :option:`-X "
191+
"warn_default_encoding <-X>` command line option or set the :envvar:"
192+
"`PYTHONWARNDEFAULTENCODING` environment variable, which will emit an :exc:"
193+
"`EncodingWarning` when the default encoding is used."
214194
msgstr ""
215195

216196
msgid ""
@@ -221,7 +201,7 @@ msgid ""
221201
"consider using UTF-8 by default (i.e. ``encoding=\"utf-8\"``) for new APIs."
222202
msgstr ""
223203

224-
msgid "High-level Module Interface"
204+
msgid "High-level module interface"
225205
msgstr ""
226206

227207
msgid ""
@@ -420,7 +400,7 @@ msgid ""
420400
"Inherited :class:`IOBase` methods, ``encoding``, ``errors``, and ``newlines``"
421401
msgstr ""
422402

423-
msgid "I/O Base Classes"
403+
msgid "I/O base classes"
424404
msgstr ""
425405

426406
msgid "The abstract base class for all I/O classes."
@@ -805,7 +785,7 @@ msgid ""
805785
"implementation should only access *b* during the method call."
806786
msgstr ""
807787

808-
msgid "Raw File I/O"
788+
msgid "Raw file I/O"
809789
msgstr ""
810790

811791
msgid ""
@@ -886,7 +866,7 @@ msgid ""
886866
"given in the constructor."
887867
msgstr ""
888868

889-
msgid "Buffered Streams"
869+
msgid "Buffered streams"
890870
msgstr ""
891871

892872
msgid ""
@@ -1177,10 +1157,10 @@ msgstr ""
11771157

11781158
msgid ""
11791159
"*encoding* gives the name of the encoding that the stream will be decoded or "
1180-
"encoded with. In :ref:`UTF-8 Mode <utf8-mode>`, this defaults to UTF-8. "
1181-
"Otherwise, it defaults to :func:`locale.getencoding`. "
1182-
"``encoding=\"locale\"`` can be used to specify the current locale's encoding "
1183-
"explicitly. See :ref:`io-text-encoding` for more information."
1160+
"encoded with. This defaults to UTF-8; if :ref:`UTF-8 Mode <utf8-mode>` is "
1161+
"disabled, it defaults to :func:`locale.getencoding`. ``encoding=\"locale\"`` "
1162+
"can be used to specify the current locale's encoding explicitly. See :ref:"
1163+
"`io-text-encoding` for more information."
11841164
msgstr ""
11851165

11861166
msgid ""
@@ -1381,7 +1361,7 @@ msgid ""
13811361
"inherits from :class:`codecs.IncrementalDecoder`."
13821362
msgstr ""
13831363

1384-
msgid "Static Typing"
1364+
msgid "Static typing"
13851365
msgstr ""
13861366

13871367
msgid ""

0 commit comments

Comments
 (0)