mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[i18n] Add translator notes (#5250)
Thanks to <https://github.com/koreader/koreader/pull/5237> we can now extract the knowledge currently embedded in Transifex and put it directly in our source. This positively affects <https://github.com/koreader/koreader/issues/3754>. Translation instructions and knowledge that comes out of localization-related questions should be preserved in the source, because Transifex is too ephemeral. For example, the links from <https://github.com/koreader/koreader/pull/2290> are no longer accessible. Even when they are, it's quite useful to have this information around while dealing with the code as well, and I also hope it'll be informative to contributors who seldom visit Transifex. This commit also makes a few minor changes to obviate the need for comments where possible.
This commit is contained in:
@@ -11,6 +11,7 @@ local Screen = require("device").screen
|
||||
local UIManager = require("ui/uimanager")
|
||||
local T = require("ffi/util").template
|
||||
local _ = require("gettext")
|
||||
local C_ = _.pgettext
|
||||
|
||||
local ReaderFont = InputContainer:new{
|
||||
font_face = nil,
|
||||
@@ -294,7 +295,7 @@ function ReaderFont:makeDefault(face, touchmenu_instance)
|
||||
G_reader_settings:saveSetting("cre_font", face)
|
||||
if touchmenu_instance then touchmenu_instance:updateItems() end
|
||||
end,
|
||||
choice2_text = _("Fallback"),
|
||||
choice2_text = C_("Font", "Fallback"),
|
||||
choice2_callback = function()
|
||||
if self.ui.document:setFallbackFontFace(face) then
|
||||
G_reader_settings:saveSetting("fallback_font", face)
|
||||
|
||||
Reference in New Issue
Block a user