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
df3c9a76
Commit
df3c9a76
authored
Apr 15, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for pgettext
parent
9a8505c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
include/vlc_common.h
include/vlc_common.h
+6
-0
include/vlc_fixups.h
include/vlc_fixups.h
+3
-1
No files found.
include/vlc_common.h
View file @
df3c9a76
...
@@ -827,6 +827,12 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
...
@@ -827,6 +827,12 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
*****************************************************************************/
*****************************************************************************/
VLC_EXPORT
(
char
*
,
vlc_gettext
,
(
const
char
*
msgid
)
LIBVLC_USED
);
VLC_EXPORT
(
char
*
,
vlc_gettext
,
(
const
char
*
msgid
)
LIBVLC_USED
);
static
inline
const
char
*
vlc_pgettext
(
const
char
*
ctx
,
const
char
*
id
)
{
const
char
*
tr
=
vlc_gettext
(
id
);
return
(
tr
==
ctx
)
?
id
:
tr
;
}
/*****************************************************************************
/*****************************************************************************
* libvlc features
* libvlc features
*****************************************************************************/
*****************************************************************************/
...
...
include/vlc_fixups.h
View file @
df3c9a76
...
@@ -175,7 +175,9 @@ typedef void *locale_t;
...
@@ -175,7 +175,9 @@ typedef void *locale_t;
#endif
#endif
/* libintl support */
/* libintl support */
#define _(str) vlc_gettext (str)
#define _(str) gettext(str)
#define gettext(str) vlc_gettext (str)
#define pgettext(ctx,id) vlc_pgettext(ctx,id)
#if defined (ENABLE_NLS)
#if defined (ENABLE_NLS)
# include <libintl.h>
# include <libintl.h>
...
...
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