Skip to content

Commit 8da1474

Browse files
committed
update locale (thanks fanyi.baidu.com)
1 parent ebf3d6c commit 8da1474

File tree

4 files changed

+99
-1
lines changed

4 files changed

+99
-1
lines changed

locale/en-us/script.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,39 @@ CLI_CHECK_SUCCESS =
589589
CLI_CHECK_RESULTS =
590590
'Diagnosis complete, {} problems found, see {}'
591591

592+
TYPE_ERROR_ENUM_GLOBAL_DISMATCH =
593+
'Type `{child}` cannot match enumeration type of `{parent}`'
594+
TYPE_ERROR_ENUM_GENERIC_UNSUPPORTED =
595+
'Cannot use generic `{child}` in enumeration'
596+
TYPE_ERROR_ENUM_LITERAL_DISMATCH =
597+
'Literal `{child}` cannot match the enumeration value of `{parent}`'
598+
TYPE_ERROR_ENUM_OBJECT_DISMATCH =
599+
'The object `{child}` cannot match the enumeration value of `{parent}`. They must be the same object'
600+
TYPE_ERROR_ENUM_NO_OBJECT =
601+
'The passed in enumeration value `{child}` is not recognized'
602+
TYPE_ERROR_INTEGER_DISMATCH =
603+
'Literal `{child}` cannot match integer `{parent}`'
604+
TYPE_ERROR_STRING_DISMATCH =
605+
'Literal `{child}` cannot match string `{parent}`'
606+
TYPE_ERROR_BOOLEAN_DISMATCH =
607+
'Literal `{child}` cannot match boolean `{parent}`'
608+
TYPE_ERROR_TABLE_NO_FIELD =
609+
'Field `{key}` does not exist in the table'
610+
TYPE_ERROR_TABLE_FIELD_DISMATCH =
611+
'The type of field `{key}` is `{child}`, which cannot match `{parent}`'
612+
TYPE_ERROR_UNION_ALL_DISMATCH =
613+
'All subtypes in `{child}` cannot match `{parent}`'
614+
TYPE_ERROR_UNION_DISMATCH =
615+
'`{child}` in union type cannot match `{parent}`'
616+
TYPE_ERROR_OPTIONAL_DISMATCH =
617+
'Optional type cannot match `{parent}`'
618+
TYPE_ERROR_NUMBER_LITERAL_TO_INTEGER =
619+
'The number `{child}` cannot be converted to an integer'
620+
TYPE_ERROR_NUMBER_TYPE_TO_INTEGER =
621+
'Cannot convert number type to integer type'
622+
TYPE_ERROR_DISMATCH =
623+
'Type `{child}` cannot match `{parent}`'
624+
592625
LUADOC_DESC_CLASS =
593626
[=[
594627
Defines a class/table structure

locale/pt-br/script.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,39 @@ CLI_CHECK_SUCCESS =
589589
CLI_CHECK_RESULTS =
590590
'Diagnóstico completo, {} problemas encontrados, veja {}'
591591

592+
TYPE_ERROR_ENUM_GLOBAL_DISMATCH = -- TODO: need translate!
593+
'Type `{child}` cannot match enumeration type of `{parent}`'
594+
TYPE_ERROR_ENUM_GENERIC_UNSUPPORTED = -- TODO: need translate!
595+
'Cannot use generic `{child}` in enumeration'
596+
TYPE_ERROR_ENUM_LITERAL_DISMATCH = -- TODO: need translate!
597+
'Literal `{child}` cannot match the enumeration value of `{parent}`'
598+
TYPE_ERROR_ENUM_OBJECT_DISMATCH = -- TODO: need translate!
599+
'The object `{child}` cannot match the enumeration value of `{parent}`. They must be the same object'
600+
TYPE_ERROR_ENUM_NO_OBJECT = -- TODO: need translate!
601+
'The passed in enumeration value `{child}` is not recognized'
602+
TYPE_ERROR_INTEGER_DISMATCH = -- TODO: need translate!
603+
'Literal `{child}` cannot match integer `{parent}`'
604+
TYPE_ERROR_STRING_DISMATCH = -- TODO: need translate!
605+
'Literal `{child}` cannot match string `{parent}`'
606+
TYPE_ERROR_BOOLEAN_DISMATCH = -- TODO: need translate!
607+
'Literal `{child}` cannot match boolean `{parent}`'
608+
TYPE_ERROR_TABLE_NO_FIELD = -- TODO: need translate!
609+
'Field `{key}` does not exist in the table'
610+
TYPE_ERROR_TABLE_FIELD_DISMATCH = -- TODO: need translate!
611+
'The type of field `{key}` is `{child}`, which cannot match `{parent}`'
612+
TYPE_ERROR_UNION_ALL_DISMATCH = -- TODO: need translate!
613+
'All subtypes in `{child}` cannot match `{parent}`'
614+
TYPE_ERROR_UNION_DISMATCH = -- TODO: need translate!
615+
'`{child}` in union type cannot match `{parent}`'
616+
TYPE_ERROR_OPTIONAL_DISMATCH = -- TODO: need translate!
617+
'Optional type cannot match `{parent}`'
618+
TYPE_ERROR_NUMBER_LITERAL_TO_INTEGER = -- TODO: need translate!
619+
'The number `{child}` cannot be converted to an integer'
620+
TYPE_ERROR_NUMBER_TYPE_TO_INTEGER = -- TODO: need translate!
621+
'Cannot convert number type to integer type'
622+
TYPE_ERROR_DISMATCH = -- TODO: need translate!
623+
'Type `{child}` cannot match `{parent}`'
624+
592625
LUADOC_DESC_CLASS = -- TODO: need translate!
593626
[=[
594627
Defines a class/table structure

locale/zh-cn/script.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,6 @@ TYPE_ERROR_NUMBER_TYPE_TO_INTEGER =
622622
TYPE_ERROR_DISMATCH =
623623
'类型 `{child}` 无法匹配 `{parent}`'
624624

625-
626625
LUADOC_DESC_CLASS = -- TODO: need translate!
627626
[=[
628627
Defines a class/table structure

locale/zh-tw/script.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,39 @@ CLI_CHECK_SUCCESS =
589589
CLI_CHECK_RESULTS =
590590
'診斷完成,共有 {} 個問題,請查看 {}'
591591

592+
TYPE_ERROR_ENUM_GLOBAL_DISMATCH = -- TODO: need translate!
593+
'Type `{child}` cannot match enumeration type of `{parent}`'
594+
TYPE_ERROR_ENUM_GENERIC_UNSUPPORTED = -- TODO: need translate!
595+
'Cannot use generic `{child}` in enumeration'
596+
TYPE_ERROR_ENUM_LITERAL_DISMATCH = -- TODO: need translate!
597+
'Literal `{child}` cannot match the enumeration value of `{parent}`'
598+
TYPE_ERROR_ENUM_OBJECT_DISMATCH = -- TODO: need translate!
599+
'The object `{child}` cannot match the enumeration value of `{parent}`. They must be the same object'
600+
TYPE_ERROR_ENUM_NO_OBJECT = -- TODO: need translate!
601+
'The passed in enumeration value `{child}` is not recognized'
602+
TYPE_ERROR_INTEGER_DISMATCH = -- TODO: need translate!
603+
'Literal `{child}` cannot match integer `{parent}`'
604+
TYPE_ERROR_STRING_DISMATCH = -- TODO: need translate!
605+
'Literal `{child}` cannot match string `{parent}`'
606+
TYPE_ERROR_BOOLEAN_DISMATCH = -- TODO: need translate!
607+
'Literal `{child}` cannot match boolean `{parent}`'
608+
TYPE_ERROR_TABLE_NO_FIELD = -- TODO: need translate!
609+
'Field `{key}` does not exist in the table'
610+
TYPE_ERROR_TABLE_FIELD_DISMATCH = -- TODO: need translate!
611+
'The type of field `{key}` is `{child}`, which cannot match `{parent}`'
612+
TYPE_ERROR_UNION_ALL_DISMATCH = -- TODO: need translate!
613+
'All subtypes in `{child}` cannot match `{parent}`'
614+
TYPE_ERROR_UNION_DISMATCH = -- TODO: need translate!
615+
'`{child}` in union type cannot match `{parent}`'
616+
TYPE_ERROR_OPTIONAL_DISMATCH = -- TODO: need translate!
617+
'Optional type cannot match `{parent}`'
618+
TYPE_ERROR_NUMBER_LITERAL_TO_INTEGER = -- TODO: need translate!
619+
'The number `{child}` cannot be converted to an integer'
620+
TYPE_ERROR_NUMBER_TYPE_TO_INTEGER = -- TODO: need translate!
621+
'Cannot convert number type to integer type'
622+
TYPE_ERROR_DISMATCH = -- TODO: need translate!
623+
'Type `{child}` cannot match `{parent}`'
624+
592625
LUADOC_DESC_CLASS =
593626
[=[
594627
定義一個類別/表結構

0 commit comments

Comments
 (0)