[chore] cleanup multi-lines translatable strings

Revert 9971eb85 and make multi-lines strings more readable.
(Multiline translatable strings extraction has been fixed
in koreader-misc tralua_xgettext.py.)
This commit is contained in:
poire-z
2019-01-28 18:00:24 +01:00
parent 32bbf17003
commit 335a513826
13 changed files with 40 additions and 38 deletions

View File

@@ -233,8 +233,8 @@ function ReaderDictionary:addToMainMenu(menu_items)
keep_menu_open = true,
callback = function()
UIManager:show(InfoMessage:new{
text = T(_(
[[If you'd like to change the order in which dictionaries are queried (and their results displayed), you can:
text = T(_([[
If you'd like to change the order in which dictionaries are queried (and their results displayed), you can:
- move all dictionary directories out of %1.
- move them back there, one by one, in the order you want them to be used.]]), self.data_dir)
})

View File

@@ -354,8 +354,8 @@ function ReaderHighlight:onHoldPan(_, ges)
UIManager:setDirty(self.dialog, "ui")
end
local info_message_ocr_text = _(
[[No OCR results or no language data.
local info_message_ocr_text = _([[
No OCR results or no language data.
KOReader has a build-in OCR engine for recognizing words in scanned PDF and DjVu documents. In order to use OCR in scanned pages, you need to install tesseract trained data for your document language.

View File

@@ -167,7 +167,8 @@ function ReaderLink:addToMainMenu(menu_items)
G_reader_settings:saveSetting("swipe_to_jump_to_latest_bookmark",
not isSwipeToJumpToLatestBookmarkEnabled())
end,
help_text = _([[Swipe to the left to go the most recently bookmarked page.
help_text = _([[
Swipe to the left to go the most recently bookmarked page.
This can be useful to quickly swipe back and forth between what you are reading and some reference page (for example notes, a map or a characters list).
If any of the other Swipe to follow link options is enabled, this will work only when the current page contains no link.]]),
},
@@ -199,7 +200,8 @@ If any of the other Swipe to follow link options is enabled, this will work only
G_reader_settings:saveSetting("tap_ignore_external_links",
not isTapIgnoreExternalLinksEnabled())
end,
help_text = _([[Ignore taps on external links. Useful with Wikipedia EPUBs to make page turning easier.
help_text = _([[
Ignore taps on external links. Useful with Wikipedia EPUBs to make page turning easier.
You can still follow them from the dictionary window or the selection menu after holding on them.]]),
separator = true,
})

View File

@@ -340,8 +340,8 @@ function ReaderStyleTweak:init()
end,
hold_callback = function()
UIManager:show(InfoMessage:new{
text = _(
[[Style tweaks allow changing small parts of book styles (including the publisher/embedded styles) to make visual adjustments or disable unwanted publisher layout choices.
text = _([[
Style tweaks allow changing small parts of book styles (including the publisher/embedded styles) to make visual adjustments or disable unwanted publisher layout choices.
Some tweaks may be useful with some books, while resulting in undesirable effects with others.

View File

@@ -248,8 +248,8 @@ function ReaderWikipedia:addToMainMenu(menu_items)
home_dir = home_dir:gsub("^(.-)/*$", "%1") -- remove trailing slash
if home_dir and lfs.attributes(home_dir, "mode") == "directory" then
local wikipedia_dir = home_dir.."/Wikipedia"
local text = _(
[[Wikipedia articles can be saved as an EPUB for more comfortable reading.
local text = _([[
Wikipedia articles can be saved as an EPUB for more comfortable reading.
You can select an existing directory, or use a default directory named "Wikipedia" in your reader's home directory.