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
ed5205fe
Commit
ed5205fe
authored
Dec 22, 2007
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use dgettext() (aka _() ) rather than gettext().
parent
636e7566
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
include/vlc_common.h
include/vlc_common.h
+0
-1
src/config/file.c
src/config/file.c
+1
-1
src/modules/entry.c
src/modules/entry.c
+4
-4
No files found.
include/vlc_common.h
View file @
ed5205fe
...
...
@@ -1208,7 +1208,6 @@ VLC_EXPORT( unsigned, vlc_CPU, ( void ) );
#else
# define _(String) (String)
# define N_(String) (String)
# define gettext(String) (String)
#endif
/*****************************************************************************
...
...
src/config/file.c
View file @
ed5205fe
...
...
@@ -353,7 +353,7 @@ config_Write (FILE *file, const char *type, const char *desc,
if
(
desc
==
NULL
)
desc
=
"?"
;
if
(
fprintf
(
file
,
"# %s (%s)
\n
%s%s="
,
desc
,
gettext
(
type
),
if
(
fprintf
(
file
,
"# %s (%s)
\n
%s%s="
,
desc
,
_
(
type
),
comment
?
"#"
:
""
,
name
)
<
0
)
return
-
1
;
...
...
src/modules/entry.c
View file @
ed5205fe
...
...
@@ -200,8 +200,8 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
const
char
*
text
=
va_arg
(
ap
,
const
char
*
);
const
char
*
longtext
=
va_arg
(
ap
,
const
char
*
);
item
->
psz_text
=
text
?
strdup
(
gettext
(
text
))
:
NULL
;
item
->
psz_longtext
=
longtext
?
strdup
(
gettext
(
text
))
:
NULL
;
item
->
psz_text
=
text
?
strdup
(
_
(
text
))
:
NULL
;
item
->
psz_longtext
=
longtext
?
strdup
(
_
(
text
))
:
NULL
;
ret
=
0
;
break
;
}
...
...
@@ -352,7 +352,7 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
if
(
text
!=
NULL
)
{
for
(
size_t
i
=
0
;
i
<
len
;
i
++
)
dtext
[
i
]
=
text
[
i
]
?
strdup
(
gettext
(
text
[
i
]))
:
NULL
;
dtext
[
i
]
=
text
[
i
]
?
strdup
(
_
(
text
[
i
]))
:
NULL
;
dtext
[
len
]
=
NULL
;
item
->
ppsz_list_text
=
dtext
;
...
...
@@ -389,7 +389,7 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
item
->
ppsz_action_text
=
tabtext
;
if
(
name
)
tabtext
[
item
->
i_action
]
=
strdup
(
gettext
(
name
));
tabtext
[
item
->
i_action
]
=
strdup
(
_
(
name
));
else
tabtext
[
item
->
i_action
]
=
NULL
;
tabtext
[
item
->
i_action
+
1
]
=
NULL
;
...
...
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