summaryrefslogtreecommitdiff
path: root/locale/en-US
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-06-03 11:13:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-06-03 11:13:57 +0800
commitc21f410d16d03a24464e21212cb7dfe8f7787746 (patch)
treecff1cb28dd87d55446b3d934ac438c9a53551d68 /locale/en-US
parent2d5c2cc1bfb64cc07ec72512522eedb07a8a9180 (diff)
downloadlua-language-server-c21f410d16d03a24464e21212cb7dfe8f7787746.zip
API描述内部的链接使用本地文档
Diffstat (limited to 'locale/en-US')
-rw-r--r--locale/en-US/libs/@lua/string.lni10
-rw-r--r--locale/en-US/script.lni22
2 files changed, 17 insertions, 15 deletions
diff --git a/locale/en-US/libs/@lua/string.lni b/locale/en-US/libs/@lua/string.lni
index 2055b16b..4d0587c6 100644
--- a/locale/en-US/libs/@lua/string.lni
+++ b/locale/en-US/libs/@lua/string.lni
@@ -8,7 +8,7 @@ description = 'Returns a string with length equal to the number of arguments, in
description = 'Returns a string containing a binary representation (a *binary chunk*) of the given function.'
[find]
-description = 'Looks for the first match of [`pattern`](https://www.lua.org/manual/5.3/manual.html#6.4.1) in the string.'
+description = 'Looks for the first match of [`pattern`](doc:6.4.1) in the string.'
[format]
description = 'Returns a formatted version of its variable number of arguments following the description given in its first argument.'
@@ -36,7 +36,7 @@ end
]]
[gsub]
-description = 'Returns a copy of s in which all (or the first `n`, if given) occurrences of the [`pattern`](https://www.lua.org/manual/5.3/manual.html#6.4.1) have been replaced by a replacement string specified by `repl`.'
+description = 'Returns a copy of s in which all (or the first `n`, if given) occurrences of the [`pattern`](doc:6.4.1) have been replaced by a replacement string specified by `repl`.'
[len]
description = 'Returns its length.'
@@ -45,10 +45,10 @@ description = 'Returns its length.'
description = 'Returns a copy of this string with all uppercase letters changed to lowercase.'
[match]
-description = 'Looks for the first match of [`pattern`](https://www.lua.org/manual/5.3/manual.html#6.4.1) in the string.'
+description = 'Looks for the first match of [`pattern`](doc:6.4.1) in the string.'
[pack]
-description = 'Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string [`fmt`](https://www.lua.org/manual/5.3/manual.html#6.4.2).'
+description = 'Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string [`fmt`](doc:6.4.2).'
[packsize]
description = 'Returns the size of a string resulting from `string.pack` with the given format.'
@@ -66,7 +66,7 @@ description = 'Returns a string that is the string `s` reversed.'
description = 'Returns the substring of the string that starts at `i` and continues until `j`.'
[unpack]
-description = 'Returns the values packed in string according to the format string [`fmt`](https://www.lua.org/manual/5.3/manual.html#6.4.2).'
+description = 'Returns the values packed in string according to the format string [`fmt`](doc:6.4.2).'
[upper]
description = 'Returns a copy of this string with all lowercase letters changed to uppercase.'
diff --git a/locale/en-US/script.lni b/locale/en-US/script.lni
index 1c151197..fd049d7f 100644
--- a/locale/en-US/script.lni
+++ b/locale/en-US/script.lni
@@ -84,18 +84,20 @@ PARSER_MISS_SEP_IN_TABLE = 'Miss symbol `,` or `;` .'
SYMBOL_ANONYMOUS = '<Anonymous>'
-HOVER_DOCUMENT_LUA51 = '[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-{})'
-HOVER_DOCUMENT_LUA52 = '[View documents](http://www.lua.org/manual/5.2/manual.html#pdf-{})'
-HOVER_DOCUMENT_LUA53 = '[View documents](http://www.lua.org/manual/5.3/manual.html#pdf-{})'
-HOVER_DOCUMENT_LUA54 = '[View documents](http://www.lua.org/manual/5.4/manual.html#pdf-{})'
-HOVER_DOCUMENT_LUAJIT = '[View documents](http://www.lua.org/manual/5.1/manual.html#pdf-{})'
+HOVER_VIEW_DOCUMENTS = 'View documents'
+HOVER_DOCUMENT_LUA51 = 'http://www.lua.org/manual/5.1/manual.html#{}'
+HOVER_DOCUMENT_LUA52 = 'http://www.lua.org/manual/5.2/manual.html#{}'
+HOVER_DOCUMENT_LUA53 = 'http://www.lua.org/manual/5.3/manual.html#{}'
+HOVER_DOCUMENT_LUA54 = 'http://www.lua.org/manual/5.4/manual.html#{}'
+HOVER_DOCUMENT_LUAJIT = 'http://www.lua.org/manual/5.1/manual.html#{}'
-HOVER_NATIVE_DOCUMENT_LUA51 = '[View documents](command:extension.lua.doc?["en-us/51/manual.html/pdf-{}"])'
-HOVER_NATIVE_DOCUMENT_LUA52 = '[View documents](command:extension.lua.doc?["en-us/52/manual.html/pdf-{}"])'
-HOVER_NATIVE_DOCUMENT_LUA53 = '[View documents](command:extension.lua.doc?["en-us/53/manual.html/pdf-{}"])'
-HOVER_NATIVE_DOCUMENT_LUA54 = '[View documents](command:extension.lua.doc?["en-us/54/manual.html/pdf-{}"])'
-HOVER_NATIVE_DOCUMENT_LUAJIT = '[View documents](command:extension.lua.doc?["en-us/51/manual.html/pdf-{}"])'
+
+HOVER_NATIVE_DOCUMENT_LUA51 = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
+HOVER_NATIVE_DOCUMENT_LUA52 = 'command:extension.lua.doc?["en-us/52/manual.html/{}"]'
+HOVER_NATIVE_DOCUMENT_LUA53 = 'command:extension.lua.doc?["en-us/53/manual.html/{}"]'
+HOVER_NATIVE_DOCUMENT_LUA54 = 'command:extension.lua.doc?["en-us/54/manual.html/{}"]'
+HOVER_NATIVE_DOCUMENT_LUAJIT = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]'
HOVER_MULTI_PROTOTYPE = '({} prototypes)'