Commit d4fe62a8 authored by Rafael Waldo Delgado Doblas's avatar Rafael Waldo Delgado Doblas Committed by Jean-Baptiste Kempf

vlsub: improving messages.

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 57293705
......@@ -158,6 +158,7 @@ local options = {
mess_success = 'Success',
mess_error = 'Error',
mess_warn = 'Warning',
mess_no_response = 'Server not responding',
mess_unauthorized = 'Request unauthorized',
mess_expired = 'Session expired, retrying',
......@@ -168,6 +169,7 @@ local options = {
mess_not_found2 = 'File not found (illegal character?)',
mess_no_selection = 'No subtitles selected',
mess_save_fail = 'Unable to save subtitles',
mess_save_warn = 'Unable to save subtitles in file folder, using config folder',
mess_click_link = 'Click here to open the file',
mess_complete = 'Research complete',
mess_no_res = 'No result',
......@@ -1696,7 +1698,7 @@ function download_subtitles()
elseif openSub.conf.dirPath then
tmp_dir = openSub.conf.dirPath
message = "<br>"..error_tag(lang["mess_save_fail"].." &nbsp;"..
message = "<br>"..warn_tag(lang["mess_save_warn"].." &nbsp;"..
"<a href='"..vlc.strings.make_uri(openSub.conf.dirPath).."'>"..
lang["mess_click_link"].."</a>")
else
......@@ -1721,7 +1723,7 @@ function download_subtitles()
if openSub.conf.dirPath then
target = openSub.conf.dirPath..slash..subfileName
message = "<br>"..
error_tag(lang["mess_save_fail"].." &nbsp;"..
warn_tag(lang["mess_save_warn"].." &nbsp;"..
"<a href='"..vlc.strings.make_uri(
openSub.conf.dirPath).."'>"..
lang["mess_click_link"].."</a>")
......@@ -1835,6 +1837,11 @@ function error_tag(str)
lang["mess_error"]..":</b></span> "..str..""
end
function warn_tag(str)
return "<span style='color:#CF0'><b>"..
lang["mess_warn"]..":</b></span> "..str..""
end
--[[ Network utils]]--
function get(url)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment