From 31c28378e7d9566969697968f6c745b14089be2a Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Tue, 9 Apr 2024 22:19:36 +0200 Subject: [PATCH] [i18n] GetText: fix fuzzy detection for certain strings (#11648) Reported in . Probably overlooked in #5807 --- frontend/gettext.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/gettext.lua b/frontend/gettext.lua index b5d14366f..aa4994307 100644 --- a/frontend/gettext.lua +++ b/frontend/gettext.lua @@ -275,6 +275,8 @@ function GetText_mt.__index.changeLang(new_lang) -- unescape \\ or msgid won't match s = s:gsub("\\\\", "\\") data[what] = (data[what] or "") .. s + elseif what and s == "" and fuzzy then -- luacheck: ignore 542 + -- Ignore the likes of msgid "" and msgstr "" else -- Don't save this fuzzy string and unset fuzzy for the next one. fuzzy = false