mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] gettext: unescape \\ for ID matching (#8357)
Fixes <https://github.com/koreader/koreader/issues/8356>.
This commit is contained in:
@@ -268,6 +268,8 @@ function GetText_mt.__index.changeLang(new_lang)
|
||||
s = s:gsub("\\n", "\n")
|
||||
-- unescape " or msgid won't match
|
||||
s = s:gsub('\\"', '"')
|
||||
-- unescape \\ or msgid won't match
|
||||
s = s:gsub("\\\\", "\\")
|
||||
data[what] = (data[what] or "") .. s
|
||||
else
|
||||
-- Don't save this fuzzy string and unset fuzzy for the next one.
|
||||
|
||||
Reference in New Issue
Block a user