|
|
|
@ -588,7 +588,8 @@ function Translator:_showTranslation(text, detailed_view, source_lang, target_la
|
|
|
|
|
if detailed_view then
|
|
|
|
|
if is_result_valid(result[6]) then
|
|
|
|
|
-- Alternative translations:
|
|
|
|
|
table.insert(output, "________")
|
|
|
|
|
table.insert(output, "")
|
|
|
|
|
table.insert(output, _("Alternate translations:"))
|
|
|
|
|
for i, r in ipairs(result[6]) do
|
|
|
|
|
if type(r[3]) == "table" then
|
|
|
|
|
local s = type(r[1]) == "string" and r[1]:gsub("\n", "") or ""
|
|
|
|
@ -604,7 +605,8 @@ function Translator:_showTranslation(text, detailed_view, source_lang, target_la
|
|
|
|
|
end
|
|
|
|
|
if is_result_valid(result[13]) then
|
|
|
|
|
-- Definition(word)
|
|
|
|
|
table.insert(output, "________")
|
|
|
|
|
table.insert(output, "")
|
|
|
|
|
table.insert(output, _("Definition:"))
|
|
|
|
|
for i, r in ipairs(result[13]) do
|
|
|
|
|
if r[2] and type(r[2]) == "table" then
|
|
|
|
|
local symbol = util.unicodeCodepointToUtf8(10101 + (i < 10 and i or 10))
|
|
|
|
|