Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/13176079/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://l10n.opensuse.org/api/translations/packages-i18n/l-master/ja/?format=api",
    "source": [
        "This Lua module offers a simple calling interface to the GNU Readline/History Library. The function readline() is a wrapper, which invokes the GNU readline, adds the line to the end of the History List, and then returns the line. Usually you call save_history() before the program exits, so that the History List is saved to the histfile. Various options can be changed using the set_options{} function. The user can configure the GNU Readline (e.g. vi or emacs keystrokes ?) with their individual ~/.inputrc file, see the INITIALIZATION FILE section of man readline. By default, the GNU readline library dialogues with the user by reading from stdin and writing to stdout; this fits very badly with applications that want to use stdin and stdout to input and output data. Therefore, this Lua module dialogues with the user on the controlling-terminal of the process (typically /dev/tty) as returned by ctermid(). Most of readline's Alternate Interface is now included, namely   handler_install,   read_char   and handler_remove. Some applications need to interleave keyboard I/O with file, device, or window system I/O, typically by using a main loop to select() on various file descriptors.   To accommodate this need, readline can also be invoked as a 'callback' function from an event loop, and the Alternate Interface offers functions to do this. The Alternate Interface does offer tab-completion; but it does not add to the history file, so you will probably want to call RL.add_history(s) explicitly. See handler_install() Access to readline's Custom Completion is now provided. This module does not work lua -i because that runs its own readline, and the two conflict with each other."
    ],
    "previous_source": "",
    "target": [
        "このLuaモジュールは、GNU readline/History Libraryへの単純な呼び出しインターフェースを提供します。readline()関数はラッパーであり、GNU readline を呼び出して履歴リストの最後に行を追加し、その行を返します。通常は、プログラムが終了する前にsave_history()を呼び出して、履歴リストがhistfileに保存されるようにします。set_options{}関数を使用して、さまざまなオプションを変更できます。ユーザは個々の~/.inputrcファイルで GNU readline(例えばviやemacsのキーストローク?)を設定することができます。man readlineのINITIALIZATION FILEセクションを参照してください。デフォルトでは、GNU readline ライブラリは標準入力から読み込み、標準出力に書き込むことでユーザと対話します。これは、標準入力と標準出力をデータの入出力に使用したいアプリケーションには非常に適していません。したがって、このLuaモジュールはctermid()から返されるプロセスの制御端末(通常は/dev/tty)上のユーザと対話します。readline の代替インターフェースのほとんど、すなわちhandler_install、read_char、handler_removeが含まれるようになりました。アプリケーションによっては、ファイルを伴うキーボードI/O、デバイス、またはウィンドウシステム I/O とインターリーブする必要があります。通常は、メインループを使用してさまざまなファイル記述子で select() を実行します。このニーズに対応するために、readlineはイベントループから「コールバック」関数として呼び出すこともでき、代替インタフェースはこれを行う関数を提供します。Alternate Interfaceはタブ補完機能を提供しますが、履歴ファイルには追加されないので、RL.add_history(s)を明示的に呼び出す必要があるでしょう。handler_install()を参照。readline のカスタム補完へのアクセスが提供されるようになりました。このモジュールはlua-iでは動作しません。なぜなら、lua-iは独自のreadlineを実行しており、この2つが競合するからです。"
    ],
    "id_hash": 6495988472184762695,
    "content_hash": 6495988472184762695,
    "location": "",
    "context": "",
    "note": "tumbleweed/lua51-readline/description\ntumbleweed/lua53-readline/description\ntumbleweed/lua54-readline/description",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 1405,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 267,
    "source_unit": "https://l10n.opensuse.org/api/units/13175199/?format=api",
    "priority": 100,
    "id": 13176079,
    "web_url": "https://l10n.opensuse.org/translate/packages-i18n/l-master/ja/?checksum=da266319259af147",
    "url": "https://l10n.opensuse.org/api/units/13176079/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2022-02-23T16:44:50.975530Z"
}