Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
97c94423
Commit
97c94423
authored
Nov 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gettext when printing help
parent
b1c38e81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
src/libvlc.c
src/libvlc.c
+23
-20
No files found.
src/libvlc.c
View file @
97c94423
...
@@ -1398,17 +1398,16 @@ static void print_help_section( module_config_t *p_item, bool b_color, bool b_de
...
@@ -1398,17 +1398,16 @@ static void print_help_section( module_config_t *p_item, bool b_color, bool b_de
if
(
!
p_item
)
return
;
if
(
!
p_item
)
return
;
if
(
b_color
)
if
(
b_color
)
{
{
utf8_fprintf
(
stdout
,
RED
" %s:
\n
"
GRAY
,
utf8_fprintf
(
stdout
,
RED
" %s:
\n
"
GRAY
,
_
(
p_item
->
psz_text
)
);
p_item
->
psz_text
);
if
(
b_description
&&
p_item
->
psz_longtext
)
if
(
b_description
&&
p_item
->
psz_longtext
)
utf8_fprintf
(
stdout
,
MAGENTA
" %s
\n
"
GRAY
,
utf8_fprintf
(
stdout
,
MAGENTA
" %s
\n
"
GRAY
,
p_item
->
psz_longtext
);
_
(
p_item
->
psz_longtext
)
);
}
}
else
else
{
{
utf8_fprintf
(
stdout
,
" %s:
\n
"
,
p_item
->
psz_text
);
utf8_fprintf
(
stdout
,
" %s:
\n
"
,
_
(
p_item
->
psz_text
)
);
if
(
b_description
&&
p_item
->
psz_longtext
)
if
(
b_description
&&
p_item
->
psz_longtext
)
utf8_fprintf
(
stdout
,
" %s
\n
"
,
p_item
->
psz_longtext
);
utf8_fprintf
(
stdout
,
" %s
\n
"
,
_
(
p_item
->
psz_longtext
)
);
}
}
}
}
...
@@ -1548,17 +1547,18 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
...
@@ -1548,17 +1547,18 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
{
{
if
(
b_color
)
if
(
b_color
)
utf8_fprintf
(
stdout
,
"
\n
"
GREEN
"%s"
GRAY
" (%s)
\n
"
,
utf8_fprintf
(
stdout
,
"
\n
"
GREEN
"%s"
GRAY
" (%s)
\n
"
,
p_parser
->
psz_longname
,
_
(
p_parser
->
psz_longname
)
,
p_parser
->
psz_object_name
);
p_parser
->
psz_object_name
);
else
else
utf8_fprintf
(
stdout
,
"
\n
%s
\n
"
,
p_parser
->
psz_longname
);
utf8_fprintf
(
stdout
,
"
\n
%s
\n
"
,
_
(
p_parser
->
psz_longname
)
);
}
}
if
(
p_parser
->
psz_help
)
if
(
p_parser
->
psz_help
)
{
{
if
(
b_color
)
if
(
b_color
)
utf8_fprintf
(
stdout
,
CYAN
" %s
\n
"
GRAY
,
p_parser
->
psz_help
);
utf8_fprintf
(
stdout
,
CYAN
" %s
\n
"
GRAY
,
_
(
p_parser
->
psz_help
)
);
else
else
utf8_fprintf
(
stdout
,
" %s
\n
"
,
p_parser
->
psz_help
);
utf8_fprintf
(
stdout
,
" %s
\n
"
,
_
(
p_parser
->
psz_help
)
);
}
}
/* Print module options */
/* Print module options */
...
@@ -1592,17 +1592,19 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
...
@@ -1592,17 +1592,19 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
{
{
if
(
b_color
)
if
(
b_color
)
utf8_fprintf
(
stdout
,
GREEN
"
\n
%s
\n
"
GRAY
,
utf8_fprintf
(
stdout
,
GREEN
"
\n
%s
\n
"
GRAY
,
p_item
->
psz_text
);
_
(
p_item
->
psz_text
)
);
else
else
utf8_fprintf
(
stdout
,
"
\n
%s
\n
"
,
p_item
->
psz_text
);
utf8_fprintf
(
stdout
,
"
\n
%s
\n
"
,
_
(
p_item
->
psz_text
)
);
}
}
if
(
b_description
&&
p_item
->
psz_longtext
)
if
(
b_description
&&
p_item
->
psz_longtext
)
{
{
if
(
b_color
)
if
(
b_color
)
utf8_fprintf
(
stdout
,
CYAN
" %s
\n
"
GRAY
,
utf8_fprintf
(
stdout
,
CYAN
" %s
\n
"
GRAY
,
p_item
->
psz_longtext
);
_
(
p_item
->
psz_longtext
)
);
else
else
utf8_fprintf
(
stdout
,
" %s
\n
"
,
p_item
->
psz_longtext
);
utf8_fprintf
(
stdout
,
" %s
\n
"
,
_
(
p_item
->
psz_longtext
)
);
}
}
break
;
break
;
...
@@ -1666,7 +1668,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
...
@@ -1666,7 +1668,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
if
(
i
)
strcat
(
psz_buffer
,
", "
);
if
(
i
)
strcat
(
psz_buffer
,
", "
);
sprintf
(
psz_buffer
+
strlen
(
psz_buffer
),
"%i (%s)"
,
sprintf
(
psz_buffer
+
strlen
(
psz_buffer
),
"%i (%s)"
,
p_item
->
pi_list
[
i
],
p_item
->
pi_list
[
i
],
p_item
->
ppsz_list_text
[
i
]
);
_
(
p_item
->
ppsz_list_text
[
i
]
)
);
}
}
psz_ket
=
"}"
;
psz_ket
=
"}"
;
}
}
...
@@ -1746,7 +1748,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
...
@@ -1746,7 +1748,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
psz_spaces
[
i
]
=
' '
;
psz_spaces
[
i
]
=
' '
;
/* We wrap the rest of the output */
/* We wrap the rest of the output */
sprintf
(
psz_buffer
,
"%s%s"
,
p_item
->
psz_text
,
psz_suf
);
sprintf
(
psz_buffer
,
"%s%s"
,
_
(
p_item
->
psz_text
),
psz_suf
);
b_description_hack
=
b_description
;
b_description_hack
=
b_description
;
description:
description:
...
@@ -1838,7 +1841,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
...
@@ -1838,7 +1841,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
if
(
b_description_hack
&&
p_item
->
psz_longtext
)
if
(
b_description_hack
&&
p_item
->
psz_longtext
)
{
{
sprintf
(
psz_buffer
,
"%s%s"
,
p_item
->
psz_longtext
,
psz_suf
);
sprintf
(
psz_buffer
,
"%s%s"
,
_
(
p_item
->
psz_longtext
),
psz_suf
);
b_description_hack
=
false
;
b_description_hack
=
false
;
psz_spaces
=
psz_spaces_longtext
;
psz_spaces
=
psz_spaces_longtext
;
utf8_fprintf
(
stdout
,
"%s"
,
psz_spaces
);
utf8_fprintf
(
stdout
,
"%s"
,
psz_spaces
);
...
@@ -1922,12 +1926,11 @@ static void ListModules( libvlc_int_t *p_this, bool b_verbose )
...
@@ -1922,12 +1926,11 @@ static void ListModules( libvlc_int_t *p_this, bool b_verbose )
if
(
b_color
)
if
(
b_color
)
utf8_fprintf
(
stdout
,
GREEN
" %s%s "
WHITE
"%s
\n
"
GRAY
,
utf8_fprintf
(
stdout
,
GREEN
" %s%s "
WHITE
"%s
\n
"
GRAY
,
p_parser
->
psz_object_name
,
p_parser
->
psz_object_name
,
psz_spaces
,
psz_spaces
,
_
(
p_parser
->
psz_longname
)
);
p_parser
->
psz_longname
);
else
else
utf8_fprintf
(
stdout
,
" %s%s %s
\n
"
,
utf8_fprintf
(
stdout
,
" %s%s %s
\n
"
,
p_parser
->
psz_object_name
,
p_parser
->
psz_object_name
,
psz_spaces
,
p_parser
->
psz_longname
);
psz_spaces
,
_
(
p_parser
->
psz_longname
)
);
if
(
b_verbose
)
if
(
b_verbose
)
{
{
...
...
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