mutable menu item text for 'Toggle floating punctuation'

pull/431/head
chrox 11 years ago
parent bc960dcf01
commit 80732b6bf6

@ -128,7 +128,11 @@ function ReaderTypeset:addToMainMenu(tab_item_table)
sub_item_table = self:genStyleSheetMenu(),
})
table.insert(tab_item_table.typeset, {
text = _("Toggle floating punctuation"),
text_func = function()
return self.floating_punctuation == 1 and
_("Turn off floating punctuation") or
_("Turn on floating punctuation")
end,
callback = function () self:toggleFloatingPunctuation() end,
})
end

Loading…
Cancel
Save