[vlc-devel] commit: Protocol names are localized. ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jul 6 12:55:46 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jul 6 13:55:14 2008 +0300| [870a36bbd13b26ff2e55bb33462f659952255b18]
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...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=870a36bbd13b26ff2e55bb33462f659952255b18
---
modules/access/http.c | 2 +-
modules/access/rtmp/access.c | 2 +-
modules/access_output/rtmp.c | 2 +-
modules/audio_output/waveout.c | 2 +-
modules/codec/subtitles/subsusf.c | 2 +-
modules/demux/rtp.c | 2 +-
modules/demux/ty.c | 2 +-
modules/gui/macosx/open.m | 8 ++++----
modules/stream_out/rtp.c | 2 +-
9 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index 089d306..15b2be3 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -97,7 +97,7 @@ static void Close( vlc_object_t * );
vlc_module_begin();
set_description( N_("HTTP input") );
set_capability( "access", 0 );
- set_shortname( "HTTP(S)" );
+ set_shortname( N_( "HTTP(S)" ) );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_ACCESS );
diff --git a/modules/access/rtmp/access.c b/modules/access/rtmp/access.c
index 5e427f3..0d3ad02 100644
--- a/modules/access/rtmp/access.c
+++ b/modules/access/rtmp/access.c
@@ -50,7 +50,7 @@ static void Close( vlc_object_t * );
vlc_module_begin();
set_description( N_("RTMP input") );
- set_shortname( "RTMP" );
+ set_shortname( N_("RTMP") );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_ACCESS );
diff --git a/modules/access_output/rtmp.c b/modules/access_output/rtmp.c
index a482c03..a26690a 100644
--- a/modules/access_output/rtmp.c
+++ b/modules/access_output/rtmp.c
@@ -53,7 +53,7 @@ static void Close( vlc_object_t * );
vlc_module_begin();
set_description( N_("RTMP stream output") );
- set_shortname( "RTMP" );
+ set_shortname( N_("RTMP" ) );
set_capability( "sout access", 50 );
set_category( CAT_SOUT );
set_subcategory( SUBCAT_SOUT_STREAM );
diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c
index d3ef47c..bf9ac03 100644
--- a/modules/audio_output/waveout.c
+++ b/modules/audio_output/waveout.c
@@ -476,7 +476,7 @@ static void Probe( aout_instance_t * p_aout )
== VLC_SUCCESS )
{
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",
VLC_VAR_ADDCHOICE, &val, &text );
msg_Dbg( p_aout, "device supports 5.1 channels" );
diff --git a/modules/codec/subtitles/subsusf.c b/modules/codec/subtitles/subsusf.c
index 9ce8d45..162cd1d 100644
--- a/modules/codec/subtitles/subsusf.c
+++ b/modules/codec/subtitles/subsusf.c
@@ -48,7 +48,7 @@ static subpicture_region_t *LoadEmbeddedImage( decoder_t *p_dec, subpicture_t *p
vlc_module_begin();
set_capability( "decoder", 40 );
- set_shortname( "USFSubs" );
+ set_shortname( N_("USFSubs"));
set_description( N_("USF subtitles decoder") );
set_callbacks( OpenDecoder, CloseDecoder );
set_category( CAT_INPUT );
diff --git a/modules/demux/rtp.c b/modules/demux/rtp.c
index 1706b0f..ee99286 100644
--- a/modules/demux/rtp.c
+++ b/modules/demux/rtp.c
@@ -79,7 +79,7 @@ static void Close (vlc_object_t *);
* Module descriptor
*/
vlc_module_begin ();
- set_shortname ( "RTP" );
+ set_shortname (_("RTP"));
set_description (_("(Experimental) Real-Time Protocol demuxer"));
set_category (CAT_INPUT);
set_subcategory (SUBCAT_INPUT_DEMUX);
diff --git a/modules/demux/ty.c b/modules/demux/ty.c
index f43c1b0..98d48ca 100644
--- a/modules/demux/ty.c
+++ b/modules/demux/ty.c
@@ -56,7 +56,7 @@ static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
vlc_module_begin();
- set_shortname( "TY" );
+ set_shortname( N_("TY") );
set_description(N_("TY Stream audio/video demux"));
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index ea6c3c0..36fac38 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -182,8 +182,8 @@ static VLCOpen *_o_sharedMainInstance = nil;
[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:1 column:0] setTitle: @"DVD"];
- [[o_disc_type cellAtRow:2 column:0] setTitle: @"VCD"];
+ [[o_disc_type cellAtRow:1 column:0] setTitle: _NS("DVD")];
+ [[o_disc_type cellAtRow:2 column:0] setTitle: _NS("VCD")];
[[o_disc_type cellAtRow:3 column:0] setTitle: _NS("Audio CD")];
[o_net_udp_port_lbl setStringValue: _NS("Port")];
@@ -191,9 +191,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_net_udpm_port_lbl setStringValue: _NS("Port")];
[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: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_udp_port setIntValue: config_GetInt( p_intf, "server-port" )];
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 75b28b8..fb79a68 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -158,7 +158,7 @@ static void Close( vlc_object_t * );
#define MAX_EMPTY_BLOCKS 200
vlc_module_begin();
- set_shortname( "RTP" );
+ set_shortname( N_("RTP"));
set_description( N_("RTP stream output") );
set_capability( "sout stream", 0 );
add_shortcut( "rtp" );
More information about the vlc-devel
mailing list