Skip to content

Commit

Permalink
Translators/GoogleTranslate: show "-no-auto" hint only when -no-auto …
Browse files Browse the repository at this point in the history
…is not in use
  • Loading branch information
soimort committed Oct 18, 2023
1 parent 4b4f024 commit 5d80231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/Translators/GoogleTranslate.awk
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function googleTranslate(text, sl, tl, hl,

# 7 - autocorrection
if (i ~ "^0" SUBSEP "7" SUBSEP "5$") {
if (ast[i] == "true")
if (!Option["no-autocorrect"] && ast[i] == "true")
w("Showing translation for: (use -no-auto to disable autocorrect)")
else
w("Did you mean: " \
Expand Down

0 comments on commit 5d80231

Please sign in to comment.