Readerhighlight: allow translation (#8174)

Show translatable title of the style.
https://www.mobileread.com/forums/showthread.php?p=4151396#post4151396
pull/8176/head
hius07 3 years ago committed by GitHub
parent acbf4b7a8c
commit 6f612a1c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1270,7 +1270,7 @@ function ReaderHighlight:onCycleHighlightStyle()
self.view.highlight.saved_drawer = next_actions[self.view.highlight.saved_drawer]
self.ui.doc_settings:saveSetting("highlight_drawer", self.view.highlight.saved_drawer)
UIManager:show(Notification:new{
text = T(_("Default highlight style changed to '%1'."), self.view.highlight.saved_drawer),
text = T(_("Default highlight style changed to '%1'."), highlight_style[self.view.highlight.saved_drawer]),
})
return true
end

Loading…
Cancel
Save