summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--locale/en-us/script.lua4
-rw-r--r--locale/pt-br/script.lua4
-rw-r--r--locale/zh-cn/script.lua4
-rw-r--r--locale/zh-tw/script.lua4
-rw-r--r--script/core/diagnostics/duplicate-doc-alias.lua2
5 files changed, 9 insertions, 9 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 6c545d69..53b8f9ab 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -102,8 +102,8 @@ DIAG_CIRCLE_DOC_CLASS =
'Circularly inherited classes.'
DIAG_DOC_FIELD_NO_CLASS =
'The field must be defined after the class.'
-DIAG_DUPLICATE_DOC_CLASS =
-'Duplicate defined class `{}`.'
+DIAG_DUPLICATE_DOC_ALIAS =
+'Duplicate defined alias `{}`.'
DIAG_DUPLICATE_DOC_FIELD =
'Duplicate defined fields `{}`.'
DIAG_DUPLICATE_DOC_PARAM =
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index f8216c5c..de84b00d 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -102,8 +102,8 @@ DIAG_CIRCLE_DOC_CLASS =
'Classes com herança cíclica.'
DIAG_DOC_FIELD_NO_CLASS =
'O campo deve ser definido após a classe.'
-DIAG_DUPLICATE_DOC_CLASS =
-'Classe definida duplicada `{}`.'
+DIAG_DUPLICATE_DOC_ALIAS = -- TODO: need translate!
+'Duplicate defined alias `{}`.'
DIAG_DUPLICATE_DOC_FIELD =
'Campos definidos duplicados `{}`.'
DIAG_DUPLICATE_DOC_PARAM =
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index f555312b..85ebc44d 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -102,8 +102,8 @@ DIAG_CIRCLE_DOC_CLASS =
'循环继承的类。'
DIAG_DOC_FIELD_NO_CLASS =
'字段必须定义在类之后。'
-DIAG_DUPLICATE_DOC_CLASS =
-'重复定义的类 `{}`。'
+DIAG_DUPLICATE_DOC_ALIAS =
+'重复定义的别名 `{}`。'
DIAG_DUPLICATE_DOC_FIELD =
'重复定义的字段 `{}`。'
DIAG_DUPLICATE_DOC_PARAM =
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index 91fd1bb7..df02d094 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -102,8 +102,8 @@ DIAG_CIRCLE_DOC_CLASS =
'循環繼承的類別。'
DIAG_DOC_FIELD_NO_CLASS =
'欄位必須定義在類別之後。'
-DIAG_DUPLICATE_DOC_CLASS =
-'重複定義的類別 `{}`。'
+DIAG_DUPLICATE_DOC_ALIAS = -- TODO: need translate!
+'Duplicate defined alias `{}`.'
DIAG_DUPLICATE_DOC_FIELD =
'重複定義的欄位 `{}`。'
DIAG_DUPLICATE_DOC_PARAM =
diff --git a/script/core/diagnostics/duplicate-doc-alias.lua b/script/core/diagnostics/duplicate-doc-alias.lua
index 821bb1d8..5fd12847 100644
--- a/script/core/diagnostics/duplicate-doc-alias.lua
+++ b/script/core/diagnostics/duplicate-doc-alias.lua
@@ -39,7 +39,7 @@ return function (uri, callback)
start = doc.alias.start,
finish = doc.alias.finish,
related = cache,
- message = lang.script('DIAG_DUPLICATE_DOC_CLASS', name)
+ message = lang.script('DIAG_DUPLICATE_DOC_ALIAS', name)
}
end
end