Skip to content

Commit

Permalink
[i18n] GetText: fix fuzzy detection for certain strings
Browse files Browse the repository at this point in the history
Reported in <koreader#11647 (comment)>.

Probably overlooked in koreader#5807
  • Loading branch information
Frenzie committed Apr 9, 2024
1 parent ad266f4 commit ed0fd7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/gettext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed0fd7c

Please sign in to comment.