Skip to content

Commit 4c6f344

Browse files
committed
Update builtin.{txt,jax}
1 parent d034ec3 commit 4c6f344

File tree

2 files changed

+48
-18
lines changed

2 files changed

+48
-18
lines changed

doc/builtin.jax

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Jun 17
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Jun 23
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -28,8 +28,8 @@ acos({expr}) 浮動小数点数 {expr}のアークコサイン
2828
add({object}, {item}) リスト/Blob {item}を{object}に追加する
2929
and({expr}, {expr}) 数値 ビット論理積
3030
append({lnum}, {text}) 数値 {lnum}行目に{text}を付け加える
31-
appendbufline({expr}, {lnum}, {text})
32-
数値 バッファ{expr}の{lnum}行目に{text}を付
31+
appendbufline({buf}, {lnum}, {text})
32+
数値 バッファ{buf}の{lnum}行目に{text}を付
3333
け加える
3434
argc([{winid}]) 数値 引数内のファイルの数
3535
argidx() 数値 引数リスト内の現在のインデックス
@@ -73,6 +73,10 @@ balloon_gettext() 文字列 バルーン内のカレントテキストを得る
7373
balloon_show({expr}) なし {expr} をバルーン内に表示
7474
balloon_split({msg}) リスト {msg} をバルーンで使われるように分割す
7575
76+
bindtextdomain({package}, {path})
77+
なし bind text domain to specied path
78+
なし 指定されたパスにテキストドメインをバイ
79+
ンドする
7680
blob2list({blob}) リスト {blob} を数値のリストに変換する
7781
browse({save}, {title}, {initdir}, {default})
7882
文字列 ファイル選択ダイアログを表示
@@ -293,7 +297,8 @@ gettabvar({nr}, {varname} [, {def}])
293297
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
294298
任意 タブページ{tabnr}の{winnr}の{name}
295299
gettagstack([{nr}]) 辞書 ウィンドウ{nr}のタグスタックを取得
296-
gettext({text}) 文字列 {text} の翻訳の検索
300+
gettext({text} [, {package}])
301+
文字列 {text} の翻訳の検索
297302
getwininfo([{winid}]) リスト 各ウィンドウに関する情報のリスト
298303
getwinpos([{timeout}]) リスト Vim ウィンドウのピクセルでの X および
299304
Y 座標
@@ -469,6 +474,8 @@ popup_move({id}, {options}) なし ポップアップウィンドウ {id} の位
469474
セットする
470475
popup_notification({what}, {options})
471476
数値 ポップアップウィンドウの通知を作成する
477+
popup_setbuf({id}, {buf}) 真偽値 ポップアップ ウィンドウ {id} のバッファ
478+
を設定する
472479
popup_setoptions({id}, {options})
473480
なし ポップアップウィンドウ {id} のオプショ
474481
ンを設定する
@@ -572,8 +579,8 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
572579
server2client({clientid}, {string})
573580
数値 返信文字列を送信する
574581
serverlist() 文字列 利用可能なサーバーのリストを取得
575-
setbufline({expr}, {lnum}, {text})
576-
数値 バッファ {expr} の {lnum} 行目に {text}
582+
setbufline({buf}, {lnum}, {text})
583+
数値 バッファ {buf} の {lnum} 行目に {text}
577584
を設定する
578585
setbufvar({buf}, {varname}, {val}) バッファ{buf}内の変数{varname}に{val}を
579586
セット
@@ -1284,6 +1291,12 @@ balloon_split({msg}) *balloon_split()*
12841291

12851292
戻り値の型: list<any> または list<string>
12861293

1294+
bindtextdomain({package}, {path}) *bindtextdomain()*
1295+
特定の {package} を {path} にバインドし、|gettext()| 関数を使っ
1296+
てパッケージの言語固有の翻訳を取得できるようにする。{path} は
1297+
翻訳のディレクトリ名である。|package-create| を参照。
1298+
1299+
戻り値の型: なし
12871300

12881301
blob2list({blob}) *blob2list()*
12891302
Blob {blob} の各バイトを数値として保持するリストを返す。例: >
@@ -2597,7 +2610,7 @@ execute({command} [, {silent}]) *execute()*
25972610
|method| としても使用できる: >
25982611
GetCommand()->execute()
25992612
<
2600-
戻り値の型: |Number|
2613+
戻り値の型: |String|
26012614

26022615

26032616
exepath({expr}) *exepath()*
@@ -4944,14 +4957,17 @@ gettagstack([{winnr}]) *gettagstack()*
49444957
戻り値の型: dict<any>
49454958

49464959

4947-
gettext({text}) *gettext()*
4960+
gettext({text} [, {package}]) *gettext()*
49484961
可能であれば文字列 {text} を翻訳する。
49494962
これは主に配布する Vim script で使う。
49504963
メッセージの翻訳を生成するときに {text} が xgettext によって抽
49514964
出され、翻訳者が .po ファイルで翻訳済みメッセージを追加でき
49524965
Vim は gettext() が呼ばれた時に翻訳を検索する。
49534966
{text} はダブルクォートの文字列が望しい、なぜなら xgettext は
49544967
シングルクォートの文字列でのエスケープを理解しないため。
4968+
{package} が指定されると、その特定のパッケージの翻訳が検索され
4969+
る。|bindtextdomain()| 関数を使用して翻訳を検索するパスを指定
4970+
する必要がある。
49554971

49564972
戻り値の型: |String|
49574973

en/builtin.txt

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2024 Jun 17
1+
*builtin.txt* For Vim version 9.1. Last change: 2024 Jun 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -28,9 +28,9 @@ acos({expr}) Float arc cosine of {expr}
2828
add({object}, {item}) List/Blob append {item} to {object}
2929
and({expr}, {expr}) Number bitwise AND
3030
append({lnum}, {text}) Number append {text} below line {lnum}
31-
appendbufline({expr}, {lnum}, {text})
31+
appendbufline({buf}, {lnum}, {text})
3232
Number append {text} below line {lnum}
33-
in buffer {expr}
33+
in buffer {buf}
3434
argc([{winid}]) Number number of files in the argument list
3535
argidx() Number current index in the argument list
3636
arglistid([{winnr} [, {tabnr}]]) Number argument list id
@@ -67,6 +67,8 @@ autocmd_get([{opts}]) List return a list of autocmds
6767
balloon_gettext() String current text in the balloon
6868
balloon_show({expr}) none show {expr} inside the balloon
6969
balloon_split({msg}) List split {msg} as used for a balloon
70+
bindtextdomain({package}, {path})
71+
none bind text domain to specied path
7072
blob2list({blob}) List convert {blob} into a list of numbers
7173
browse({save}, {title}, {initdir}, {default})
7274
String put up a file requester
@@ -153,8 +155,8 @@ diff_filler({lnum}) Number diff filler lines about {lnum}
153155
diff_hlID({lnum}, {col}) Number diff highlighting at {lnum}/{col}
154156
digraph_get({chars}) String get the |digraph| of {chars}
155157
digraph_getlist([{listall}]) List get all |digraph|s
156-
digraph_set({chars}, {digraph}) Boolean register |digraph|
157-
digraph_setlist({digraphlist}) Boolean register multiple |digraph|s
158+
digraph_set({chars}, {digraph}) Bool register |digraph|
159+
digraph_setlist({digraphlist}) Bool register multiple |digraph|s
158160
echoraw({expr}) none output {expr} as-is
159161
empty({expr}) Number |TRUE| if {expr} is empty
160162
environ() Dict return environment variables
@@ -277,7 +279,8 @@ gettabvar({nr}, {varname} [, {def}])
277279
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
278280
any {name} in {winnr} in tab page {tabnr}
279281
gettagstack([{nr}]) Dict get the tag stack of window {nr}
280-
gettext({text}) String lookup translation of {text}
282+
gettext({text} [, {package}])
283+
String lookup translation of {text}
281284
getwininfo([{winid}]) List list of info about each window
282285
getwinpos([{timeout}]) List X and Y coord in pixels of Vim window
283286
getwinposx() Number X coord in pixels of the Vim window
@@ -429,6 +432,7 @@ popup_menu({what}, {options}) Number create a popup window used as a menu
429432
popup_move({id}, {options}) none set position of popup window {id}
430433
popup_notification({what}, {options})
431434
Number create a notification popup window
435+
popup_setbuf({id}, {buf}) Bool set the buffer for the popup window {id}
432436
popup_setoptions({id}, {options})
433437
none set options for popup window {id}
434438
popup_settext({id}, {text}) none set the text of popup window {id}
@@ -525,9 +529,9 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
525529
server2client({clientid}, {string})
526530
Number send reply string
527531
serverlist() String get a list of available servers
528-
setbufline({expr}, {lnum}, {text})
532+
setbufline({buf}, {lnum}, {text})
529533
Number set line {lnum} to {text} in buffer
530-
{expr}
534+
{buf}
531535
setbufvar({buf}, {varname}, {val})
532536
none set {varname} in buffer {buf} to {val}
533537
setcellwidths({list}) none set character cell width overrides
@@ -1217,6 +1221,13 @@ balloon_split({msg}) *balloon_split()*
12171221

12181222
Return type: list<any> or list<string>
12191223

1224+
bindtextdomain({package}, {path}) *bindtextdomain()*
1225+
Bind a specific {package} to a {path} so that the
1226+
|gettext()| function can be used to get language-specific
1227+
translations for a package. {path} is the directory name
1228+
for the translations. See |package-create|.
1229+
1230+
Return type: none
12201231

12211232
blob2list({blob}) *blob2list()*
12221233
Return a List containing the number value of each byte in Blob
@@ -2579,7 +2590,7 @@ execute({command} [, {silent}]) *execute()*
25792590
Can also be used as a |method|: >
25802591
GetCommand()->execute()
25812592
<
2582-
Return type: |Number|
2593+
Return type: |String|
25832594

25842595

25852596
exepath({expr}) *exepath()*
@@ -4977,7 +4988,7 @@ gettagstack([{winnr}]) *gettagstack()*
49774988
Return type: dict<any>
49784989

49794990

4980-
gettext({text}) *gettext()*
4991+
gettext({text} [, {package}]) *gettext()*
49814992
Translate String {text} if possible.
49824993
This is mainly for use in the distributed Vim scripts. When
49834994
generating message translations the {text} is extracted by
@@ -4987,6 +4998,9 @@ gettext({text}) *gettext()*
49874998
For {text} double quoted strings are preferred, because
49884999
xgettext does not understand escaping in single quoted
49895000
strings.
5001+
When the {package} is specified, the translation is looked up
5002+
for that specific package. You need to specify the path to
5003+
look for translations with the |bindtextdomain()| function.
49905004

49915005
Return type: |String|
49925006

0 commit comments

Comments
 (0)