mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Fix untranslatable strings (#4132)
Some problem somewhere with [[...]] strings starting with a leading newline. Should probably be allowed, but for now fix the few such cases to allow them being translated.
This commit is contained in:
@@ -230,8 +230,8 @@ function ReaderDictionary:addToMainMenu(menu_items)
|
|||||||
text = _("Info on dictionary order"),
|
text = _("Info on dictionary order"),
|
||||||
callback = function()
|
callback = function()
|
||||||
UIManager:show(InfoMessage:new{
|
UIManager:show(InfoMessage:new{
|
||||||
text = T(_([[
|
text = T(_(
|
||||||
If you'd like to change the order in which dictionaries are queried (and their results displayed), you can:
|
[[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 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)
|
- move them back there, one by one, in the order you want them to be used.]]), self.data_dir)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -345,8 +345,8 @@ function ReaderHighlight:onHoldPan(_, ges)
|
|||||||
UIManager:setDirty(self.dialog, "ui")
|
UIManager:setDirty(self.dialog, "ui")
|
||||||
end
|
end
|
||||||
|
|
||||||
local info_message_ocr_text = _([[
|
local info_message_ocr_text = _(
|
||||||
No OCR results or no language data.
|
[[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.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -341,8 +341,8 @@ function ReaderStyleTweak:init()
|
|||||||
hold_may_update_menu = true, -- just to keep menu opened
|
hold_may_update_menu = true, -- just to keep menu opened
|
||||||
hold_callback = function()
|
hold_callback = function()
|
||||||
UIManager:show(InfoMessage:new{
|
UIManager:show(InfoMessage:new{
|
||||||
text = _([[
|
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.
|
[[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.
|
Some tweaks may be useful with some books, while resulting in undesirable effects with others.
|
||||||
|
|
||||||
|
|||||||
@@ -251,8 +251,8 @@ function ReaderWikipedia:addToMainMenu(menu_items)
|
|||||||
home_dir = home_dir:gsub("^(.-)/*$", "%1") -- remove trailing slash
|
home_dir = home_dir:gsub("^(.-)/*$", "%1") -- remove trailing slash
|
||||||
if home_dir and lfs.attributes(home_dir, "mode") == "directory" then
|
if home_dir and lfs.attributes(home_dir, "mode") == "directory" then
|
||||||
local wikipedia_dir = home_dir.."/Wikipedia"
|
local wikipedia_dir = home_dir.."/Wikipedia"
|
||||||
local text = _([[
|
local text = _(
|
||||||
Wikipedia articles can be saved as an EPUB for more comfortable reading.
|
[[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.
|
You can select an existing directory, or use a default directory named "Wikipedia" in your reader's home directory.
|
||||||
|
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ function optionsutil.showValuesMargins(configurable, option)
|
|||||||
end
|
end
|
||||||
if not default then
|
if not default then
|
||||||
UIManager:show(InfoMessage:new{
|
UIManager:show(InfoMessage:new{
|
||||||
text = T(_([[
|
text = T(_(
|
||||||
%1:
|
[[%1:
|
||||||
Current value: %2
|
Current value: %2
|
||||||
left: %3
|
left: %3
|
||||||
top: %4
|
top: %4
|
||||||
@@ -112,8 +112,8 @@ Default value: not set]]),
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
UIManager:show(InfoMessage:new{
|
UIManager:show(InfoMessage:new{
|
||||||
text = T(_([[
|
text = T(_(
|
||||||
%1:
|
[[%1:
|
||||||
Current value: %2
|
Current value: %2
|
||||||
left: %3
|
left: %3
|
||||||
top: %4
|
top: %4
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ local language = G_reader_settings:readSetting("language") or "en"
|
|||||||
local version = Version:getNormalizedCurrentVersion()
|
local version = Version:getNormalizedCurrentVersion()
|
||||||
local rev = Version:getCurrentRevision()
|
local rev = Version:getCurrentRevision()
|
||||||
|
|
||||||
local quickstart_guide = T(_([[
|
local quickstart_guide = T(_(
|
||||||
# KOReader Quickstart Guide
|
[[# KOReader Quickstart Guide
|
||||||
|
|
||||||
Welcome to KOReader.
|
Welcome to KOReader.
|
||||||
|
|
||||||
|
|||||||
@@ -144,8 +144,8 @@ function HyphenationLimitsWidget:update()
|
|||||||
CloseButton:new{ window = self, padding_top = Size.margin.title, },
|
CloseButton:new{ window = self, padding_top = Size.margin.title, },
|
||||||
}
|
}
|
||||||
|
|
||||||
local hyph_into_text = _([[
|
local hyph_into_text = _(
|
||||||
Set minimum length before hyphenation occurs.
|
[[Set minimum length before hyphenation occurs.
|
||||||
These settings will apply to all books with any hyphenation dictionary.
|
These settings will apply to all books with any hyphenation dictionary.
|
||||||
'Use language defaults' resets them.]])
|
'Use language defaults' resets them.]])
|
||||||
local hyph_info = FrameContainer:new{
|
local hyph_info = FrameContainer:new{
|
||||||
|
|||||||
@@ -675,8 +675,8 @@ function BookInfoManager:extractBooksInDirectory(path, cover_specs)
|
|||||||
local Trapper = require("ui/trapper")
|
local Trapper = require("ui/trapper")
|
||||||
local Screen = require("device").screen
|
local Screen = require("device").screen
|
||||||
|
|
||||||
local go_on = Trapper:confirm(_([[
|
local go_on = Trapper:confirm(_(
|
||||||
This will extract metadata and cover images for books in current directory.
|
[[This will extract metadata and cover images for books in current directory.
|
||||||
Once extraction has started, you can abort at any moment by tapping on the screen.
|
Once extraction has started, you can abort at any moment by tapping on the screen.
|
||||||
|
|
||||||
Cover images will be saved with the adequate size for the current display mode.
|
Cover images will be saved with the adequate size for the current display mode.
|
||||||
@@ -688,16 +688,16 @@ This extraction may take time and use some battery power: you may wish to keep y
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local recursive = Trapper:confirm(_([[
|
local recursive = Trapper:confirm(_(
|
||||||
Do you want to extract book information for books in sub-directories too?]]
|
[[Do you want to extract book information for books in sub-directories too?]]
|
||||||
), _("Here only"), _("Here and under"))
|
), _("Here only"), _("Here and under"))
|
||||||
|
|
||||||
local refresh_existing = Trapper:confirm(_([[
|
local refresh_existing = Trapper:confirm(_(
|
||||||
Do you want to refresh metadata and covers that have already been extracted?]]
|
[[Do you want to refresh metadata and covers that have already been extracted?]]
|
||||||
), _("Don't refresh"), _("Refresh"))
|
), _("Don't refresh"), _("Refresh"))
|
||||||
|
|
||||||
local prune = Trapper:confirm(_([[
|
local prune = Trapper:confirm(_(
|
||||||
If you have removed many books, or have renamed some directories, it is good to remove them from the cache database.
|
[[If you have removed many books, or have renamed some directories, it is good to remove them from the cache database.
|
||||||
|
|
||||||
Do you want to prune cache of removed books?]]
|
Do you want to prune cache of removed books?]]
|
||||||
), _("Don't prune"), _("Prune"))
|
), _("Don't prune"), _("Prune"))
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ function Goodreads:updateSettings()
|
|||||||
local text_top
|
local text_top
|
||||||
local hint_bottom
|
local hint_bottom
|
||||||
local text_bottom
|
local text_bottom
|
||||||
local text_info = _([[
|
local text_info = _(
|
||||||
How to generate a key and a secret key:
|
[[How to generate a key and a secret key:
|
||||||
|
|
||||||
1. Go to https://www.goodreads.com/user/sign_up and create an account
|
1. Go to https://www.goodreads.com/user/sign_up and create an account
|
||||||
2. Register for a development key on the following page: https://www.goodreads.com/user/sign_in?rd=true
|
2. Register for a development key on the following page: https://www.goodreads.com/user/sign_in?rd=true
|
||||||
|
|||||||
@@ -197,8 +197,8 @@ function ReaderStatistics:checkInitDatabase()
|
|||||||
if self.convert_to_db then -- if conversion to sqlite was doing earlier
|
if self.convert_to_db then -- if conversion to sqlite was doing earlier
|
||||||
if not conn:exec("pragma table_info('book');") then
|
if not conn:exec("pragma table_info('book');") then
|
||||||
UIManager:show(ConfirmBox:new{
|
UIManager:show(ConfirmBox:new{
|
||||||
text = T(_([[
|
text = T(_(
|
||||||
Cannot open database in %1.
|
[[Cannot open database in %1.
|
||||||
The database may have been moved or deleted.
|
The database may have been moved or deleted.
|
||||||
Do you want to create an empty database?
|
Do you want to create an empty database?
|
||||||
]]),
|
]]),
|
||||||
@@ -222,8 +222,8 @@ Do you want to create an empty database?
|
|||||||
if not conn:exec("pragma table_info('book');") then
|
if not conn:exec("pragma table_info('book');") then
|
||||||
if #ReadHistory.hist > 0 then
|
if #ReadHistory.hist > 0 then
|
||||||
local info = InfoMessage:new{
|
local info = InfoMessage:new{
|
||||||
text =_([[
|
text =_(
|
||||||
New version of statistics plugin detected.
|
[[New version of statistics plugin detected.
|
||||||
Statistics data needs to be converted into the new database format.
|
Statistics data needs to be converted into the new database format.
|
||||||
This may take a few minutes.
|
This may take a few minutes.
|
||||||
Please wait…
|
Please wait…
|
||||||
|
|||||||
Reference in New Issue
Block a user