From 759e2f8c303ed9985b1a7cb9ad4886d705576476 Mon Sep 17 00:00:00 2001 From: AndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com> Date: Wed, 22 Mar 2023 09:00:56 +0100 Subject: Add diagnostic warning about any global (#1) * Add warning for any global variable via diagnostic * Add messages in en-US TODO: add messages in languages other than en-us as well * fallback: enable/disable diagnostics w/ annotation * Add tests for the new diagnostic * Add diagnostic and group to config.md --- locale/pt-br/script.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/pt-br/script.lua') diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua index d2a7c314..affcd893 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -150,6 +150,8 @@ DIAG_INVISIBLE_PROTECTED = -- TODO: need translate! 'Field `{field}` is protected, it can only be accessed in class `{class}` and its subclasses.' DIAG_INVISIBLE_PACKAGE = -- TODO: need translate! 'Field `{field}` can only be accessed in same file `{uri}`.' +DIAG_GLOBAL_ELEMENT = -- TODO: need translate! +'Element is global.' MWS_NOT_SUPPORT = '{} não é suportado múltiplos espaços de trabalho por enquanto, posso precisar reiniciar para estabelecer um novo espaço de trabalho ...' -- cgit v1.2.3