Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d4fe62a8
Commit
d4fe62a8
authored
Nov 15, 2015
by
Rafael Waldo Delgado Doblas
Committed by
Jean-Baptiste Kempf
Nov 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlsub: improving messages.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
57293705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
share/lua/extensions/VLSub.lua
share/lua/extensions/VLSub.lua
+9
-2
No files found.
share/lua/extensions/VLSub.lua
View file @
d4fe62a8
...
...
@@ -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
"
]
..
" "
..
message
=
"<br>"
..
warn_tag
(
lang
[
"mess_save_warn
"
]
..
" "
..
"<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
"
]
..
" "
..
warn_tag
(
lang
[
"mess_save_warn
"
]
..
" "
..
"<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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment