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
97cf7d54
Commit
97cf7d54
authored
Apr 18, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gettext() as per gettext standard for non-constant parameters
parent
ce1718c4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
12 deletions
+16
-12
include/vlc_config_cat.h
include/vlc_config_cat.h
+2
-2
modules/demux/ts.c
modules/demux/ts.c
+2
-2
modules/demux/ty.c
modules/demux/ty.c
+1
-1
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+1
-1
modules/services_discovery/shout.c
modules/services_discovery/shout.c
+2
-1
src/config/file.c
src/config/file.c
+1
-1
src/input/es_out.c
src/input/es_out.c
+6
-3
src/video_output/video_output.c
src/video_output/video_output.c
+1
-1
No files found.
include/vlc_config_cat.h
View file @
97cf7d54
...
...
@@ -288,7 +288,7 @@ static inline const char *config_CategoryNameGet( int i_value )
{
if
(
categories_array
[
i
].
i_id
==
i_value
)
{
return
_
(
categories_array
[
i
].
psz_name
);
return
gettext
(
categories_array
[
i
].
psz_name
);
}
i
++
;
}
...
...
@@ -303,7 +303,7 @@ static inline const char *config_CategoryHelpGet( int i_value )
{
if
(
categories_array
[
i
].
i_id
==
i_value
)
{
return
_
(
categories_array
[
i
].
psz_help
);
return
gettext
(
categories_array
[
i
].
psz_help
);
}
i
++
;
}
...
...
modules/demux/ts.c
View file @
97cf7d54
...
...
@@ -3265,7 +3265,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid,
{
p_fmt
->
subs
.
teletext
.
i_magazine
=
-
1
;
p_fmt
->
subs
.
teletext
.
i_page
=
0
;
p_fmt
->
psz_description
=
strdup
(
_
(
ppsz_teletext_type
[
1
])
);
p_fmt
->
psz_description
=
strdup
(
gettext
(
ppsz_teletext_type
[
1
])
);
dvbpsi_descriptor_t
*
p_dr
;
p_dr
=
PMTEsFindDescriptor
(
p_es
,
0x46
);
...
...
@@ -3320,7 +3320,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid,
/* */
const
ts_teletext_page_t
*
p
=
&
p_page
[
i
];
p_es
->
fmt
.
psz_language
=
strndup
(
p
->
p_iso639
,
3
);
p_es
->
fmt
.
psz_description
=
strdup
(
_
(
ppsz_teletext_type
[
p
->
i_type
]));
p_es
->
fmt
.
psz_description
=
strdup
(
gettext
(
ppsz_teletext_type
[
p
->
i_type
]));
p_es
->
fmt
.
subs
.
teletext
.
i_magazine
=
p
->
i_magazine
;
p_es
->
fmt
.
subs
.
teletext
.
i_page
=
p
->
i_page
;
...
...
modules/demux/ty.c
View file @
97cf7d54
...
...
@@ -780,7 +780,7 @@ static int DemuxRecVideo( demux_t *p_demux, ty_rec_hdr_t *rec_hdr, block_t *p_bl
continue
;
es_format_Init
(
&
fmt
,
SPU_ES
,
fcc
[
i
]
);
fmt
.
psz_description
=
strdup
(
_
(
ppsz_description
[
i
])
);
fmt
.
psz_description
=
strdup
(
gettext
(
ppsz_description
[
i
])
);
fmt
.
i_group
=
TY_ES_GROUP
;
p_sys
->
p_cc
[
i
]
=
es_out_Add
(
p_demux
->
out
,
&
fmt
);
es_format_Clean
(
&
fmt
);
...
...
modules/gui/qt4/qt4.hpp
View file @
97cf7d54
...
...
@@ -86,7 +86,7 @@ struct intf_sys_t
#define THEMIM MainInputManager::getInstance( p_intf )
#define qfu( i ) QString::fromUtf8( i )
#define qtr( i ) QString::fromUtf8(
_
(i) )
#define qtr( i ) QString::fromUtf8(
gettext
(i) )
#define qtu( i ) ((i).toUtf8().constData())
#define CONNECT( a, b, c, d ) connect( a, SIGNAL( b ), c, SLOT(d) )
...
...
modules/services_discovery/shout.c
View file @
97cf7d54
...
...
@@ -186,7 +186,8 @@ static input_item_t * CreateInputItemFromShoutItem( services_discovery_t *p_sd,
{
int
i
;
/* Create the item */
input_item_t
*
p_input
=
input_item_New
(
p_sd
,
p_item
->
psz_url
,
_
(
p_item
->
psz_name
)
);
input_item_t
*
p_input
=
input_item_New
(
p_sd
,
p_item
->
psz_url
,
gettext
(
p_item
->
psz_name
)
);
/* Copy options */
for
(
i
=
0
;
p_item
->
ppsz_options
[
i
]
!=
NULL
;
i
++
)
...
...
src/config/file.c
View file @
97cf7d54
...
...
@@ -375,7 +375,7 @@ config_Write (FILE *file, const char *type, const char *desc,
if
(
desc
==
NULL
)
desc
=
"?"
;
if
(
fprintf
(
file
,
"# %s (%s)
\n
%s%s="
,
desc
,
_
(
type
),
if
(
fprintf
(
file
,
"# %s (%s)
\n
%s%s="
,
desc
,
gettext
(
type
),
comment
?
"#"
:
""
,
name
)
<
0
)
return
-
1
;
...
...
src/input/es_out.c
View file @
97cf7d54
...
...
@@ -1205,8 +1205,10 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, vlc_meta_t *p_meta )
char
**
ppsz_all_keys
=
vlc_dictionary_all_keys
(
&
p_meta
->
extra_tags
);
for
(
i
=
0
;
ppsz_all_keys
[
i
];
i
++
)
{
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
ppsz_all_keys
[
i
]),
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
ppsz_all_keys
[
i
]
)
);
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
gettext
(
ppsz_all_keys
[
i
]),
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
ppsz_all_keys
[
i
]
)
);
free
(
ppsz_all_keys
[
i
]
);
}
free
(
ppsz_all_keys
);
...
...
@@ -2756,7 +2758,8 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
char
*
psz_value
=
vlc_dictionary_value_for_key
(
&
p_meta
->
extra_tags
,
psz_key
);
if
(
psz_value
)
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
psz_key
),
_
(
psz_value
)
);
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
gettext
(
psz_key
),
gettext
(
psz_value
)
);
free
(
psz_key
);
}
free
(
ppsz_all_keys
);
...
...
src/video_output/video_output.c
View file @
97cf7d54
...
...
@@ -2038,7 +2038,7 @@ static void DeinterlaceEnable( vout_thread_t *p_vout )
for
(
int
i
=
0
;
p_deinterlace_mode
[
i
].
psz_mode
;
i
++
)
{
val
.
psz_string
=
(
char
*
)
p_deinterlace_mode
[
i
].
psz_mode
;
text
.
psz_string
=
(
char
*
)
_
(
p_deinterlace_mode
[
i
].
psz_description
);
text
.
psz_string
=
(
char
*
)
gettext
(
p_deinterlace_mode
[
i
].
psz_description
);
var_Change
(
p_vout
,
"deinterlace"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
}
var_AddCallback
(
p_vout
,
"deinterlace"
,
DeinterlaceCallback
,
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