From 5a7d437d86dcbf6bf1ee28107418261e5674c928 Mon Sep 17 00:00:00 2001 From: "AYANOKOUZI, Ryuunosuke" Date: Sat, 25 Oct 2014 09:39:37 +0900 Subject: [PATCH] core: update Japanese translations --- doc/ja/weechat_dev.ja.asciidoc | 3 +- doc/ja/weechat_plugin_api.ja.asciidoc | 106 ++++++++++++-------------- po/ja.po | 74 +++++++++--------- 3 files changed, 86 insertions(+), 97 deletions(-) diff --git a/doc/ja/weechat_dev.ja.asciidoc b/doc/ja/weechat_dev.ja.asciidoc index b312de974..e93ca3bc5 100644 --- a/doc/ja/weechat_dev.ja.asciidoc +++ b/doc/ja/weechat_dev.ja.asciidoc @@ -92,8 +92,7 @@ WeeChat "core" は以下のディレクトリに配置されています: | パス/ファイル名 | 説明 | core/ | コア関数: エントリポイント、内部構造体 | weechat.c | 主要関数: コマンドラインオプション、起動 -// TRANSLATION MISSING -| wee-arraylist.c | Array lists +| wee-arraylist.c | 配列リスト | wee-backtrace.c | クラッシュした際にバックトレースを表示 | wee-command.c | WeeChat コアコマンド | wee-completion.c | デフォルト補完 diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index 75bac3864..ea2e38814 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -854,7 +854,7 @@ int match5 = weechat_string_match ("abcdef", "*b*d*", 0); /* == 1 */ # プロトタイプ match = weechat.string_match(string, mask, case_sensitive) -# 例s +# 例 match1 = weechat.string_match("abcdef", "abc*", 0) # 1 match2 = weechat.string_match("abcdef", "*dd*", 0) # 0 match3 = weechat.string_match("abcdef", "*def", 0) # 1 @@ -1771,7 +1771,7 @@ int command_char2 = weechat_string_is_command_char ("test"); /* == 0 */ # プロトタイプ is_cmdchar = weechat.string_is_command_char(string) -# 例s +# 例 command_char1 = weechat.string_is_command_char("/test") # == 1 command_char2 = weechat.string_is_command_char("test") # == 0 ---- @@ -1814,7 +1814,7 @@ const char *str3 = weechat_string_input_for_buffer ("//test"); /* "/test" */ # プロトタイプ str = weechat.string_input_for_buffer(string) -# 例s +# 例 str1 = weechat.string_input_for_buffer("test") # "test" str2 = weechat.string_input_for_buffer("/test") # "" str3 = weechat.string_input_for_buffer("//test") # "/test" @@ -1822,12 +1822,10 @@ str3 = weechat.string_input_for_buffer("//test") # "/test" ==== weechat_string_eval_expression -// TRANSLATION MISSING -_WeeChat ≥ 0.4.0, updated in 0.4.2 and 1.1._ +_WeeChat バージョン 0.4.0 以上で利用可、バージョン 0.4.2 と 1.1 で更新。_ -// TRANSLATION MISSING -Evaluate an expression and return result as a string. -Special variables with format `${variable}` are expanded (see table below). +式を評価して文字列として返す。`${variable}` +という書式で書かれた特殊変数は展開されます (以下の表を参照)。 [NOTE] バージョン 1.0 以降、入れ子変数を使えるようになりました、例: @@ -1845,16 +1843,14 @@ char *weechat_string_eval_expression (const char *expr, 引数: -// TRANSLATION MISSING -* 'expr': 評価する式 (see table below) +* 'expr': 評価する式 (以下の表を参照) * 'pointers': ポインタを含むハッシュテーブル (キーは文字列、値はポインタ); (現在のウィンドウやバッファへのポインタを持つ) ハッシュテーブルが "window" と "buffer" ポインタを持たない場合はこれらは自動的に追加される (NULL でも可): -// TRANSLATION MISSING -** 'regex': pointer to a regular expression ('regex_t' structure) compiled with - WeeChat function <<_weechat_string_regcomp,weechat_string_regcomp>> or - regcomp (see `man regcomp`); this option is similar to 'regex' in hashtable - 'options' (below), but is used for better performance +** 'regex': WeeChat 関数 <<_weechat_string_regcomp,weechat_string_regcomp>> + または regcomp (`man regcomp` を参照) でコンパイル済みの正規表現へのポインタ + ('regex_t' 構造体); このオプションは (以下の) ハッシュテーブル構造体 'options' + メンバの 'regex' とよく似ていますが、より高速に動作します * 'extra_vars': 展開される追加変数 (NULL でも可) * 'options': いくつかのオプションを含むハッシュテーブル (キーと値は必ず文字列) (NULL でも可): @@ -1864,84 +1860,80 @@ char *weechat_string_eval_expression (const char *expr, 演算子と括弧が使われます、結果はブール値 ("0" または "1") です ** 'prefix': 置換する変数のプレフィックス (デフォルト: "${") ** 'suffix': 置換する変数のサフィックス (デフォルト: "}") -// TRANSLATION MISSING -** 'regex': a regex used to replace text in 'expr' (which is then not - evaluated) -// TRANSLATION MISSING -** 'regex_replace': the replacement text to use with 'regex', to replace - text in 'expr' (the 'regex_replace' is evaluated on each match of 'regex' - against 'expr', until no match is found) +** 'regex': 'expr' のテキストを置換する正規表現 + (この場合 'expr' は評価されません) +** 'regex_replace': 'regex' と一緒に使われる置換テキスト、'expr' + に含まれるテキストを置換する ('regex_replace' は、'expr' 内で + 'regex' 引数にマッチする部分が見つからなくなるまで、毎回評価されます) 戻り値: * 評価された式 (使用後には必ず "free" を呼び出して領域を開放してください)、失敗した場合は NULL (式が不正な場合やメモリが不足している場合) -// TRANSLATION MISSING -List of variables expanded in expression (by order of priority, from first -expanded to last): +式中で展開される変数のリスト +(優先度の高い順、展開順の早いものを上に遅いものを下に): -// TRANSLATION MISSING [width="100%",cols="2,8,3,3",options="header"] |=== -| Format | Description | Examples | Results +| フォーマット | 説明 | 例 | 結果 -| `${name}` | Variable `name` from hashtable 'extra_vars' | +| `${name}` | 'extra_vars' の変数 `name` の値に展開 | `${name}` | `value` | `${esc:xxx}` + - `${\xxx}` | String with escaped chars | + `${\xxx}` | エスケープ文字を含む文字列 | `${esc:prefix\tmessage}` + `${\ua9}` | `prefixmessage` + `©` | `${hide:x,value}` | - String with hidden chars (all chars in `value` replaced `x`) | + 隠す文字を含むテキスト (`value` に含まれる文字をすべて `x` で置換) | `${hide:*,password}` | `********` | `${re:N}` | - Regex captured group: 0 = whole string matching, 1 to 99 = group captured, - `+` = last group captured | + 正規表現のキャプチャグループ: 0 = マッチするすべての文字列、1 から 99 = + キャプチャされたグループ、`+` = 最後にキャプチャされたグループ | `${re:1}` | `test` | `${color:name}` | - WeeChat color code (the name of color has optional attributes) | + WeeChat 色コード (色名部分はオプション属性をとることも可能です) | `${color:red}red text` + `${color:*214}bold orange text` | - `red text` (in red) + - `bold orange text` (in bold orange) + `red text` (赤色で) + + `bold orange text` (太字オレンジ色で) | `${info:name}` + `${indo:name,arguments}` | - Info from WeeChat or a plugin, see function - <<_weechat_info_get,weechat_info_get>> | + WeeChat またはプラグインのインフォ、<<_weechat_info_get,weechat_info_get>> + を参照 | `${info:version}` + `${info:irc_nick_color_name,foo}` | `1.0` + `lightblue` | `${sec.data.name}` | - Value of the secured data `name` | + セキュアデータ `name` の値 | `${sec.data.freenode_pass}` | `my_password` | `${file.section.option}` | - Value of the option | + オプションの値 | `${weechat.look.buffer_time_format}` | `%H:%M:%S` | `${name}` | - Value of local variable `name` in buffer | + バッファに対するローカル変数 `name` の値 | `${nick}` | `FlashCode` | `${hdata.var1.var2...}` + `${hdata[list].var1.var2...}` | - Hdata value (pointers `window` and `buffer` are set by default with current - window/buffer) | + hdata の値 (`window` と `buffer` + ポインタはデフォルトで現在のウィンドウ/バッファに設定されます) | `${buffer[gui_buffers].full_name}` + `${window.buffer.number}` | `core.weechat` + @@ -1950,10 +1942,9 @@ expanded to last): C 言語での使用例: -// TRANSLATION MISSING [source,C] ---- -/* conditions */ +/* 条件式の評価 */ struct t_hashtable *options1 = weechat_hashtable_new (8, WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING, @@ -1963,21 +1954,21 @@ weechat_hashtable_set (options1, "type", "condition"); char *str1 = weechat_string_eval_expression ("${window.win_width} > 100", NULL, NULL, options1); /* "1" */ char *str2 = weechat_string_eval_expression ("abc =~ def", NULL, NULL, options1); /* "0" */ -/* simple expression */ +/* 単純な展開 */ char *str3 = weechat_string_eval_expression ("${buffer.full_name}", NULL, NULL, NULL); /* "core.weechat" */ -/* replace with regex */ +/* 正規表現を用いた置換 */ struct t_hashtable *options2 = weechat_hashtable_new (8, WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING, NULL, NULL); -/* add brackets around URLs */ +/* URL に関するブラックリストを追加 */ weechat_hashtable_set (options2, "regex", "\\w+://\\S+"); weechat_hashtable_set (options2, "regex_replace", "[ ${re:0} ]"); char *str4 = weechat_string_eval_expression ("test: http://weechat.org", NULL, NULL, NULL); /* "test: [ http://weechat.org ]" */ -/* hide passwords */ +/* パスワードを隠す */ weechat_hashtable_set (options2, "regex", "(password=)(\\S+)"); weechat_hashtable_set (options2, "regex_replace", "${re:1}${hide:*,${re:2}}"); char *str5 = weechat_string_eval_expression ("password=abc password=def", NULL, NULL, NULL); /* "password=*** password=***" */ @@ -1985,29 +1976,28 @@ char *str5 = weechat_string_eval_expression ("password=abc password=def", NULL, スクリプト (Python) での使用例: -// TRANSLATION MISSING [source,python] ---- # プロトタイプ str = weechat.string_eval_expression(expr, pointers, extra_vars, options) -# 例s +# 例 -# conditions +# 条件式の評価 str1 = weechat.string_eval_expression("${window.win_width} > 100", {}, {}, {"type": "condition"}) # "1" str2 = weechat.string_eval_expression("abc =~ def", {}, {}, {"type": "condition"}) # "0" -# simple expression +# 単純な展開 str3 = weechat.string_eval_expression("${buffer.full_name}", {}, {}, {}) # "core.weechat" -# replace with regex: add brackets around URLs +# 正規表現を用いた置換: URL に関するブラックリストを追加 options = { "regex": "\\w+://\\S+", "regex_replace": "[ ${re:0} ]", } str4 = weechat.string_eval_expression("test: http://weechat.org", {}, {}, options) # "test: [ http://weechat.org ]" -# replace with regex: hide passwords +# 正規表現を用いた置換: パスワードを隠す options = { "regex": "(password=)(\\S+)", "regex_replace": "${re:1}${hide:*,${re:2}}", @@ -6398,7 +6388,7 @@ weechat_key_unbind ("mouse", "area:chat(plugin.buffer)"); # プロトタイプ num_keys = weechat.key_unbind(context, key) -# 例s +# 例 # remove a single key weechat.key_unbind("mouse", "@chat(plugin.buffer):button1") @@ -10798,7 +10788,7 @@ weechat_buffer_set (my_buffer, "localvar_del_toto", NULL); # プロトタイプ weechat.buffer_set(buffer, property, value) -# 例s +# 例 # disable hotlist (for all buffers) weechat.buffer_set("", "hotlist", "-") @@ -11786,7 +11776,7 @@ weechat_nicklist_group_set (buffer, group, "visible", "0"); # プロトタイプ weechat.nicklist_group_set(buffer, group, property, value) -# 例s +# 例 # change group color to "bar_fg" weechat.nicklist_group_set(buffer, group, "color", "bar_fg") @@ -12001,7 +11991,7 @@ weechat_nicklist_nick_set (buffer, nick, "visible", "0"); # プロトタイプ weechat.nicklist_nick_set(buffer, nick, property, value) -# 例s +# 例 # change nick color to cyan weechat.nicklist_nick_set(buffer, nick, "color", "cyan") diff --git a/po/ja.po b/po/ja.po index f24f5b54e..0974e4536 100644 --- a/po/ja.po +++ b/po/ja.po @@ -21,7 +21,7 @@ msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" "POT-Creation-Date: 2014-10-16 20:40+0200\n" -"PO-Revision-Date: 2014-09-20 23:10+0900\n" +"PO-Revision-Date: 2014-10-25 08:29+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language: ja\n" @@ -40,11 +40,11 @@ msgid "max chars" msgstr "最大文字数" msgid "" -"a WeeChat color name (default, black, (dark)gray, white, (light)red, " -"(light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a " -"terminal color number or an alias; attributes are allowed before color (for " -"text color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" " -"for italic, \"_\" for underline" +"a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)" +"green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal " +"color number or an alias; attributes are allowed before color (for text " +"color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" for " +"italic, \"_\" for underline" msgstr "" "WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、" "brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号ま" @@ -1407,7 +1407,6 @@ msgstr "式を評価" msgid "[-n] || [-n] -c " msgstr "[-n] || [-n] -c " -#, fuzzy msgid "" " -n: display result without sending it to buffer (debug mode)\n" " -c: evaluate as condition: use operators and parentheses, return a " @@ -1509,11 +1508,12 @@ msgstr "" "に従います:\n" " 1. エスケープ文字を含む文字列 (フォーマット: \"esc:xxx\" または \"\\xxx" "\")\n" -" 2. 色 (フォーマット: \"color:xxx\")\n" -" 3. 情報 (フォーマット: \"info:name,arguments\"、arguments は任意)\n" -" 4. オプション (フォーマット: \"file.section.option\")\n" -" 5. バッファのローカル変数\n" -" 6. hdata の名前/変数 (値は自動的に文字列に変換されます)、デフォルトでは " +" 2. 隠す文字を含む文字列 (フォーマット: \"hide:char,string\")\n" +" 3. 色 (フォーマット: \"color:xxx\")\n" +" 4. 情報 (フォーマット: \"info:name,arguments\"、arguments は任意)\n" +" 5. オプション (フォーマット: \"file.section.option\")\n" +" 6. バッファのローカル変数\n" +" 7. hdata の名前/変数 (値は自動的に文字列に変換されます)、デフォルトでは " "\"window\" と \"buffer\" は現在のウィンドウ/バッファを指します。\n" "hdata のフォーマットは以下の 1 つです:\n" " hdata.var1.var2...: hdata (ポインタは既知) で始まり、1 個ずつ変数を続ける " @@ -1527,23 +1527,24 @@ msgstr "" "\"weechat_hdata_get\" 関数を参照してください。\n" "\n" "例 (単純な文字列):\n" -" /eval -n ${info:version} ==> 0.4.3\n" -" /eval -n ${weechat.look.scroll_amount} ==> 3\n" -" /eval -n ${window} ==> 0x2549aa0\n" -" /eval -n ${window.buffer} ==> 0x2549320\n" -" /eval -n ${window.buffer.full_name} ==> core.weechat\n" -" /eval -n ${window.buffer.number} ==> 1\n" -" /eval -n ${\\t} ==> \n" +" /eval -n ${info:version} ==> 0.4.3\n" +" /eval -n ${weechat.look.scroll_amount} ==> 3\n" +" /eval -n ${window} ==> 0x2549aa0\n" +" /eval -n ${window.buffer} ==> 0x2549320\n" +" /eval -n ${window.buffer.full_name} ==> core.weechat\n" +" /eval -n ${window.buffer.number} ==> 1\n" +" /eval -n ${\\t} ==> \n" +" /eval -n ${hide:-,${relay.network.password}} ==> --------\n" "\n" "例 (条件):\n" -" /eval -n -c ${window.buffer.number} > 2 ==> 0\n" -" /eval -n -c ${window.win_width} > 100 ==> 1\n" -" /eval -n -c (8 > 12) || (5 > 2) ==> 1\n" -" /eval -n -c (8 > 12) && (5 > 2) ==> 0\n" -" /eval -n -c abcd =~ ^ABC ==> 1\n" -" /eval -n -c abcd =~ (?-i)^ABC ==> 0\n" -" /eval -n -c abcd =~ (?-i)^abc ==> 1\n" -" /eval -n -c abcd !~ abc ==> 0" +" /eval -n -c ${window.buffer.number} > 2 ==> 0\n" +" /eval -n -c ${window.win_width} > 100 ==> 1\n" +" /eval -n -c (8 > 12) || (5 > 2) ==> 1\n" +" /eval -n -c (8 > 12) && (5 > 2) ==> 0\n" +" /eval -n -c abcd =~ ^ABC ==> 1\n" +" /eval -n -c abcd =~ (?-i)^ABC ==> 0\n" +" /eval -n -c abcd =~ (?-i)^abc ==> 1\n" +" /eval -n -c abcd !~ abc ==> 0" msgid "" "filter messages in buffers, to hide/show them according to tags or regex" @@ -5917,8 +5918,8 @@ msgstr "" " - 内部サーバ名 (/server add で作成されたもの、利用推奨)\n" " - ホスト名/ポート番号又は IP アドレス/ポート番号、デフォルトの" "ポート番号は 6667\n" -" - 次のフォーマットに従う URL: irc[6][s]://[nickname[:" -"password]@]irc.example.org[:port][/#channel1][,#channel2[...]]\n" +" - 次のフォーマットに従う URL: irc[6][s]://[nickname[:password]@]" +"irc.example.org[:port][/#channel1][,#channel2[...]]\n" " 注意: アドレス/IP/URL を指定した場合、サーバを一時的に作ります " "(保存しません)、/help irc.look.temporary_servers を参照してください。\n" " option: サーバに関するオプション (ブール型オプションでは、value は無視さ" @@ -9846,15 +9847,14 @@ msgstr "IRC チャンネルごとのバックログの最大行数 (0 = 制限 msgid "display backlog starting from last client disconnect" msgstr "最後にクライアントを切断した以降のバックログを表示" -#, fuzzy msgid "" "comma-separated list of messages tags which are displayed in backlog per IRC " "channel (supported tags: \"irc_join\", \"irc_part\", \"irc_quit\", \"irc_nick" "\", \"irc_privmsg\"), \"*\" = all supported tags" msgstr "" -"IRC チャンネルごとのバックログに表示するメッセージのタグ (利用可能なタグ: " -"\"irc_join\"、\"irc_part\"、\"irc_quit\"、\"irc_nick\"、\"irc_privmsg\")、\"*" -"\" = 利用可能な全てのタグ" +"IRC チャンネルごとのバックログに表示するメッセージタグのコンマ区切りリスト " +"(利用可能なタグ: \"irc_join\"、\"irc_part\"、\"irc_quit\"、\"irc_nick" +"\"、\"irc_privmsg\")、\"*\" = 利用可能な全てのタグ" msgid "" "format for time in backlog messages (see man strftime for format) (not used " @@ -10826,8 +10826,8 @@ msgid "" "Examples (you can also look at default triggers with /trigger listdefault):\n" " add text attributes *bold*, _underline_ and /italic/ (only in user " "messages):\n" -" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==" -"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" +" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*" +"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" "underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-" "italic}/\"\n" " hide nicklist bar on small terminals:\n" @@ -10903,8 +10903,8 @@ msgstr "" "\n" "例 (/trigger listdefault でデフォルトトリガを見ることができます):\n" " テキスト属性 *太字*、_下線_、/イタリック/ を追加 (ユーザメッセージのみ):\n" -" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==" -"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" +" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*" +"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" "underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-" "italic}/\"\n" " 狭い端末ではニックネームリストバーを隠す:\n"