55#
66# Translators:
77# python-doc bot, 2025
8- # Maciej Olko <maciej.olko@gmail.com> , 2025
8+ # Maciej Olko, 2025
99#
1010#, fuzzy
1111msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.15\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2026-08-15 14:15 +0000\n "
15+ "POT-Creation-Date : 2026-08-27 23:26 +0000\n "
1616"PO-Revision-Date : 2025-09-16 00:01+0000\n "
17- "Last-Translator : Maciej Olko <maciej.olko@gmail.com> , 2025\n "
17+ "Last-Translator : Maciej Olko, 2025\n "
1818"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
1919"MIME-Version : 1.0\n "
2020"Content-Type : text/plain; charset=UTF-8\n "
@@ -63,14 +63,25 @@ msgstr ""
6363
6464msgid ""
6565"Whenever the documentation mentions a *character* it can be specified as an "
66- "integer, a one-character Unicode string or a one-byte byte string."
66+ "integer, a one-character Unicode string or a one-byte byte string. An "
67+ "integer is the code of a single encoded byte, optionally combined with "
68+ "attributes and a color pair, as returned by :meth:`window.inch`."
6769msgstr ""
6870
6971msgid ""
7072"Whenever the documentation mentions a *character string* it can be specified "
7173"as a Unicode string or a byte string."
7274msgstr ""
7375
76+ msgid ""
77+ "Whether curses may be used from several threads depends on the underlying "
78+ "library and how it was built. In many implementations, including the default "
79+ "build of ncurses, the screen state is shared and not thread-safe; since the "
80+ "blocking and refresh methods (such as :meth:`~window.getch` and :meth:"
81+ "`~window.refresh`) release the :term:`GIL`, unsynchronized use from several "
82+ "threads can then crash the interpreter. Serialize the calls."
83+ msgstr ""
84+
7485msgid "Module :mod:`curses.ascii`"
7586msgstr "moduł :mod:`curses.ascii`"
7687
@@ -508,8 +519,8 @@ msgstr ""
508519
509520msgid ""
510521"Equivalent to ``tputs(str, 1, putchar)``; emit the value of a specified "
511- "terminfo capability for the current terminal. Note that the output of :func: "
512- "`putp` always goes to standard output."
522+ "terminfo capability, a bytes object, for the current terminal. Note that the "
523+ "output of :func: `putp` always goes to standard output."
513524msgstr ""
514525
515526msgid ":func:`setupterm` (or :func:`initscr`) must be called first."
@@ -653,8 +664,8 @@ msgstr ""
653664
654665msgid ""
655666"Instantiate the bytes object *str* with the supplied parameters, where *str* "
656- "should be a parameterized string obtained from the terminfo database. For "
657- "example, ``tparm(tigetstr(\" cup\" ), 5, 3)`` could result in "
667+ "should be a parameterized byte string obtained from the terminfo database. "
668+ "For example, ``tparm(tigetstr(\" cup\" ), 5, 3)`` could result in "
658669"``b'\\ 033[6;4H'``, the exact result depending on terminal type. Up to nine "
659670"integer parameters may be supplied."
660671msgstr ""
@@ -675,14 +686,19 @@ msgstr ""
675686
676687msgid ""
677688"Return a bytes object which is a printable representation of the character "
678- "*ch*. Control characters are represented as a caret followed by the "
679- "character, for example as ``b'^C'``. Printing characters are left as they "
680- "are."
689+ "*ch*; any attributes and color pair are ignored. Control characters are "
690+ "represented as a caret followed by the character, for example as ``b'^C'``. "
691+ "Printing characters are left as they are."
681692msgstr ""
682693
683694msgid "Push *ch* so the next :meth:`~window.getch` will return it."
684695msgstr ""
685696
697+ msgid ""
698+ "*ch* may be an integer (a key code or the code of an encoded byte), a byte, "
699+ "or a string of length 1 which encodes to a single byte."
700+ msgstr ""
701+
686702msgid "Only one *ch* can be pushed before :meth:`!getch` is called."
687703msgstr ""
688704
@@ -694,6 +710,11 @@ msgstr ""
694710msgid "Push *ch* so the next :meth:`~window.get_wch` will return it."
695711msgstr ""
696712
713+ msgid ""
714+ "*ch* may be an integer (a character code, not a key code) or a string of "
715+ "length 1."
716+ msgstr ""
717+
697718msgid "Only one *ch* can be pushed before :meth:`!get_wch` is called."
698719msgstr ""
699720
@@ -988,23 +1009,54 @@ msgid ""
9881009msgstr ""
9891010
9901011msgid ""
991- "Get a character. Note that the integer returned does *not* have to be in "
992- "ASCII range: function keys, keypad keys and so on are represented by numbers "
993- "higher than 255. In no-delay mode, return ``-1`` if there is no input, "
994- "otherwise wait until a key is pressed."
1012+ "Read a key press, after moving the cursor to *y*, *x* if specified, and "
1013+ "return it as an integer. The window is refreshed first if it is not a pad "
1014+ "and was modified since the last refresh. Wait until a key is pressed, or "
1015+ "return ``-1`` if the read is non-blocking or times out (see :meth:`nodelay` "
1016+ "and :meth:`timeout`)."
1017+ msgstr ""
1018+
1019+ msgid ""
1020+ "An ordinary key is returned as the code of a single byte of its encoding in "
1021+ "the current locale, so a character encoded with several bytes takes several "
1022+ "calls. For example, in a UTF-8 locale ``'é'`` is read as ``195``, then "
1023+ "``169``. Use :meth:`get_wch` to read it as a single character."
1024+ msgstr ""
1025+
1026+ msgid ""
1027+ "In keypad mode (see :meth:`keypad`) function keys and other special keys are "
1028+ "returned as one of the :ref:`KEY_* constants <curses-key-constants>`, which "
1029+ "cannot be mistaken for an ordinary key. Otherwise, or if their escape "
1030+ "sequence does not arrive in time (see :meth:`notimeout` and :func:"
1031+ "`set_escdelay`), their bytes are returned one at a time."
1032+ msgstr ""
1033+
1034+ msgid ""
1035+ "In echo mode (see :func:`echo`) the key is added to the window as by :meth:"
1036+ "`addch`; special keys are not echoed."
1037+ msgstr ""
1038+
1039+ msgid ""
1040+ "Read a key press, after moving the cursor to *y*, *x* if specified, and "
1041+ "return it as a one-character :class:`str`. The window is refreshed first if "
1042+ "it is not a pad and was modified since the last refresh. Wait until a key is "
1043+ "pressed, or raise :exc:`error` if the read is non-blocking or times out "
1044+ "(see :meth:`nodelay` and :meth:`timeout`)."
9951045msgstr ""
9961046
9971047msgid ""
998- "Get a wide character. Return a character for most keys, or an integer for "
999- "function keys, keypad keys, and other special keys. In no-delay mode, raise "
1000- "an exception if there is no input."
1048+ "In keypad mode (see :meth:`keypad`) function keys and other special keys are "
1049+ "returned as one of the :ref:`KEY_* constants <curses-key-constants>`, an "
1050+ "integer. Otherwise, or if their escape sequence does not arrive in time "
1051+ "(see :meth:`notimeout` and :func:`set_escdelay`), their characters are "
1052+ "returned one at a time."
10011053msgstr ""
10021054
10031055msgid ""
1004- "Get a character, returning a string instead of an integer, as :meth:`getch` "
1005- "does. Function keys, keypad keys and other special keys return a multibyte "
1006- "string containing the key name. In no-delay mode, raise an exception if "
1007- "there is no input."
1056+ "Read a key press as :meth:`getch` does, but return it as a :class:`str`: an "
1057+ "ordinary key as a one-character string, the byte decoded as Latin-1, and a "
1058+ "special key as its name, such as ``'KEY_UP'`` (see :func:`keyname`). Raise : "
1059+ "exc:`error` instead of returning ``-1`` if there is no input."
10081060msgstr ""
10091061
10101062msgid "Return a tuple ``(y, x)`` of the height and width of the window."
@@ -1017,8 +1069,10 @@ msgid ""
10171069msgstr ""
10181070
10191071msgid ""
1020- "Read a bytes object from the user, with primitive line editing capacity. At "
1021- "most *n* characters are read; *n* defaults to and cannot exceed 2047."
1072+ "Read a line of input from the user, with primitive line editing capacity, "
1073+ "after moving the cursor to *y*, *x* if specified. Return it as a bytes "
1074+ "object, in the encoding of the current locale and without the terminating "
1075+ "newline. At most *n* bytes are read; *n* defaults to and cannot exceed 2047."
10221076msgstr ""
10231077
10241078msgid "The maximum value for *n* was increased from 1023 to 2047."
@@ -1103,12 +1157,10 @@ msgid ""
11031157msgstr ""
11041158
11051159msgid ""
1106- "Return a bytes object of characters, extracted from the window starting at "
1107- "the current cursor position, or at *y*, *x* if specified, and stopping at "
1108- "the end of the line. Attributes and color information are stripped from the "
1109- "characters. If *n* is specified, :meth:`instr` returns a string at most *n* "
1110- "characters long (exclusive of the trailing NUL). The maximum value for *n* "
1111- "is 2047."
1160+ "Read the text of the window from the current cursor position, or from *y*, "
1161+ "*x* if specified, to the end of the line, and return it as a bytes object, "
1162+ "in the encoding of the current locale. Attributes and color pairs are "
1163+ "stripped. At most *n* bytes are read; *n* defaults to and cannot exceed 2047."
11121164msgstr ""
11131165
11141166msgid ""
@@ -1125,7 +1177,9 @@ msgstr ""
11251177msgid ""
11261178"If *flag* is ``True``, escape sequences generated by some keys (keypad, "
11271179"function keys) will be interpreted by :mod:`!curses`. If *flag* is "
1128- "``False``, escape sequences will be left as is in the input stream."
1180+ "``False``, escape sequences will be left as is in the input stream. Keypad "
1181+ "mode is disabled by default, but :func:`wrapper` enables it for the main "
1182+ "window."
11291183msgstr ""
11301184
11311185msgid ""
0 commit comments