core: update Japanese translations
parent
6bf0dfddd6
commit
1495ecf6d0
|
@ -24,10 +24,9 @@
|
|||
*-p*, *--no-plugin*::
|
||||
プラグインの自動ロードを止める
|
||||
|
||||
// TRANSLATION MISSING
|
||||
*-P*, *--plugins* _<plugins>_::
|
||||
Load only these plugins at startup (see /help weechat.plugin.autoload).
|
||||
If this option is given, the option weechat.plugin.autoload is not used.
|
||||
起動時にロードするプラグインを指定 (/help weechat.plugin.autoload を参照してください)。
|
||||
このオプションを使う場合、weechat.plugin.autoload オプションは無視されます。
|
||||
|
||||
*-r*, *--run-command* _<command>_::
|
||||
起動後にコマンドを実行 (複数のコマンドを指定するにはセミコロンで各コマンドを区切る)
|
||||
|
|
|
@ -12,7 +12,6 @@ weechat-headless - 拡張可能なチャットクライアント (ヘッドレ
|
|||
|
||||
== 書式
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[verse]
|
||||
*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-P|--plugins <plugins>] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
|
||||
*weechat-headless* [-c|--colors]
|
||||
|
@ -26,7 +25,7 @@ WeeChat (Wee Enhanced Environment for Chat) はフリーのチャットクライ
|
|||
高速で軽量、多くのオペレーティングシステムで動くように設計されています。
|
||||
スクリプトを使って高度にカスタマイズと拡張可能です。
|
||||
|
||||
*weechat-headless* コマンドを使うことで、WeeChat をヘッドレスモード (インターフェイスなし) で実行できます。
|
||||
*weechat-headless* コマンドを使うことで、WeeChat をヘッドレスモード (インターフェースなし) で実行できます。
|
||||
ヘッドレスモードはテストや WeeChat をデーモン化する (オプション "--daemon" を使います) ために使われます。
|
||||
|
||||
== オプション
|
||||
|
|
|
@ -12,7 +12,6 @@ weechat - 拡張可能なチャットクライアント
|
|||
|
||||
== 書式
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[verse]
|
||||
*weechat* [-a|--no-connect] [-d|--dir <path>] [-p|--no-plugin] [-P|--plugins <plugins>] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
|
||||
*weechat* [-c|--colors]
|
||||
|
|
|
@ -69,12 +69,11 @@ qweechat::
|
|||
| ディレクトリ | 説明
|
||||
| src/ | ソースコードのルートディレクトリ
|
||||
| core/ | コア関数: エントリポイント、内部構造体
|
||||
// TRANSLATION MISSING
|
||||
| hook/ | Hook functions.
|
||||
| gui/ | バッファ、ウィンドウ、... を操作する関数 (全てのインターフェイスで使う)
|
||||
| curses/ | curses インターフェイス
|
||||
| headless/ | ヘッドレスモード (インターフェイスなし)
|
||||
| normal/ | curses インターフェイス
|
||||
| hook/ | フック関数
|
||||
| gui/ | バッファ、ウィンドウ、... を操作する関数 (全てのインターフェースで使う)
|
||||
| curses/ | curses インターフェース
|
||||
| headless/ | ヘッドレスモード (インターフェースなし)
|
||||
| normal/ | curses インターフェース
|
||||
| plugins/ | プラグインとスクリプト向け API
|
||||
| alias/ | alias プラグイン
|
||||
| aspell/ | aspell プラグイン
|
||||
|
@ -91,7 +90,7 @@ qweechat::
|
|||
| perl/ | perl スクリプト用 API
|
||||
| php/ | php スクリプト用 API
|
||||
| python/ | python スクリプト用 API
|
||||
| relay/ | relay プラグイン (irc プロキシ + リモートインターフェイス用の中継)
|
||||
| relay/ | relay プラグイン (irc プロキシ + リモートインターフェース用の中継)
|
||||
| ruby/ | ruby スクリプト用 API
|
||||
| script/ | スクリプトマネージャ
|
||||
| tcl/ | tcl スクリプト用 API
|
||||
|
@ -116,7 +115,7 @@ qweechat::
|
|||
WeeChat "core" は以下のディレクトリに配置されています:
|
||||
|
||||
* _src/core/_: コア関数 (データ操作用)
|
||||
* _src/gui/_: インターフェイスの関数 (バッファ、ウィンドウ、...)
|
||||
* _src/gui/_: インターフェースの関数 (バッファ、ウィンドウ、...)
|
||||
|
||||
[width="100%",cols="1m,3",options="header"]
|
||||
|===
|
||||
|
@ -148,27 +147,26 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
|||
| wee-util.c | その他の関数
|
||||
| wee-version.c | WeeChat バージョンについての関数
|
||||
| weechat.c | 主要関数: コマンドラインオプション、起動
|
||||
// TRANSLATION MISSING
|
||||
| hook/ | Hook functions.
|
||||
| wee-hook-command-run.c | Hook "command_run".
|
||||
| wee-hook-command.c | Hook "command".
|
||||
| wee-hook-completion.c | Hook "completion".
|
||||
| wee-hook-config.c | Hook "config".
|
||||
| wee-hook-connect.c | Hook "connect".
|
||||
| wee-hook-fd.c | Hook "fd".
|
||||
| wee-hook-focus.c | Hook "focus".
|
||||
| wee-hook-hdata.c | Hook "hdata".
|
||||
| wee-hook-hsignal.c | Hook "hsignal".
|
||||
| wee-hook-info-hashtable.c | Hook "info_hashtable".
|
||||
| wee-hook-info.c | Hook "info".
|
||||
| wee-hook-infolist.c | Hook "infolist".
|
||||
| wee-hook-line.c | Hook "line".
|
||||
| wee-hook-modifier.c | Hook "modifier".
|
||||
| wee-hook-print.c | Hook "print".
|
||||
| wee-hook-process.c | Hook "process".
|
||||
| wee-hook-signal.c | Hook "signal".
|
||||
| wee-hook-timer.c | Hook "timer".
|
||||
| gui/ | バッファ、ウィンドウなどの関数 (全てのインターフェイスで利用)
|
||||
| hook/ | フック関数
|
||||
| wee-hook-command-run.c | "command_run" フック
|
||||
| wee-hook-command.c | "command" フック
|
||||
| wee-hook-completion.c | "completion" フック
|
||||
| wee-hook-config.c | "config" フック
|
||||
| wee-hook-connect.c | "connect" フック
|
||||
| wee-hook-fd.c | "fd" フック
|
||||
| wee-hook-focus.c | "focus" フック
|
||||
| wee-hook-hdata.c | "hdata" フック
|
||||
| wee-hook-hsignal.c | "hsignal" フック
|
||||
| wee-hook-info-hashtable.c | "info_hashtable" フック
|
||||
| wee-hook-info.c | "info" フック
|
||||
| wee-hook-infolist.c | "infolist" フック
|
||||
| wee-hook-line.c | "line" フック
|
||||
| wee-hook-modifier.c | "modifier" フック
|
||||
| wee-hook-print.c | "print" フック
|
||||
| wee-hook-process.c | "process" フック
|
||||
| wee-hook-signal.c | "signal" フック
|
||||
| wee-hook-timer.c | "timer" フック
|
||||
| gui/ | バッファ、ウィンドウなどの関数 (全てのインターフェースで利用)
|
||||
| gui-bar-item.c | バー要素
|
||||
| gui-bar-window.c | バーウィンドウ
|
||||
| gui-bar.c | バー
|
||||
|
@ -189,7 +187,7 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
|||
| gui-nick.c | ニックネーム関数
|
||||
| gui-nicklist.c | バッファのニックネームリスト
|
||||
| gui-window.c | ウィンドウ
|
||||
| curses/ | curses インターフェイス
|
||||
| curses/ | curses インターフェース
|
||||
| gui-curses-bar-window.c | バーウィンドウへの表示
|
||||
| gui-curses-chat.c | チャットエリアへの表示 (メッセージ)
|
||||
| gui-curses-color.c | 色関数
|
||||
|
@ -198,11 +196,11 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
|||
| gui-curses-mouse.c | マウス
|
||||
| gui-curses-term.c | 端末についての関数
|
||||
| gui-curses-window.c | ウィンドウ
|
||||
| headless/ | ヘッドレスモード (インターフェイスなし)
|
||||
| headless/ | ヘッドレスモード (インターフェースなし)
|
||||
| main.c | ヘッドレスモード用のエントリポイント
|
||||
| ncurses-fake.c | ダミーの ncurses ライブラリ
|
||||
| normal/ | curses インターフェイス
|
||||
| main.c | curses インターフェイス用のエントリポイント
|
||||
| normal/ | curses インターフェース
|
||||
| main.c | curses インターフェース用のエントリポイント
|
||||
|===
|
||||
|
||||
[[sources_plugins]]
|
||||
|
@ -313,7 +311,7 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
|||
| python/ | python プラグイン
|
||||
| weechat-python.c | python の主要関数 (スクリプトのロード/アンロード、python コードの実行)
|
||||
| weechat-python-api.c | python スクリプト作成 API 関数
|
||||
| relay/ | relay プラグイン (IRC プロキシとリモートインターフェイスへの中継)
|
||||
| relay/ | relay プラグイン (IRC プロキシとリモートインターフェースへの中継)
|
||||
| relay.c | relay の主要関数
|
||||
| relay-buffer.c | relay バッファ
|
||||
| relay-client.c | relay クライアント
|
||||
|
@ -328,8 +326,8 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
|||
| relay-websocket.c | リレー用の websocket サーバ関数 (RFC 6455)
|
||||
| irc/ | IRC プロキシ
|
||||
| relay-irc.c | IRC プロキシの主要関数
|
||||
| weechat/ | リモートインターフェイスへの中継
|
||||
| relay-weechat.c | リモートインターフェイスへの中継 (主要関数)
|
||||
| weechat/ | リモートインターフェースへの中継
|
||||
| relay-weechat.c | リモートインターフェースへの中継 (主要関数)
|
||||
| relay-weechat-msg.c | クライアントにバイナリメッセージを送信
|
||||
| relay-weechat-nicklist.c | ニックネームリスト関数
|
||||
| relay-weechat-protocol.c | クライアントからのコマンドを読み取る
|
||||
|
@ -416,7 +414,7 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
|||
| weechat_faq.XX.adoc | link:weechat_faq.ja.html[FAQ]
|
||||
| weechat_plugin_api.XX.adoc | link:weechat_plugin_api.ja.html[プラグイン API リファレンス]
|
||||
| weechat_quickstart.XX.adoc | link:weechat_quickstart.ja.html[クイックスタートガイド]
|
||||
| weechat_relay_protocol.XX.adoc | link:weechat_relay_protocol.ja.html[リレープロトコル] (リモートインターフェイス用)
|
||||
| weechat_relay_protocol.XX.adoc | link:weechat_relay_protocol.ja.html[リレープロトコル] (リモートインターフェース用)
|
||||
| weechat_scripting.XX.adoc | link:weechat_scripting.ja.html[スクリプト作成ガイド]
|
||||
| weechat_tester.XX.adoc | link:weechat_tester.ja.html[テスターガイド]
|
||||
| weechat_user.XX.adoc | link:weechat_user.ja.html[ユーザーズガイド]
|
||||
|
|
|
@ -45,8 +45,7 @@ WeeChat は非常に軽く、革新的な機能を備えているからです。
|
|||
[[gui]]
|
||||
=== WeeChat には多くの GUI があると聞きました。コンパイル/利用方法を教えてください。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
いくつかのリモート GUI が利用可能です、see the remote interfaces page:
|
||||
いくつかのリモート GUI が利用可能です、以下のリモートインターフェースに関するページを参照してください:
|
||||
https://weechat.org/about/interfaces
|
||||
|
||||
[[compile_git]]
|
||||
|
|
|
@ -9072,24 +9072,22 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
|
|||
|
||||
==== hook_line
|
||||
|
||||
_WeeChat ≥ 2.3._
|
||||
_WeeChat バージョン 2.3 以上で利用可_
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Hook a line to be printed in a buffer.
|
||||
バッファに対する行表示をフックする。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
When a line is printed in a buffer, hooks are called in this order:
|
||||
バッファに行が表示される際に、以下の順番でフックが呼び出されます:
|
||||
|
||||
* <<_hook_line,hook line>> (this hook): it can change the buffer, prefix,
|
||||
message, tags, notify level, … (see below)
|
||||
* <<_hook_line,hook line>> (このフック):
|
||||
バッファ、プレフィックス、メッセージ、タグ、通知レベル、… を変更可能 (以下を参照)
|
||||
* <<_hook_modifier,hook modifier>> "<<hook_modifier_weechat_print,weechat_print>>":
|
||||
it can change the prefix and message on a buffer with formatted content
|
||||
* <<_hook_print,hook print>>: called when the line has been added in a buffer
|
||||
with formatted content (nothing can be changed directly with this hook).
|
||||
フォーマット済み内容バッファ上のプレフィックスとメッセージを変更可能
|
||||
* <<_hook_print,hook print>>: 行がフォーマット済み内容バッファに追加された時点で呼び出されます
|
||||
(このフックでは何かを変更することはできません)。
|
||||
|
||||
[NOTE]
|
||||
The "line" hook is the only one among these three hooks that can work on
|
||||
buffers with free content.
|
||||
上記 3 つのフックの中で、フォーマット済み内容バッファの内容を操作できるのは
|
||||
"line" フックだけです。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
@ -9105,54 +9103,51 @@ struct t_hook *weechat_hook_line (const char *buffer_type,
|
|||
void *callback_data);
|
||||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
引数:
|
||||
|
||||
* _buffer_type_: catch lines on the given buffer type (if NULL or empty string,
|
||||
_formatted_ is the default):
|
||||
** _formatted_: catch lines on formatted buffers only (default)
|
||||
** _free_: catch lines on buffers with free content only
|
||||
** _*_: catch lines on all buffer types
|
||||
* _buffer_name_: comma-separated list of buffer masks
|
||||
(see <<_buffer_match_list,buffer_match_list>>); NULL, empty string or "*"
|
||||
matches any buffer
|
||||
* _tags_: catch only messages with these tags (optional): comma-separated list
|
||||
of tags that must be in message (logical "or"); it is possible to combine
|
||||
many tags as a logical "and" with separator `+++`; wildcard `+*+` is allowed
|
||||
in tags
|
||||
* _callback_: function called when a line is added in a buffer, arguments and
|
||||
return value:
|
||||
** _const void *pointer_: pointer
|
||||
** _void *data_: pointer
|
||||
** _struct t_hashtable *line_: hashtable with the line info, keys and values are
|
||||
strings (see table below)
|
||||
** return value: hashtable with new values (see table below)
|
||||
* _callback_pointer_: pointer given to callback when it is called by WeeChat
|
||||
* _callback_data_: pointer given to callback when it is called by WeeChat;
|
||||
if not NULL, it must have been allocated with malloc (or similar function)
|
||||
and it is automatically freed when the hook is deleted
|
||||
* _buffer_type_: ここで指定したバッファ型の行をフックします (NULL または空文字列の場合、
|
||||
_formatted_ を指定したことになります):
|
||||
** _formatted_: フォーマット済み内容バッファの行のみをフックします (デフォルト)
|
||||
** _free_: 自由内容バッファの行のみをフックします
|
||||
** _*_: すべてのバッファの行をフックします
|
||||
* _buffer_name_: バッファマスクのコンマ区切りリスト
|
||||
(<<_buffer_match_list,buffer_match_list>> を参照してください);
|
||||
NULL、空文字列、"*" は任意のバッファにマッチします。
|
||||
* _tags_: 指定したタグを付けられたメッセージのみをフックします (任意):
|
||||
メッセージに含まれるタグのコンマ区切りリスト (論理 "or");
|
||||
複数のタグを論理 "and" で組み合わせるには `+++` を使ってください;
|
||||
タグ中の `+*+` はワイルドカードを意味します
|
||||
* _callback_:
|
||||
バッファに行が追加されると呼び出される関数、引数と戻り値は以下:
|
||||
** _const void *pointer_: ポインタ
|
||||
** _void *data_: ポインタ
|
||||
** _struct t_hashtable *line_: 行のインフォを含むハッシュテーブル、キーと値は文字列
|
||||
(以下のテーブルを参照してください)
|
||||
** 戻り値: 新しい値のハッシュテーブル (以下のテーブルを参照してください)
|
||||
* _callback_pointer_: WeeChat がコールバックを呼び出した際にコールバックに渡したポインタ
|
||||
* _callback_data_: WeeChat がコールバックを呼び出した際にコールバックに渡したポインタ;
|
||||
NULL 以外の場合、このポインタの指す領域は malloc (もしくは類似の関数)
|
||||
で割り当てられたものでなければいけません。加えて、このポインタの指す領域はフックが削除された時点で自動的に解放されます。
|
||||
|
||||
戻り値:
|
||||
|
||||
* 新しいフックへのポインタ、エラーが起きた場合は NULL
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Line data sent to the callback is a hashtable, with following values
|
||||
(keys and values are strings):
|
||||
コールバックへ送られる行のデータは以下の値を持つハッシュテーブルです
|
||||
(キーと値は文字列):
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="^1,3,3,2",options="header"]
|
||||
|===
|
||||
| Key | Value (formatted buffer) | Value (free buffer) | Examples
|
||||
| キー | 値 (フォーマット済みバッファ) | 値 (自由内容バッファ) | 例
|
||||
|
||||
| buffer |
|
||||
Buffer pointer. |
|
||||
Buffer pointer. |
|
||||
バッファポインタ |
|
||||
バッファポインタ |
|
||||
`+0x12345678+`
|
||||
|
||||
| buffer_name |
|
||||
Buffer name. |
|
||||
Buffer name. |
|
||||
バッファ名 |
|
||||
バッファ名 |
|
||||
`+core.weechat+` +
|
||||
`+irc.server.freenode+` +
|
||||
`+irc.freenode.#weechat+`
|
||||
|
@ -9164,153 +9159,149 @@ Line data sent to the callback is a hashtable, with following values
|
|||
`+free+`
|
||||
|
||||
| y |
|
||||
N/A ("-1"). |
|
||||
Line number (≥ "0"). |
|
||||
利用不可 ("-1") |
|
||||
行番号 (≥ "0") |
|
||||
`+-1+` +
|
||||
`+8+`
|
||||
|
||||
| date |
|
||||
Line date (timestamp). |
|
||||
N/A ("0"). |
|
||||
行日付 (タイムスタンプ) |
|
||||
利用不可 ("0") |
|
||||
`+1533792000+`
|
||||
|
||||
| date_printed |
|
||||
Date when line was displayed (timestamp). |
|
||||
N/A ("0"). |
|
||||
行が表示された日付 (タイムスタンプ) |
|
||||
利用不可 ("0") |
|
||||
`+1533792012+`
|
||||
|
||||
| str_time |
|
||||
Date for display (possible color codes inside). |
|
||||
N/A (empty string). |
|
||||
行に追加される日付 (色コードを入れてもよい) |
|
||||
利用不可 (空文字列) |
|
||||
`+09:07:20+`
|
||||
|
||||
| tags_count |
|
||||
Number of tags in the line (≥ "0"). |
|
||||
N/A ("0"). |
|
||||
タグの個数 (≥ "0") |
|
||||
利用不可 ("0") |
|
||||
`+2+`
|
||||
|
||||
| tags |
|
||||
Comma-separated list of tags. |
|
||||
N/A (empty string). |
|
||||
タグのコンマ区切りリスト |
|
||||
利用不可 (空文字列) |
|
||||
`+irc_join,nick_test+`
|
||||
|
||||
| displayed |
|
||||
"0" = line is filtered (hidden) +
|
||||
"1" = line is not filtered (displayed). |
|
||||
"0" = line is filtered (hidden) +
|
||||
"1" = line is not filtered (displayed). |
|
||||
"0" = 行はフィルタされました (非表示) +
|
||||
"1" = 行はフィルタされませんでした (表示) |
|
||||
"0" = 行はフィルタされました (非表示) +
|
||||
"1" = 行はフィルタされませんでした (表示) |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| notify_level |
|
||||
"0" = low level +
|
||||
"1" = message +
|
||||
"2" = private message +
|
||||
"3" = highlight |
|
||||
N/A ("0"). |
|
||||
"0" = 低レベル +
|
||||
"1" = メッセージ +
|
||||
"2" = プライベートメッセージ +
|
||||
"3" = ハイライト |
|
||||
利用不可 ("0") |
|
||||
`+2+`
|
||||
|
||||
| highlight |
|
||||
"0" = no highlight +
|
||||
"1" = line has highlight. |
|
||||
N/A ("0"). |
|
||||
"0" = ハイライトなし +
|
||||
"1" = ハイライトあり |
|
||||
利用不可 ("0"). |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| prefix |
|
||||
Prefix of the line. |
|
||||
N/A (empty string). |
|
||||
行のプレフィックス |
|
||||
利用不可 (空文字列) |
|
||||
`+-->+`
|
||||
|
||||
| message |
|
||||
Message of the line. |
|
||||
Message of the line. |
|
||||
行のメッセージ |
|
||||
行のメッセージ |
|
||||
`+test (~test@example.com) has joined #channel+`
|
||||
|===
|
||||
|
||||
// TRANSLATION MISSING
|
||||
The callback can return a hashtable with some fields to update the line.
|
||||
Any invalid value in a field is silently ignored by WeeChat.
|
||||
戻り値としては、値すべてのフィールドを含む完全なハッシュテーブルを返す必要もありませんし、無効なフィールドがあっても
|
||||
WeeChat はそれらを無視します。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
The following keys can be set in the hashtable (keys and values are strings
|
||||
in this hashtable):
|
||||
ハッシュテーブルに設定できるキーを以下に挙げます
|
||||
(ハッシュテーブル中のキーと値は文字列です)。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="^1,2,2,5",options="header"]
|
||||
|===
|
||||
| Key | Allowed value (formatted buffer) | Allowed value (free buffer) | Result
|
||||
| キー | 設定可能な値 (フォーマット済みバッファ) | 設定可能な値 (自由内容バッファ) | 結果
|
||||
|
||||
| buffer |
|
||||
Pointer of a buffer with formatted content. |
|
||||
Pointer of a buffer with free content. |
|
||||
The line is displayed on this buffer. +
|
||||
If the value is empty, the line is deleted (anything else in the hashtable
|
||||
is then ignored); the next hooks of type "line" are not called.
|
||||
フォーマット済みバッファへのポインタ |
|
||||
自由内容バッファへのポインタ |
|
||||
行を表示するバッファ。 +
|
||||
この値が空の場合、行は削除されます (ハッシュテーブルに含まれるその他の情報も無視されます);
|
||||
"line" 型の次のフックも呼び出されません。
|
||||
|
||||
| buffer_name |
|
||||
Name of a buffer with formatted content. |
|
||||
Name of a buffer with free content. |
|
||||
The line is displayed on this buffer. +
|
||||
If `buffer` is also set, the value of `buffer_name` has higher priority and is used. +
|
||||
If the value is empty, the line is deleted (anything else in the hashtable
|
||||
is then ignored); the next hooks of type "line" are not called.
|
||||
フォーマット済み内容バッファの名前. |
|
||||
自由内容バッファの名前 |
|
||||
行を表示するバッファ。 +
|
||||
`buffer` と `buffer_name` の両方が設定された場合、`buffer_name` の値が優先されます +
|
||||
この値が空の場合、行は削除されます (ハッシュテーブルに含まれるその他の情報も無視されます);
|
||||
"line" 型の次のフックも呼び出されません。
|
||||
|
||||
| y |
|
||||
N/A. |
|
||||
Integer (≥ "0"). |
|
||||
The line number is set to this value.
|
||||
利用不可 |
|
||||
整数 (≥ "0") |
|
||||
行番号はこの値に設定されます
|
||||
|
||||
| date |
|
||||
Timestamp. |
|
||||
N/A. |
|
||||
The date is set to this value. +
|
||||
The value of `str_time` is updated accordingly.
|
||||
タイムスタンプ |
|
||||
利用不可 |
|
||||
日付はこの値に設定されます +
|
||||
これに対応して `str_time` も更新されます
|
||||
|
||||
| date_printed |
|
||||
Timestamp. |
|
||||
N/A. |
|
||||
The printed date is set to this timestamp (not displayed).
|
||||
タイムスタンプ |
|
||||
利用不可 |
|
||||
表示される日付はこのタイムスタンプを使います。The printed date is set to this timestamp (not displayed).
|
||||
|
||||
| str_time |
|
||||
String. |
|
||||
N/A. |
|
||||
This string is used to display the date line. +
|
||||
If `date` is also set, the value of `str_time` has higher priority and is used.
|
||||
文字列 |
|
||||
利用不可 |
|
||||
この文字列は日付を表示する際に使われます。 +
|
||||
`date` と `str_time` の両方が設定された場合、`str_time` の値が優先されます。
|
||||
|
||||
| tags |
|
||||
String. |
|
||||
N/A. |
|
||||
The line tags are replaced with this comma-separated list of tags. +
|
||||
The values of `notify_level` and `highlight` are updated accordingly.
|
||||
文字列 |
|
||||
利用不可 |
|
||||
行タグはここで指定したコンマ区切りリストに置き換えられます。 +
|
||||
これに対応して `notify_level` と `highlight` も更新されます。
|
||||
|
||||
| notify_level |
|
||||
Integer ("0" to "3"). |
|
||||
N/A. |
|
||||
The notify level is set to this value. The hotlist will be updated
|
||||
accordingly once the line is added in the buffer. +
|
||||
The value of `highlight` is updated accordingly. +
|
||||
If `tags` is also set, the value of `notify_level` has higher priority and is used.
|
||||
整数 ("0" から "3") |
|
||||
利用不可 |
|
||||
通知レベルがこの値に設定されます。バッファに行が追加されるとホットリストも更新されます。 +
|
||||
この値に対応して `highlight` の値も更新されます。 +
|
||||
`tags` と `notify_level` の両方が設定された場合、`notify_level`
|
||||
の値が優先されます。
|
||||
|
||||
| highlight |
|
||||
Integer ("0" or "1"). |
|
||||
N/A. |
|
||||
"0" disables highlight on the line, "1" forces a highlight on the line. +
|
||||
If `tags` or `notify_level` are set, the value of `highlight` has higher
|
||||
priority and is used.
|
||||
整数 ("0" または "1") |
|
||||
利用不可 |
|
||||
"0" は行のハイライトを無効化し、"1" は行のハイライトを強制します。 +
|
||||
この値と `tags` または `notify_level` の両方が設定された場合、`highlight`
|
||||
の値が優先されます。
|
||||
|
||||
| prefix |
|
||||
String. |
|
||||
N/A. |
|
||||
The line prefix is set to this value.
|
||||
文字列 |
|
||||
利用不可 |
|
||||
行のプレフィックスがこの値に設定されます
|
||||
|
||||
| message |
|
||||
String. |
|
||||
String. |
|
||||
The line message is set to this value.
|
||||
文字列 |
|
||||
文字列 |
|
||||
行メッセージがこの値に設定されます
|
||||
|===
|
||||
|
||||
// TRANSLATION MISSING
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
|
@ -9325,17 +9316,16 @@ my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
|
|||
WEECHAT_HASHTABLE_STRING,
|
||||
NULL,
|
||||
NULL);
|
||||
/* force a highlight on the line */
|
||||
/* この行のハイライトを強制 */
|
||||
weechat_hashtable_set (hashtable, "highlight", "1");
|
||||
return hashtable;
|
||||
}
|
||||
|
||||
/* catch lines with tag "irc_join" */
|
||||
/* タグ "irc_join" をつけられた行をフック */
|
||||
struct t_hook *my_line_hook =
|
||||
weechat_hook_line ("", "", "irc_join", &my_line_cb, NULL, NULL);
|
||||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
スクリプト (Python) での使用例:
|
||||
|
||||
[source,python]
|
||||
|
@ -9345,10 +9335,10 @@ hook = weechat.hook_line(buffer_type, buffer_name, tags, callback, callback_data
|
|||
|
||||
# 例
|
||||
def my_line_cb(data, line):
|
||||
# force a highlight on the line
|
||||
# この行のハイライトを強制
|
||||
return {"highlight": "1"}
|
||||
|
||||
# catch lines with tag "irc_join"
|
||||
# タグ "irc_join" をつけられた行をフック
|
||||
hook = weechat.hook_line("", "", "irc_join", "my_line_cb", "")
|
||||
----
|
||||
|
||||
|
@ -9356,13 +9346,10 @@ hook = weechat.hook_line("", "", "irc_join", "my_line_cb", "")
|
|||
|
||||
_WeeChat バージョン 0.4.3、1.0、1.5 で更新。_
|
||||
|
||||
// TRANSLATION MISSING
|
||||
メッセージの表示をフックする。 It is called when a line has been added in
|
||||
a buffer with formatted content.
|
||||
メッセージの表示をフックする。これは行がフォーマット済みバッファに追加された時点で呼び出されます。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
For more information on the hooks called when a line is printed, see
|
||||
<<_hook_line,hook_line>>.
|
||||
行が表示された際に呼び出されるフックの情報は
|
||||
<<_hook_line,hook_line>> を参照してください。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
@ -10972,13 +10959,12 @@ WeeChat とプラグインが使う修飾子のリスト:
|
|||
バッファに送信するコマンドラインの内容 (テキストまたはコマンド) |
|
||||
バッファに送信するコマンドラインの新しい内容
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| [[hook_modifier_weechat_print]] weechat_print |
|
||||
plugin + ";" + buffer_name + ";" + tags |
|
||||
表示されたメッセージ |
|
||||
表示される新しいメッセージ +
|
||||
For more information on the hooks called when a line is printed, see
|
||||
<<_hook_line,hook_line>>.
|
||||
行が表示される際に呼び出されるフックについての詳細は
|
||||
<<_hook_line,hook_line>> を参照してください
|
||||
|===
|
||||
|
||||
[NOTE]
|
||||
|
@ -11052,8 +11038,7 @@ char *weechat_hook_modifier_exec (const char *modifier,
|
|||
|
||||
* 修正された文字列、エラーが起きた場合は NULL
|
||||
|
||||
// TRANSLATION MISSING
|
||||
List of modifiers defined by WeeChat and plugins that can be used:
|
||||
WeeChat とプラグインが定義する修飾子のリスト:
|
||||
|
||||
[width="100%",cols="^2,3,4,4",options="header"]
|
||||
|===
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
|
||||
この文書は WeeChat リレープロトコルについて述べたものです: リレープロトコルとは、WeeChat
|
||||
データをクライアントに中継するためのもので、多くの場合クライアントはリモートインターフェイスを指します。
|
||||
データをクライアントに中継するためのもので、多くの場合クライアントはリモートインターフェースを指します。
|
||||
|
||||
|
||||
[[introduction]]
|
||||
|
@ -29,7 +29,7 @@
|
|||
* _リレー_: これは relay プラグインを備えた WeeChat を指し、"サーバ"
|
||||
のように振る舞い、_クライアント_ からの接続を受け付けます
|
||||
* _クライアント_: これは他のソフトウェアのことを指し、ネットワークを介して _リレー_
|
||||
に接続します; 多くの場合、_クライアント_ はリモートインターフェイスのことを指します。
|
||||
に接続します; 多くの場合、_クライアント_ はリモートインターフェースのことを指します。
|
||||
|
||||
[[network_diagram]]
|
||||
=== ネットワーク図
|
||||
|
@ -50,8 +50,8 @@
|
|||
|
||||
|
||||
└────────────┘ └────────────────────┘╘══════╛└──────────────────────────────────────┘
|
||||
ネットワーク ncurses リレー リモートインターフェイス
|
||||
サーバ インターフェイス プロトコル
|
||||
ネットワーク ncurses リレー リモートインターフェース
|
||||
サーバ インターフェース プロトコル
|
||||
....
|
||||
|
||||
[NOTE]
|
||||
|
@ -507,14 +507,12 @@ quit
|
|||
'length' バイト
|
||||
....
|
||||
|
||||
// TRANSLATION MISSING
|
||||
* _length_ (符号なし整数型, 4 bytes): メッセージ全体のバイト数
|
||||
* _length_ (符号なし整数型、4 バイト): メッセージ全体のバイト数
|
||||
(このフィールドを含む)
|
||||
* _compression_ (バイト型): フラグ:
|
||||
** _0x00_: これ以降のデータは圧縮されていません
|
||||
** _0x01_: これ以降のデータは _zlib_ で圧縮されています
|
||||
// TRANSLATION MISSING
|
||||
* _id_ (文字列型, 4 bytes + content): クライアントが送信した識別子 (コマンド名の前につけられる);
|
||||
* _id_ (文字列型、4 バイト + 内容): クライアントが送信した識別子 (コマンド名の前につけられる);
|
||||
コマンドに識別子が含まれない場合は空文字列でも可
|
||||
(内容を含まない長さゼロの文字列)
|
||||
* _type_ (3 文字): 型の種類: 3 文字 (以下の表を参照)
|
||||
|
|
|
@ -426,10 +426,9 @@ ulimit -c 200000
|
|||
[[gdb_backtrace]]
|
||||
==== gdb でバックトレースを得る
|
||||
|
||||
// TRANSLATION MISSING
|
||||
When WeeChat crashes, your system will create a file _core_ or _core.12345_
|
||||
(_12345_ is process id) if the <<core_files,option is enabled>>.
|
||||
このファイルは WeeChat を起動したディレクトリに作られます (これは
|
||||
<<core_files,オプションが有効の場合>>、WeeChat がクラッシュするとシステムは
|
||||
_core_ または _core.12345_ ファイルを作ります (_12345_
|
||||
はプロセス番号です)。このファイルは WeeChat を起動したディレクトリに作られます (これは
|
||||
WeeChat がインストールされているディレクトリでは *ありません*!)。
|
||||
|
||||
例えば、_weechat_ が _/usr/bin/_ にインストールされ、_core_ ファイルが
|
||||
|
@ -3622,11 +3621,10 @@ trigger.trigger.beep.post_action = none
|
|||
`+5000\|input_text_display;5000\|history_add+` |
|
||||
link:weechat_plugin_api.ja.html#_hook_modifier[hook_modifier]
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| line |
|
||||
1. buffer type +
|
||||
2. buffer name +
|
||||
3. tags |
|
||||
1. バッファ型 +
|
||||
2. バッファ名 +
|
||||
3. タグ |
|
||||
`+formatted+` +
|
||||
`+free+` +
|
||||
`+*;irc.freenode.*+` +
|
||||
|
@ -3709,21 +3707,19 @@ ${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})
|
|||
書式: "/regex/replace" または "/regex/replace/var" (ここで
|
||||
_var_ はハッシュテーブルの変数)。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
If _var_ does not exist in the hashtable, it is created automatically with an
|
||||
empty value. This allows to create custom temporary variables.
|
||||
ハッシュテーブル内に _var_ が存在しない場合、空の値を持つ _var_
|
||||
が自動的に作られます。これを使うことで一時的な任意の変数を作れます。
|
||||
|
||||
_var_
|
||||
が指定されなかった場合、デフォルト変数を使います、これはフックの種類に依存します:
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="2,3,7",options="header"]
|
||||
|===
|
||||
| フック | デフォルト変数 | Update allowed ^(1)^
|
||||
| フック | デフォルト変数 | 更新が許可Update allowed ^(1)^
|
||||
| signal | tg_signal_data |
|
||||
| hsignal | |
|
||||
| modifier | tg_string | tg_string
|
||||
| line | message | buffer, buffer_name, y, date, date_printed, str_time, tags, notify_level, highlight, prefix, message
|
||||
| line | message | buffer、buffer_name、y、date、date_printed、str_time、tags、notify_level、highlight、prefix、message
|
||||
| print | tg_message |
|
||||
| command | tg_argv_eol1 |
|
||||
| command_run | tg_command |
|
||||
|
@ -3732,10 +3728,9 @@ _var_
|
|||
| focus | |
|
||||
|===
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[NOTE]
|
||||
^(1)^ All variables can be updated in the trigger, but only these variables
|
||||
have an effect on the value returned by the trigger and used by WeeChat.
|
||||
^(1)^ トリガはすべての値を更新できますが、ここで挙げた変数だけがトリガによって返されて
|
||||
WeeChat によって使われる値に影響を及ぼします
|
||||
|
||||
複数の正規表現を使う場合は空白で区切ってください、例:
|
||||
"/regex1/replace1/var1 /regex2/replace2/var2"。
|
||||
|
@ -3894,30 +3889,27 @@ _weechat_print_ 修飾子では、メッセージタグを使う変数 (下の
|
|||
|
||||
"line" コールバックは以下の変数をハッシュテーブルに格納します:
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="3m,2,14",options="header"]
|
||||
|===
|
||||
| 変数 | 型 | 説明
|
||||
| Variable | Type | Description
|
||||
| buffer | pointer | Buffer.
|
||||
| buffer_name | string | Buffer name.
|
||||
| buffer_type | string | Buffer type ("formatted" or "free").
|
||||
| y | string | Line number for a buffer with free content (≥ 0), -1 for a buffer with formatted content.
|
||||
| date | string | Line date (timestamp).
|
||||
| date_printed | string | Date when line was displayed (timestamp).
|
||||
| str_time | string | Date for display. It may contain color codes.
|
||||
| buffer | pointer | バッファ
|
||||
| buffer_name | string | バッファ名
|
||||
| buffer_type | string | バッファ型 ("formatted" または "free")
|
||||
| y | string | 自由内容バッファの行番号 (≥ 0)、-1 はフォーマット済みバッファ用
|
||||
| date | string | 行の日付 (タイムスタンプ)
|
||||
| date_printed | string | 行が表示される日付 (タイムスタンプ).
|
||||
| str_time | string | 表示に使う日付、色コードを含めることも可能
|
||||
| tags | string | メッセージのタグ (文字列の最初と最後にコンマが追加されます)
|
||||
| displayed | string | "1" if displayed, "0" if line filtered.
|
||||
| notify_level | string | "0" = low level, "1" = message, "2" = private message, "3" = highlight
|
||||
| highlight | string | "1" if highlight, otherwise "0".
|
||||
| prefix | string | Prefix.
|
||||
| tg_prefix_nocolor | string | Prefix without color codes.
|
||||
| message | string | Message.
|
||||
| tg_message_nocolor | string | Message without color codes.
|
||||
| displayed | string | "1" の場合は表示、"0" の場合は非表示
|
||||
| notify_level | string | "0" = 低レベル、"1" = メッセージ、"2" = プライベートメッセージ、"3" = ハイライト
|
||||
| highlight | string | "1" の場合はハイライトあり、"0" の場合はハイライトなし
|
||||
| prefix | string | プレフィックス
|
||||
| tg_prefix_nocolor | string | 色コードを含まないプレフィックス
|
||||
| message | string | メッセージ
|
||||
| tg_message_nocolor | string | 色コードを含まないメッセージ
|
||||
|===
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Variables set using tags in message:
|
||||
メッセージにつけられたタグに関する変数:
|
||||
|
||||
[width="100%",cols="3m,2,14",options="header"]
|
||||
|===
|
||||
|
@ -3949,8 +3941,7 @@ Variables set using tags in message:
|
|||
| tg_message_nocolor | string | 色コードを削除したメッセージ
|
||||
|===
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Variables set using tags in message:
|
||||
メッセージにつけられたタグに関する変数:
|
||||
|
||||
[width="100%",cols="3m,2,14",options="header"]
|
||||
|===
|
||||
|
|
18
po/ja.po
18
po/ja.po
|
@ -21,7 +21,7 @@ msgstr ""
|
|||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
|
||||
"PO-Revision-Date: 2018-07-12 09:00+0900\n"
|
||||
"PO-Revision-Date: 2018-08-19 09:00+0900\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
"translation/ja_JP>\n"
|
||||
|
@ -155,7 +155,6 @@ msgstr ""
|
|||
msgid "Usage: %s [option...] [plugin:option...]\n"
|
||||
msgstr "使い方: %s [オプション...] [プラグイン:オプション...]\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
|
@ -184,6 +183,9 @@ msgstr ""
|
|||
" -h, --help このヘルプを表示\n"
|
||||
" -l, --license WeeChat ライセンスを表示\n"
|
||||
" -p, --no-plugin 起動時にプラグインをロードしない\n"
|
||||
" -P, --plugins <plugins> 指定したプラグインのみを起動時にロードする\n"
|
||||
" (/help weechat.plugin.autoload を参照してくださ"
|
||||
"い)\n"
|
||||
" -r, --run-command <cmd> 起動後にコマンドを実行\n"
|
||||
" (複数のコマンドを実行するには各コマンドをセミコロ"
|
||||
"ンで区切って下さい)\n"
|
||||
|
@ -12894,9 +12896,8 @@ msgstr "トリガモニタ (フィルタ: %s) | 入力: q=閉じる、words=フ
|
|||
msgid "no variable"
|
||||
msgstr "変数がありません"
|
||||
|
||||
#, fuzzy
|
||||
msgid "creating variable"
|
||||
msgstr "読み込み - 変数"
|
||||
msgstr "変数を作成中"
|
||||
|
||||
#, c-format
|
||||
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
|
||||
|
@ -13068,7 +13069,6 @@ msgstr ""
|
|||
"<name>|-all [<name>...] || show <name> || del <name>|-all [<name>...] || "
|
||||
"restore <name> [<name>...] || default -yes || monitor [<filter>]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list triggers (without argument, this list is displayed)\n"
|
||||
" listfull: list triggers with detailed info for each trigger\n"
|
||||
|
@ -13165,12 +13165,14 @@ msgstr ""
|
|||
" addoff: トリガを追加 (無効状態で)\n"
|
||||
" addreplace: 追加または存在するトリガを置換\n"
|
||||
" name: トリガの名前\n"
|
||||
" hook: signal、hsignal、modifier、print、command、command_run、timer、"
|
||||
"config、focus\n"
|
||||
" hook: signal、hsignal、modifier、line、print、command、command_run、"
|
||||
"timer、config、focus\n"
|
||||
" arguments: フックの引数、フックの種類に依存 (セミコロンで区切る):\n"
|
||||
" signal: シグナルの名前 (必須)\n"
|
||||
" hsignal: hsignal の名前 (必須)\n"
|
||||
" modifier: modifier の名前 (必須)\n"
|
||||
" line: バッファ型 (\"formatted\"、\"free\"、\"*\")、バッファマス"
|
||||
"クおよびタグのリスト\n"
|
||||
" print: バッファ、タグ、メッセージ、色の削除\n"
|
||||
" command: コマンド (必須)、説明、引数、引数の説明、補完\n"
|
||||
" command_run: コマンド (必須)\n"
|
||||
|
@ -13218,7 +13220,7 @@ msgstr ""
|
|||
" 1. 条件を確認; 偽の場合、終了\n"
|
||||
" 2. POSIX 拡張正規表現を使ってテキストを置換 (トリガに定義されている場合)\n"
|
||||
" 3. コマンドを実行 (トリガに定義されている場合)\n"
|
||||
" 4. リターンコードを返して終了 (modifier と focus を除く)\n"
|
||||
" 4. リターンコードを返して終了 (modifier、line、focus を除く)\n"
|
||||
" 5. トリガ実行後の処遇を適用\n"
|
||||
"\n"
|
||||
"例 (/trigger listdefault でデフォルトトリガを見ることができます):\n"
|
||||
|
|
Loading…
Reference in New Issue