Skip to content

Commit dd655cc

Browse files
authored
Merge pull request #1941 from h-east/update-builtin
Update builtin.{txt,jax}
2 parents 36f28e5 + fd3a76a commit dd655cc

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

doc/builtin.jax

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ mkdir({name} [, {flags} [, {prot}]])
444444
mode([{expr}]) 文字列 現在の編集モード
445445
mzeval({expr}) 任意 |MzScheme| の式を評価する
446446
nextnonblank({lnum}) 数値 {lnum}行目以降で空行でない行の行番号
447+
ngettext({single}, {plural}, {number}[, {domain}])
448+
文字列 {number} に基づいてテキストを翻訳する
447449
nr2char({expr} [, {utf8}]) 文字列 ASCII/UTF-8コード{expr}で示される文字
448450
or({expr}, {expr}) 数値 ビット論理和
449451
pathshorten({expr} [, {len}]) 文字列 path内の短縮したディレクトリ名
@@ -7579,6 +7581,19 @@ nextnonblank({lnum}) *nextnonblank()*
75797581
<
75807582
戻り値の型: |Number|
75817583

7584+
ngettext({single}, {plural}, {number}[, {domain}) *ngettext()*
7585+
言語の複数形の規則に基づいて、メッセージの正しい値を含む文字列
7586+
を返す。例: >
7587+
ngettext("File", "Files", 2) # "Files" を返す
7588+
<
7589+
|method| としても使用できる: >
7590+
1->ngettext("File", "Files") # "File" を返す
7591+
<
7592+
ドメインパラメータの詳細については、|gettext()| を参照。
7593+
7594+
戻り値の型: |String|
7595+
7596+
75827597
nr2char({expr} [, {utf8}]) *nr2char()*
75837598
コード{expr}で表される1文字からなる文字列を返す。例: >
75847599
nr2char(64) "@"を返す

en/builtin.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ mkdir({name} [, {flags} [, {prot}]])
416416
mode([{expr}]) String current editing mode
417417
mzeval({expr}) any evaluate |MzScheme| expression
418418
nextnonblank({lnum}) Number line nr of non-blank line >= {lnum}
419+
ngettext({single}, {plural}, {number}[, {domain}])
420+
String translate text based on {number}
419421
nr2char({expr} [, {utf8}]) String single char with ASCII/UTF-8 value {expr}
420422
or({expr}, {expr}) Number bitwise OR
421423
pathshorten({expr} [, {len}]) String shorten directory names in a path
@@ -7687,6 +7689,20 @@ nextnonblank({lnum}) *nextnonblank()*
76877689
Return type: |Number|
76887690

76897691

7692+
ngettext({single}, {plural}, {number}[, {domain}) *ngettext()*
7693+
Return a string that contains the correct value for a
7694+
message based on the rules for plural form(s) in
7695+
a language. Examples: >
7696+
ngettext("File", "Files", 2) # returns "Files"
7697+
<
7698+
Can be used as a |method|: >
7699+
1->ngettext("File", "Files") # returns "File"
7700+
<
7701+
See |gettext()| for information on the domain parameter.
7702+
7703+
Return type: |String|
7704+
7705+
76907706
nr2char({expr} [, {utf8}]) *nr2char()*
76917707
Return a string with a single character, which has the number
76927708
value {expr}. Examples: >

0 commit comments

Comments
 (0)