From a31ca646fc226c3282568021234932101c1a358e Mon Sep 17 00:00:00 2001 From: p-goulart Date: Fri, 22 Dec 2023 14:35:25 +0100 Subject: [PATCH] [pt] Improve message of BrazilianToponymStateCheckFilter.java --- .../rules/pt/BrazilianToponymStateCheckFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/BrazilianToponymStateCheckFilter.java b/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/BrazilianToponymStateCheckFilter.java index e34f4e2f379f..1be2351bc85d 100644 --- a/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/BrazilianToponymStateCheckFilter.java +++ b/languagetool-language-modules/pt/src/main/java/org/languagetool/rules/pt/BrazilianToponymStateCheckFilter.java @@ -63,7 +63,8 @@ private void setMessage(RuleMatch match, BrazilianToponymStateCheckResult checkR String inTheStateOf = String.format("no estado %s %s", new PortuguesePreposition("de").contractWith(wrongState.articles[0]), wrongState.name); - String message = String.format("O município %s não fica %s.", checkResult.matchedToponym, inTheStateOf); + String message = String.format("Se estiver se referindo a um município, não parece haver cidades com o nome de %s %s.", + checkResult.matchedToponym, inTheStateOf); match.setMessage(message); } }