summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorcarsakiller <carsakiller@gmail.com>2022-11-16 06:54:54 -0500
committercarsakiller <carsakiller@gmail.com>2022-11-16 06:54:54 -0500
commit47cfdcfb46144a8982a8e258c593cb5d68536666 (patch)
tree081252b594ba277010a5c1fe515c3407c2af23c1 /locale
parent1fbe3c121cb38eebfa2a3c17117c34ac30bfbd8c (diff)
downloadlua-language-server-47cfdcfb46144a8982a8e258c593cb5d68536666.zip
fix: en-us return diagnosis descriptions
Diffstat (limited to 'locale')
-rw-r--r--locale/en-us/script.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 0361ee77..16826aa9 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -129,17 +129,17 @@ DIAG_UNKNOWN_CAST_VARIABLE =
DIAG_CAST_TYPE_MISMATCH =
'Cannot convert `{def}` to `{ref}`。'
DIAG_MISSING_RETURN_VALUE =
-'At least {min} return values are required, but here only {rmax} values are returned.'
+'Annotations specify that at least {min} return value(s) are required, found {rmax} returned here instead.'
DIAG_MISSING_RETURN_VALUE_RANGE =
-'At least {min} return values are required, but here only {rmin} to {rmax} values are returned.'
+'Annotations specify that at least {min} return value(s) are required, found {rmin} to {rmax} returned here instead.'
DIAG_REDUNDANT_RETURN_VALUE =
-'At most {max} values returned, but the {rmax}th value was returned here.'
+'Annotations specify that at most {max} return value(s) are required, found {rmax} returned here instead.'
DIAG_REDUNDANT_RETURN_VALUE_RANGE =
-'At most {max} values returned, but {rmin}th to {rmax}th values were returned here.'
+'Annotations specify that at most {max} return value(s) are required, found {rmin} to {rmax} returned here instead.'
DIAG_MISSING_RETURN =
-'Return value is required here.'
+'Annotations specify that a return value is required here.'
DIAG_RETURN_TYPE_MISMATCH =
-'The type of the {index} return value is `{def}`, but the actual return is `{ref}`.'
+'Annotations specify that return value #{index} has a type of `{def}`, returning value of type `{ref}` here instead.'
DIAG_UNKNOWN_OPERATOR =
'Unknown operator `{}`.'
DIAG_UNREACHABLE_CODE =