|
| 1 | +# SOME DESCRIPTIVE TITLE. |
| 2 | +# Copyright (C) 2001 Python Software Foundation |
| 3 | +# This file is distributed under the same license as the Python package. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 | +# |
| 6 | +#, fuzzy |
| 7 | +msgid "" |
| 8 | +msgstr "" |
| 9 | +"Project-Id-Version: Python 3.14\n" |
| 10 | +"Report-Msgid-Bugs-To: \n" |
| 11 | +"POT-Creation-Date: 2025-11-11 14:15+0000\n" |
| 12 | +"PO-Revision-Date: 2025-11-11 14:16+0000\n" |
| 13 | +"Language-Team: Indonesian (https://app.transifex.com/python-doc/teams/5390/" |
| 14 | +"id/)\n" |
| 15 | +"MIME-Version: 1.0\n" |
| 16 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 17 | +"Content-Transfer-Encoding: 8bit\n" |
| 18 | +"Language: id\n" |
| 19 | +"Plural-Forms: nplurals=1; plural=0;\n" |
| 20 | + |
| 21 | +msgid "Curses C API" |
| 22 | +msgstr "" |
| 23 | + |
| 24 | +msgid "" |
| 25 | +":mod:`curses` exposes a small C interface for extension modules. Consumers " |
| 26 | +"must include the header file :file:`py_curses.h` (which is not included by " |
| 27 | +"default by :file:`Python.h`) and :c:func:`import_curses` must be invoked, " |
| 28 | +"usually as part of the module initialisation function, to populate :c:var:" |
| 29 | +"`PyCurses_API`." |
| 30 | +msgstr "" |
| 31 | + |
| 32 | +msgid "" |
| 33 | +"Neither the C API nor the pure Python :mod:`curses` module are compatible " |
| 34 | +"with subinterpreters." |
| 35 | +msgstr "" |
| 36 | + |
| 37 | +msgid "" |
| 38 | +"Import the curses C API. The macro does not need a semi-colon to be called." |
| 39 | +msgstr "" |
| 40 | + |
| 41 | +msgid "On success, populate the :c:var:`PyCurses_API` pointer." |
| 42 | +msgstr "" |
| 43 | + |
| 44 | +msgid "" |
| 45 | +"On failure, set :c:var:`PyCurses_API` to NULL and set an exception. The " |
| 46 | +"caller must check if an error occurred via :c:func:`PyErr_Occurred`:" |
| 47 | +msgstr "" |
| 48 | + |
| 49 | +msgid "" |
| 50 | +"import_curses(); // semi-colon is optional but recommended\n" |
| 51 | +"if (PyErr_Occurred()) { /* cleanup */ }" |
| 52 | +msgstr "" |
| 53 | + |
| 54 | +msgid "" |
| 55 | +"Dynamically allocated object containing the curses C API. This variable is " |
| 56 | +"only available once :c:macro:`import_curses` succeeds." |
| 57 | +msgstr "" |
| 58 | + |
| 59 | +msgid "``PyCurses_API[0]`` corresponds to :c:data:`PyCursesWindow_Type`." |
| 60 | +msgstr "" |
| 61 | + |
| 62 | +msgid "" |
| 63 | +"``PyCurses_API[1]``, ``PyCurses_API[2]``, and ``PyCurses_API[3]`` are " |
| 64 | +"pointers to predicate functions of type ``int (*)(void)``." |
| 65 | +msgstr "" |
| 66 | + |
| 67 | +msgid "" |
| 68 | +"When called, these predicates return whether :func:`curses.setupterm`, :func:" |
| 69 | +"`curses.initscr`, and :func:`curses.start_color` have been called " |
| 70 | +"respectively." |
| 71 | +msgstr "" |
| 72 | + |
| 73 | +msgid "" |
| 74 | +"See also the convenience macros :c:macro:`PyCursesSetupTermCalled`, :c:macro:" |
| 75 | +"`PyCursesInitialised`, and :c:macro:`PyCursesInitialisedColor`." |
| 76 | +msgstr "" |
| 77 | + |
| 78 | +msgid "" |
| 79 | +"The number of entries in this structure is subject to changes. Consider " |
| 80 | +"using :c:macro:`PyCurses_API_pointers` to check if new fields are available " |
| 81 | +"or not." |
| 82 | +msgstr "" |
| 83 | + |
| 84 | +msgid "" |
| 85 | +"The number of accessible fields (``4``) in :c:var:`PyCurses_API`. This " |
| 86 | +"number is incremented whenever new fields are added." |
| 87 | +msgstr "" |
| 88 | + |
| 89 | +msgid "" |
| 90 | +"The :ref:`heap type <heap-types>` corresponding to :class:`curses.window`." |
| 91 | +msgstr "" |
| 92 | + |
| 93 | +msgid "" |
| 94 | +"Return true if *op* is a :class:`curses.window` instance, false otherwise." |
| 95 | +msgstr "" |
| 96 | + |
| 97 | +msgid "" |
| 98 | +"The following macros are convenience macros expanding into C statements. In " |
| 99 | +"particular, they can only be used as ``macro;`` or ``macro``, but not " |
| 100 | +"``macro()`` or ``macro();``." |
| 101 | +msgstr "" |
| 102 | + |
| 103 | +msgid "Macro checking if :func:`curses.setupterm` has been called." |
| 104 | +msgstr "" |
| 105 | + |
| 106 | +msgid "The macro expansion is roughly equivalent to:" |
| 107 | +msgstr "" |
| 108 | + |
| 109 | +msgid "" |
| 110 | +"{\n" |
| 111 | +" typedef int (*predicate_t)(void);\n" |
| 112 | +" predicate_t was_setupterm_called = (predicate_t)PyCurses_API[1];\n" |
| 113 | +" if (!was_setupterm_called()) {\n" |
| 114 | +" return NULL;\n" |
| 115 | +" }\n" |
| 116 | +"}" |
| 117 | +msgstr "" |
| 118 | + |
| 119 | +msgid "Macro checking if :func:`curses.initscr` has been called." |
| 120 | +msgstr "" |
| 121 | + |
| 122 | +msgid "" |
| 123 | +"{\n" |
| 124 | +" typedef int (*predicate_t)(void);\n" |
| 125 | +" predicate_t was_initscr_called = (predicate_t)PyCurses_API[2];\n" |
| 126 | +" if (!was_initscr_called()) {\n" |
| 127 | +" return NULL;\n" |
| 128 | +" }\n" |
| 129 | +"}" |
| 130 | +msgstr "" |
| 131 | + |
| 132 | +msgid "Macro checking if :func:`curses.start_color` has been called." |
| 133 | +msgstr "" |
| 134 | + |
| 135 | +msgid "" |
| 136 | +"{\n" |
| 137 | +" typedef int (*predicate_t)(void);\n" |
| 138 | +" predicate_t was_start_color_called = (predicate_t)PyCurses_API[3];\n" |
| 139 | +" if (!was_start_color_called()) {\n" |
| 140 | +" return NULL;\n" |
| 141 | +" }\n" |
| 142 | +"}" |
| 143 | +msgstr "" |
| 144 | + |
| 145 | +msgid "Internal data" |
| 146 | +msgstr "" |
| 147 | + |
| 148 | +msgid "" |
| 149 | +"The following objects are exposed by the C API but should be considered " |
| 150 | +"internal-only." |
| 151 | +msgstr "" |
| 152 | + |
| 153 | +msgid "Name of the curses capsule to pass to :c:func:`PyCapsule_Import`." |
| 154 | +msgstr "" |
| 155 | + |
| 156 | +msgid "Internal usage only. Use :c:macro:`import_curses` instead." |
| 157 | +msgstr "" |
0 commit comments