mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[i18n] GetText: fix fuzzy detection for certain strings (#11648)
Reported in <https://github.com/koreader/koreader/pull/11647#issue-2233008767>. Probably overlooked in #5807
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user