summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-22 03:18:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-22 03:18:35 +0800
commit7881d1a3d91b59d2dd8c28a72453e0e6c44a902f (patch)
tree6c2466f3676d813ac9db469815f4af9834d1711a /locale
parentb85ff57a116fb252a0da35e525264e0940af88c7 (diff)
downloadlua-language-server-7881d1a3d91b59d2dd8c28a72453e0e6c44a902f.zip
new diagnostic `missing-parameter`
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/script.lua4
-rw-r--r--locale/pt-br/script.lua2
-rw-r--r--locale/zh-cn/script.lua4
-rw-r--r--locale/zh-tw/script.lua2
-rw-r--r--locale/zh-tw/setting.lua1
5 files changed, 10 insertions, 3 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index a166cf47..f37f53ff 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -33,7 +33,9 @@ DIAG_PREVIOUS_CALL =
DIAG_PREFIELD_CALL =
'Will be interpreted as `{}{}`. It may be necessary to add a `,` or `;`.'
DIAG_OVER_MAX_ARGS =
-'The function takes only {:d} parameters, but you passed {:d}.'
+'The function received a maximum of {:d} arguments, but got {:d}.'
+DIAG_MISS_ARGS =
+'the function received at least {:d} arguments, but got {:d}.'
DIAG_OVER_MAX_VALUES =
'Only has {} variables, but you set {} values.'
DIAG_AMBIGUITY_1 =
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 4076c223..a62fefad 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -34,6 +34,8 @@ DIAG_PREFIELD_CALL =
'Será interpretado como `{}{}`. Pode ser necessário adicionar uma `,` ou `;`.'
DIAG_OVER_MAX_ARGS =
'A função aceita apenas os parâmetros {:d}, mas você passou {:d}.'
+DIAG_MISS_ARGS = -- TODO: need translate!
+'the function received at least {:d} arguments, but got {:d}.'
DIAG_OVER_MAX_VALUES = -- TODO: need translate!
'Only has {} variables, but you set {} values.'
DIAG_AMBIGUITY_1 =
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index 9c5b5ec7..e38d6d4a 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -33,7 +33,9 @@ DIAG_PREVIOUS_CALL =
DIAG_PREFIELD_CALL =
'会被解释为 `{}{}`。你可能需要加一个`,`或`;`。'
DIAG_OVER_MAX_ARGS =
-'函数只接收 {:d} 个参数,但你传了 {:d} 个。'
+'函数最多接收 {:d} 个参数,但获得了 {:d} 个。'
+DIAG_MISS_ARGS =
+'函数最少接收 {:d} 个参数,但获得了 {:d} 个。'
DIAG_OVER_MAX_VALUES =
'只有 {} 个变量,但你设置了 {} 个值。'
DIAG_AMBIGUITY_1 =
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index 887ebd53..a3674bd3 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -34,6 +34,8 @@ DIAG_PREFIELD_CALL =
'會被直譯為 `{}{}`。你可能需要加一個`,`或`;`。'
DIAG_OVER_MAX_ARGS =
'函式只接收 {:d} 個參數,但你傳了 {:d} 個。'
+DIAG_MISS_ARGS = -- TODO: need translate!
+'the function received at least {:d} arguments, but got {:d}.'
DIAG_OVER_MAX_VALUES =
'只有 {} 個變數,但你設定了 {} 個值。'
DIAG_AMBIGUITY_1 =
diff --git a/locale/zh-tw/setting.lua b/locale/zh-tw/setting.lua
index 012304f4..fec64c9e 100644
--- a/locale/zh-tw/setting.lua
+++ b/locale/zh-tw/setting.lua
@@ -245,4 +245,3 @@ config.diagnostics['empty-block'] =
'空程式碼區塊'
config.diagnostics['redundant-value'] =
'賦值操作時,值的數量比被賦值的對象多'
-