Commit 870a36bb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Protocol names are localized.

There are real-life cases. There may also be differences in punctuations
and character sets. Besides the VLC core will anyway apply gettext to
these strings, so they are translatable in any case...
parent 614adab2
...@@ -97,7 +97,7 @@ static void Close( vlc_object_t * ); ...@@ -97,7 +97,7 @@ static void Close( vlc_object_t * );
vlc_module_begin(); vlc_module_begin();
set_description( N_("HTTP input") ); set_description( N_("HTTP input") );
set_capability( "access", 0 ); set_capability( "access", 0 );
set_shortname( "HTTP(S)" ); set_shortname( N_( "HTTP(S)" ) );
set_category( CAT_INPUT ); set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_ACCESS ); set_subcategory( SUBCAT_INPUT_ACCESS );
......
...@@ -50,7 +50,7 @@ static void Close( vlc_object_t * ); ...@@ -50,7 +50,7 @@ static void Close( vlc_object_t * );
vlc_module_begin(); vlc_module_begin();
set_description( N_("RTMP input") ); set_description( N_("RTMP input") );
set_shortname( "RTMP" ); set_shortname( N_("RTMP") );
set_category( CAT_INPUT ); set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_ACCESS ); set_subcategory( SUBCAT_INPUT_ACCESS );
......
...@@ -53,7 +53,7 @@ static void Close( vlc_object_t * ); ...@@ -53,7 +53,7 @@ static void Close( vlc_object_t * );
vlc_module_begin(); vlc_module_begin();
set_description( N_("RTMP stream output") ); set_description( N_("RTMP stream output") );
set_shortname( "RTMP" ); set_shortname( N_("RTMP" ) );
set_capability( "sout access", 50 ); set_capability( "sout access", 50 );
set_category( CAT_SOUT ); set_category( CAT_SOUT );
set_subcategory( SUBCAT_SOUT_STREAM ); set_subcategory( SUBCAT_SOUT_STREAM );
......
...@@ -476,7 +476,7 @@ static void Probe( aout_instance_t * p_aout ) ...@@ -476,7 +476,7 @@ static void Probe( aout_instance_t * p_aout )
== VLC_SUCCESS ) == VLC_SUCCESS )
{ {
val.i_int = AOUT_VAR_5_1; val.i_int = AOUT_VAR_5_1;
text.psz_string = "5.1"; text.psz_string = (char *)N_("5.1");
var_Change( p_aout, "audio-device", var_Change( p_aout, "audio-device",
VLC_VAR_ADDCHOICE, &val, &text ); VLC_VAR_ADDCHOICE, &val, &text );
msg_Dbg( p_aout, "device supports 5.1 channels" ); msg_Dbg( p_aout, "device supports 5.1 channels" );
......
...@@ -48,7 +48,7 @@ static subpicture_region_t *LoadEmbeddedImage( decoder_t *p_dec, subpicture_t *p ...@@ -48,7 +48,7 @@ static subpicture_region_t *LoadEmbeddedImage( decoder_t *p_dec, subpicture_t *p
vlc_module_begin(); vlc_module_begin();
set_capability( "decoder", 40 ); set_capability( "decoder", 40 );
set_shortname( "USFSubs" ); set_shortname( N_("USFSubs"));
set_description( N_("USF subtitles decoder") ); set_description( N_("USF subtitles decoder") );
set_callbacks( OpenDecoder, CloseDecoder ); set_callbacks( OpenDecoder, CloseDecoder );
set_category( CAT_INPUT ); set_category( CAT_INPUT );
......
...@@ -79,7 +79,7 @@ static void Close (vlc_object_t *); ...@@ -79,7 +79,7 @@ static void Close (vlc_object_t *);
* Module descriptor * Module descriptor
*/ */
vlc_module_begin (); vlc_module_begin ();
set_shortname ( "RTP" ); set_shortname (_("RTP"));
set_description (_("(Experimental) Real-Time Protocol demuxer")); set_description (_("(Experimental) Real-Time Protocol demuxer"));
set_category (CAT_INPUT); set_category (CAT_INPUT);
set_subcategory (SUBCAT_INPUT_DEMUX); set_subcategory (SUBCAT_INPUT_DEMUX);
......
...@@ -56,7 +56,7 @@ static int Open ( vlc_object_t * ); ...@@ -56,7 +56,7 @@ static int Open ( vlc_object_t * );
static void Close( vlc_object_t * ); static void Close( vlc_object_t * );
vlc_module_begin(); vlc_module_begin();
set_shortname( "TY" ); set_shortname( N_("TY") );
set_description(N_("TY Stream audio/video demux")); set_description(N_("TY Stream audio/video demux"));
set_category( CAT_INPUT ); set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX ); set_subcategory( SUBCAT_INPUT_DEMUX );
......
...@@ -182,8 +182,8 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -182,8 +182,8 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_disc_dvd_menus setTitle: _NS("No DVD menus")]; [o_disc_dvd_menus setTitle: _NS("No DVD menus")];
[[o_disc_type cellAtRow:0 column:0] setTitle: _NS("VIDEO_TS directory")]; [[o_disc_type cellAtRow:0 column:0] setTitle: _NS("VIDEO_TS directory")];
[[o_disc_type cellAtRow:1 column:0] setTitle: @"DVD"]; [[o_disc_type cellAtRow:1 column:0] setTitle: _NS("DVD")];
[[o_disc_type cellAtRow:2 column:0] setTitle: @"VCD"]; [[o_disc_type cellAtRow:2 column:0] setTitle: _NS("VCD")];
[[o_disc_type cellAtRow:3 column:0] setTitle: _NS("Audio CD")]; [[o_disc_type cellAtRow:3 column:0] setTitle: _NS("Audio CD")];
[o_net_udp_port_lbl setStringValue: _NS("Port")]; [o_net_udp_port_lbl setStringValue: _NS("Port")];
...@@ -191,9 +191,9 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -191,9 +191,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_net_udpm_port_lbl setStringValue: _NS("Port")]; [o_net_udpm_port_lbl setStringValue: _NS("Port")];
[o_net_http_url_lbl setStringValue: _NS("URL")]; [o_net_http_url_lbl setStringValue: _NS("URL")];
[[o_net_mode cellAtRow:0 column:0] setTitle: @"UDP/RTP"]; [[o_net_mode cellAtRow:0 column:0] setTitle: _NS("UDP/RTP")];
[[o_net_mode cellAtRow:1 column:0] setTitle: _NS("UDP/RTP Multicast")]; [[o_net_mode cellAtRow:1 column:0] setTitle: _NS("UDP/RTP Multicast")];
[[o_net_mode cellAtRow:2 column:0] setTitle: @"HTTP/FTP/MMS/RTSP"]; [[o_net_mode cellAtRow:2 column:0] setTitle: _NS("HTTP/FTP/MMS/RTSP")];
[o_net_timeshift_ckbox setTitle: _NS("Allow timeshifting")]; [o_net_timeshift_ckbox setTitle: _NS("Allow timeshifting")];
[o_net_udp_port setIntValue: config_GetInt( p_intf, "server-port" )]; [o_net_udp_port setIntValue: config_GetInt( p_intf, "server-port" )];
......
...@@ -158,7 +158,7 @@ static void Close( vlc_object_t * ); ...@@ -158,7 +158,7 @@ static void Close( vlc_object_t * );
#define MAX_EMPTY_BLOCKS 200 #define MAX_EMPTY_BLOCKS 200
vlc_module_begin(); vlc_module_begin();
set_shortname( "RTP" ); set_shortname( N_("RTP"));
set_description( N_("RTP stream output") ); set_description( N_("RTP stream output") );
set_capability( "sout stream", 0 ); set_capability( "sout stream", 0 );
add_shortcut( "rtp" ); add_shortcut( "rtp" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment