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
516bb2b9
Commit
516bb2b9
authored
Jun 26, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix vlc_pgettext
(cherry picked from commit 3f573875f66043bf59609ac4398f09f1478dec4f)
parent
1255baa9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
include/vlc_common.h
include/vlc_common.h
+5
-2
No files found.
include/vlc_common.h
View file @
516bb2b9
...
@@ -856,10 +856,13 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
...
@@ -856,10 +856,13 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
*****************************************************************************/
*****************************************************************************/
VLC_EXPORT
(
char
*
,
vlc_gettext
,
(
const
char
*
msgid
)
LIBVLC_FORMAT_ARG
(
1
)
);
VLC_EXPORT
(
char
*
,
vlc_gettext
,
(
const
char
*
msgid
)
LIBVLC_FORMAT_ARG
(
1
)
);
#define vlc_pgettext( ctx, id ) \
vlc_pgettext_aux( ctx "\004" id, id )
LIBVLC_FORMAT_ARG
(
2
)
LIBVLC_FORMAT_ARG
(
2
)
static
inline
const
char
*
vlc_pgettext
(
const
char
*
ctx
,
const
char
*
id
)
static
inline
const
char
*
vlc_pgettext
_aux
(
const
char
*
ctx
,
const
char
*
id
)
{
{
const
char
*
tr
=
vlc_gettext
(
id
);
const
char
*
tr
=
vlc_gettext
(
ctx
);
return
(
tr
==
ctx
)
?
id
:
tr
;
return
(
tr
==
ctx
)
?
id
:
tr
;
}
}
...
...
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