From 4cafb8067232ec19520e155d4262ed69ad59887b Mon Sep 17 00:00:00 2001 From: smorlat Date: Wed, 17 Dec 2008 21:42:02 +0000 Subject: [PATCH] internationalization of mediastreamer2 (thanks to Petr Pisar) git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@208 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/coreapi/misc.c | 2 +- .../include/mediastreamer2/msfilter.h | 2 ++ linphone/mediastreamer2/src/alaw.c | 8 ++++---- linphone/mediastreamer2/src/alsa.c | 4 ++-- linphone/mediastreamer2/src/aqsnd.c | 4 ++-- linphone/mediastreamer2/src/dtmfgen.c | 4 ++-- linphone/mediastreamer2/src/gsm.c | 8 ++++---- linphone/mediastreamer2/src/macsnd.c | 4 ++-- linphone/mediastreamer2/src/msconf.c | 4 ++-- linphone/mediastreamer2/src/msfileplayer.c | 4 ++-- linphone/mediastreamer2/src/msfilerec.c | 4 ++-- linphone/mediastreamer2/src/msfilerec_win.c | 4 ++-- linphone/mediastreamer2/src/msjoin.c | 4 ++-- linphone/mediastreamer2/src/msresample.c | 4 ++-- linphone/mediastreamer2/src/msrtp.c | 8 ++++---- linphone/mediastreamer2/src/msspeex.c | 8 ++++---- linphone/mediastreamer2/src/msv4l.c | 2 +- linphone/mediastreamer2/src/msv4l2.c | 2 +- linphone/mediastreamer2/src/msv4m.c | 2 +- linphone/mediastreamer2/src/msvolume.c | 4 ++-- linphone/mediastreamer2/src/nowebcam.c | 2 +- linphone/mediastreamer2/src/oss.c | 4 ++-- linphone/mediastreamer2/src/pixconv.c | 4 ++-- linphone/mediastreamer2/src/sdlout.c | 4 ++-- linphone/mediastreamer2/src/sizeconv.c | 4 ++-- linphone/mediastreamer2/src/speexec.c | 4 ++-- linphone/mediastreamer2/src/tee.c | 4 ++-- linphone/mediastreamer2/src/theora.c | 8 ++++---- linphone/mediastreamer2/src/ulaw.c | 8 ++++---- linphone/mediastreamer2/src/videodec.c | 14 +++++++------- linphone/mediastreamer2/src/videoenc.c | 18 +++++++++--------- linphone/mediastreamer2/src/videoout.c | 4 ++-- linphone/mediastreamer2/src/wincevideods.c | 4 ++-- linphone/mediastreamer2/src/winvideo.c | 4 ++-- linphone/mediastreamer2/src/winvideo2.c | 4 ++-- linphone/mediastreamer2/src/winvideods.c | 4 ++-- linphone/po/POTFILES.in | 1 + 37 files changed, 92 insertions(+), 89 deletions(-) diff --git a/linphone/coreapi/misc.c b/linphone/coreapi/misc.c index 7e9732eec..bd0ea6ba9 100644 --- a/linphone/coreapi/misc.c +++ b/linphone/coreapi/misc.c @@ -160,7 +160,7 @@ void check_sound_device(LinphoneCore *lc) #define IP4_HDR_SZ 20 /*20 is the minimum, but there may be some options*/ const char *payload_type_get_description(PayloadType *pt){ - return (const char *)pt->user_data; + return _((const char *)pt->user_data); } void payload_type_set_enable(PayloadType *pt,int value) diff --git a/linphone/mediastreamer2/include/mediastreamer2/msfilter.h b/linphone/mediastreamer2/include/mediastreamer2/msfilter.h index 572cfa1f4..124f94317 100644 --- a/linphone/mediastreamer2/include/mediastreamer2/msfilter.h +++ b/linphone/mediastreamer2/include/mediastreamer2/msfilter.h @@ -408,5 +408,7 @@ void ms_filter_unregister_all(void); /* used by awk script in Makefile.am to generate alldescs.c */ #define MS_FILTER_DESC_EXPORT(desc) +/* xgettext markup */ +#define N_(String) String #endif diff --git a/linphone/mediastreamer2/src/alaw.c b/linphone/mediastreamer2/src/alaw.c index ff07ce1da..3ac08a200 100644 --- a/linphone/mediastreamer2/src/alaw.c +++ b/linphone/mediastreamer2/src/alaw.c @@ -141,7 +141,7 @@ static MSFilterMethod enc_methods[]={ MSFilterDesc ms_alaw_enc_desc={ MS_ALAW_ENC_ID, "MSAlawEnc", - "ITU-G.711 alaw encoder", + N_("ITU-G.711 alaw encoder"), MS_FILTER_ENCODER, "pcma", 1, @@ -159,7 +159,7 @@ MSFilterDesc ms_alaw_enc_desc={ MSFilterDesc ms_alaw_enc_desc={ .id=MS_ALAW_ENC_ID, .name="MSAlawEnc", - .text="ITU-G.711 alaw encoder", + .text=N_("ITU-G.711 alaw encoder"), .category=MS_FILTER_ENCODER, .enc_fmt="pcma", .ninputs=1, @@ -191,7 +191,7 @@ static void alaw_dec_process(MSFilter *obj){ MSFilterDesc ms_alaw_dec_desc={ MS_ALAW_DEC_ID, "MSAlawDec", - "ITU-G.711 alaw decoder", + N_("ITU-G.711 alaw decoder"), MS_FILTER_DECODER, "pcma", 1, @@ -208,7 +208,7 @@ MSFilterDesc ms_alaw_dec_desc={ MSFilterDesc ms_alaw_dec_desc={ .id=MS_ALAW_DEC_ID, .name="MSAlawDec", - .text="ITU-G.711 alaw decoder", + .text=N_("ITU-G.711 alaw decoder"), .category=MS_FILTER_DECODER, .enc_fmt="pcma", .ninputs=1, diff --git a/linphone/mediastreamer2/src/alsa.c b/linphone/mediastreamer2/src/alsa.c index b966f7125..df79c2575 100644 --- a/linphone/mediastreamer2/src/alsa.c +++ b/linphone/mediastreamer2/src/alsa.c @@ -887,7 +887,7 @@ MSFilterMethod alsa_read_methods[]={ MSFilterDesc alsa_read_desc={ .id=MS_ALSA_READ_ID, .name="MSAlsaRead", - .text="Alsa sound source", + .text=N_("Alsa sound source"), .category=MS_FILTER_OTHER, .ninputs=0, .noutputs=1, @@ -984,7 +984,7 @@ MSFilterMethod alsa_write_methods[]={ MSFilterDesc alsa_write_desc={ .id=MS_ALSA_WRITE_ID, .name="MSAlsaWrite", - .text="Alsa sound output", + .text=N_("Alsa sound output"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=0, diff --git a/linphone/mediastreamer2/src/aqsnd.c b/linphone/mediastreamer2/src/aqsnd.c index 6d986444f..81d784134 100644 --- a/linphone/mediastreamer2/src/aqsnd.c +++ b/linphone/mediastreamer2/src/aqsnd.c @@ -600,7 +600,7 @@ static MSFilterMethod aq_methods[]={ MSFilterDesc aq_read_desc={ .id=MS_AQ_READ_ID, .name="MSAQRead", - .text="Sound capture filter for MacOS X Audio Queue Service", + .text=N_("Sound capture filter for MacOS X Audio Queue Service"), .category=MS_FILTER_OTHER, .ninputs=0, .noutputs=1, @@ -614,7 +614,7 @@ MSFilterDesc aq_read_desc={ MSFilterDesc aq_write_desc={ .id=MS_AQ_WRITE_ID, .name="MSAQWrite", - .text="Sound playback filter for MacOS X Audio Queue Service", + .text=N_("Sound playback filter for MacOS X Audio Queue Service"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=0, diff --git a/linphone/mediastreamer2/src/dtmfgen.c b/linphone/mediastreamer2/src/dtmfgen.c index 0390986fd..74cbeb17e 100644 --- a/linphone/mediastreamer2/src/dtmfgen.c +++ b/linphone/mediastreamer2/src/dtmfgen.c @@ -170,7 +170,7 @@ MSFilterMethod dtmfgen_methods[]={ MSFilterDesc ms_dtmf_gen_desc={ MS_DTMF_GEN_ID, "MSDtmfGen", - "DTMF generator", + N_("DTMF generator"), MS_FILTER_OTHER, NULL, 1, @@ -188,7 +188,7 @@ MSFilterDesc ms_dtmf_gen_desc={ MSFilterDesc ms_dtmf_gen_desc={ .id=MS_DTMF_GEN_ID, .name="MSDtmfGen", - .text="DTMF generator", + .text=N_("DTMF generator"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=1, diff --git a/linphone/mediastreamer2/src/gsm.c b/linphone/mediastreamer2/src/gsm.c index 575a79bc0..6cc62ec7d 100644 --- a/linphone/mediastreamer2/src/gsm.c +++ b/linphone/mediastreamer2/src/gsm.c @@ -67,7 +67,7 @@ static void enc_process(MSFilter *f){ MSFilterDesc ms_gsm_enc_desc={ MS_GSM_ENC_ID, "MSGsmEnc", - "The GSM full-rate codec", + N_("The GSM full-rate codec"), MS_FILTER_ENCODER, "gsm", 1, @@ -85,7 +85,7 @@ MSFilterDesc ms_gsm_enc_desc={ MSFilterDesc ms_gsm_enc_desc={ .id=MS_GSM_ENC_ID, .name="MSGsmEnc", - .text="The GSM full-rate codec", + .text=N_("The GSM full-rate codec"), .category=MS_FILTER_ENCODER, .enc_fmt="gsm", .ninputs=1, @@ -131,7 +131,7 @@ static void dec_process(MSFilter *f){ MSFilterDesc ms_gsm_dec_desc={ MS_GSM_DEC_ID, "MSGsmDec", - "The GSM codec", + N_("The GSM codec"), MS_FILTER_DECODER, "gsm", 1, @@ -149,7 +149,7 @@ MSFilterDesc ms_gsm_dec_desc={ MSFilterDesc ms_gsm_dec_desc={ .id=MS_GSM_DEC_ID, .name="MSGsmDec", - .text="The GSM codec", + .text=N_("The GSM codec"), .category=MS_FILTER_DECODER, .enc_fmt="gsm", .ninputs=1, diff --git a/linphone/mediastreamer2/src/macsnd.c b/linphone/mediastreamer2/src/macsnd.c index da44fc3f9..0b54ab19a 100644 --- a/linphone/mediastreamer2/src/macsnd.c +++ b/linphone/mediastreamer2/src/macsnd.c @@ -659,7 +659,7 @@ static MSFilterMethod ca_methods[]={ MSFilterDesc ca_read_desc={ .id=MS_CA_READ_ID, .name="MSCARead", - .text="Sound capture filter for MacOS X Core Audio drivers", + .text=N_("Sound capture filter for MacOS X Core Audio drivers"), .category=MS_FILTER_OTHER, .ninputs=0, .noutputs=1, @@ -673,7 +673,7 @@ MSFilterDesc ca_read_desc={ MSFilterDesc ca_write_desc={ .id=MS_CA_WRITE_ID, .name="MSCAWrite", - .text="Sound playback filter for MacOS X Core Audio drivers", + .text=N_("Sound playback filter for MacOS X Core Audio drivers"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=0, diff --git a/linphone/mediastreamer2/src/msconf.c b/linphone/mediastreamer2/src/msconf.c index d6ccd7131..cfb78cd4e 100644 --- a/linphone/mediastreamer2/src/msconf.c +++ b/linphone/mediastreamer2/src/msconf.c @@ -562,7 +562,7 @@ static MSFilterMethod msconf_methods[]={ MSFilterDesc ms_conf_desc={ MS_CONF_ID, "MSConf", - "A filter to make conferencing", + N_("A filter to make conferencing"), MS_FILTER_OTHER, NULL, CONF_MAX_PINS, @@ -580,7 +580,7 @@ MSFilterDesc ms_conf_desc={ MSFilterDesc ms_conf_desc={ .id=MS_CONF_ID, .name="MSConf", - .text="A filter to make conferencing", + .text=N_("A filter to make conferencing"), .category=MS_FILTER_OTHER, .ninputs=CONF_MAX_PINS, .noutputs=CONF_MAX_PINS, diff --git a/linphone/mediastreamer2/src/msfileplayer.c b/linphone/mediastreamer2/src/msfileplayer.c index c166e5db4..dc315dbc1 100644 --- a/linphone/mediastreamer2/src/msfileplayer.c +++ b/linphone/mediastreamer2/src/msfileplayer.c @@ -271,7 +271,7 @@ static MSFilterMethod player_methods[]={ MSFilterDesc ms_file_player_desc={ MS_FILE_PLAYER_ID, "MSFilePlayer", - "Raw files and wav reader", + N_("Raw files and wav reader"), MS_FILTER_OTHER, NULL, 0, @@ -289,7 +289,7 @@ MSFilterDesc ms_file_player_desc={ MSFilterDesc ms_file_player_desc={ .id=MS_FILE_PLAYER_ID, .name="MSFilePlayer", - .text="Raw files and wav reader", + .text=N_("Raw files and wav reader"), .category=MS_FILTER_OTHER, .ninputs=0, .noutputs=1, diff --git a/linphone/mediastreamer2/src/msfilerec.c b/linphone/mediastreamer2/src/msfilerec.c index fc548ed49..78035492b 100644 --- a/linphone/mediastreamer2/src/msfilerec.c +++ b/linphone/mediastreamer2/src/msfilerec.c @@ -167,7 +167,7 @@ static MSFilterMethod rec_methods[]={ MSFilterDesc ms_file_rec_desc={ MS_FILE_REC_ID, "MSFileRec", - "Wav file recorder", + N_("Wav file recorder"), MS_FILTER_OTHER, NULL, 1, @@ -185,7 +185,7 @@ MSFilterDesc ms_file_rec_desc={ MSFilterDesc ms_file_rec_desc={ .id=MS_FILE_REC_ID, .name="MSFileRec", - .text="Wav file recorder", + .text=N_("Wav file recorder"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=0, diff --git a/linphone/mediastreamer2/src/msfilerec_win.c b/linphone/mediastreamer2/src/msfilerec_win.c index 07b069351..1e0503a06 100644 --- a/linphone/mediastreamer2/src/msfilerec_win.c +++ b/linphone/mediastreamer2/src/msfilerec_win.c @@ -204,7 +204,7 @@ static MSFilterMethod rec_methods[]={ MSFilterDesc ms_file_rec_desc={ MS_FILE_REC_ID, "MSFileRec", - "Wav file recorder", + N_("Wav file recorder"), MS_FILTER_OTHER, NULL, 1, @@ -222,7 +222,7 @@ MSFilterDesc ms_file_rec_desc={ MSFilterDesc ms_file_rec_desc={ .id=MS_FILE_REC_ID, .name="MSFileRec", - .text="Wav file recorder", + .text=N_("Wav file recorder"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=0, diff --git a/linphone/mediastreamer2/src/msjoin.c b/linphone/mediastreamer2/src/msjoin.c index 3e5e4ab60..9d04b0c1b 100644 --- a/linphone/mediastreamer2/src/msjoin.c +++ b/linphone/mediastreamer2/src/msjoin.c @@ -42,7 +42,7 @@ static void join_process(MSFilter *f){ MSFilterDesc ms_join_desc={ MS_JOIN_ID, "MSJoin", - "A filter that send several inputs to one output.", + N_("A filter that send several inputs to one output."), MS_FILTER_OTHER, NULL, 2, @@ -60,7 +60,7 @@ MSFilterDesc ms_join_desc={ MSFilterDesc ms_join_desc={ .id=MS_JOIN_ID, .name="MSJoin", - .text="A filter that send several inputs to one output.", + .text=N_("A filter that send several inputs to one output."), .category=MS_FILTER_OTHER, .ninputs=2, .noutputs=1, diff --git a/linphone/mediastreamer2/src/msresample.c b/linphone/mediastreamer2/src/msresample.c index 4679e049b..e68a4a057 100644 --- a/linphone/mediastreamer2/src/msresample.c +++ b/linphone/mediastreamer2/src/msresample.c @@ -144,7 +144,7 @@ static MSFilterMethod enc_methods[]={ MSFilterDesc ms_resample_desc={ MS_RESAMPLE_ID, "MSResample", - "frequency resampler", + N_("frequency resampler"), MS_FILTER_OTHER, NULL, 1, @@ -162,7 +162,7 @@ MSFilterDesc ms_resample_desc={ MSFilterDesc ms_resample_desc={ .id=MS_RESAMPLE_ID, .name="MSResample", - .text="frequency resampler", + .text=N_("frequency resampler"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=1, diff --git a/linphone/mediastreamer2/src/msrtp.c b/linphone/mediastreamer2/src/msrtp.c index eba35f1b7..84d5d07a6 100644 --- a/linphone/mediastreamer2/src/msrtp.c +++ b/linphone/mediastreamer2/src/msrtp.c @@ -250,7 +250,7 @@ static MSFilterMethod sender_methods[] = { MSFilterDesc ms_rtp_send_desc = { MS_RTP_SEND_ID, "MSRtpSend", - "RTP output filter", + N_("RTP output filter"), MS_FILTER_OTHER, NULL, 1, @@ -268,7 +268,7 @@ MSFilterDesc ms_rtp_send_desc = { MSFilterDesc ms_rtp_send_desc = { .id = MS_RTP_SEND_ID, .name = "MSRtpSend", - .text = "RTP output filter", + .text = N_("RTP output filter"), .category = MS_FILTER_OTHER, .ninputs = 1, .noutputs = 0, @@ -409,7 +409,7 @@ static MSFilterMethod receiver_methods[] = { MSFilterDesc ms_rtp_recv_desc = { MS_RTP_RECV_ID, "MSRtpRecv", - "RTP input filter", + N_("RTP input filter"), MS_FILTER_OTHER, NULL, 0, @@ -427,7 +427,7 @@ MSFilterDesc ms_rtp_recv_desc = { MSFilterDesc ms_rtp_recv_desc = { .id = MS_RTP_RECV_ID, .name = "MSRtpRecv", - .text = "RTP input filter", + .text = N_("RTP input filter"), .category = MS_FILTER_OTHER, .ninputs = 0, .noutputs = 1, diff --git a/linphone/mediastreamer2/src/msspeex.c b/linphone/mediastreamer2/src/msspeex.c index 10eb58d83..b7aa13a6b 100644 --- a/linphone/mediastreamer2/src/msspeex.c +++ b/linphone/mediastreamer2/src/msspeex.c @@ -383,7 +383,7 @@ static MSFilterMethod enc_methods[]={ MSFilterDesc ms_speex_enc_desc={ MS_SPEEX_ENC_ID, "MSSpeexEnc", - "The free and wonderful speex codec", + N_("The free and wonderful speex codec"), MS_FILTER_ENCODER, "speex", 1, @@ -401,7 +401,7 @@ MSFilterDesc ms_speex_enc_desc={ MSFilterDesc ms_speex_enc_desc={ .id=MS_SPEEX_ENC_ID, .name="MSSpeexEnc", - .text="The free and wonderful speex codec", + .text=N_("The free and wonderful speex codec"), .category=MS_FILTER_ENCODER, .enc_fmt="speex", .ninputs=1, @@ -528,7 +528,7 @@ static MSFilterMethod dec_methods[]={ MSFilterDesc ms_speex_dec_desc={ MS_SPEEX_DEC_ID, "MSSpeexDec", - "The free and wonderful speex codec", + N_("The free and wonderful speex codec"), MS_FILTER_DECODER, "speex", 1, @@ -546,7 +546,7 @@ MSFilterDesc ms_speex_dec_desc={ MSFilterDesc ms_speex_dec_desc={ .id=MS_SPEEX_DEC_ID, .name="MSSpeexDec", - .text="The free and wonderful speex codec", + .text=N_("The free and wonderful speex codec"), .category=MS_FILTER_DECODER, .enc_fmt="speex", .ninputs=1, diff --git a/linphone/mediastreamer2/src/msv4l.c b/linphone/mediastreamer2/src/msv4l.c index 8e0cbdc6a..635f789b5 100644 --- a/linphone/mediastreamer2/src/msv4l.c +++ b/linphone/mediastreamer2/src/msv4l.c @@ -1006,7 +1006,7 @@ static int v4l_set_devfile(MSFilter *f, void *arg){ MSFilterDesc ms_v4l_desc={ .id=MS_V4L_ID, .name="MSV4l", - .text="A video4linux compatible source filter to stream pictures.", + .text=N_("A video4linux compatible source filter to stream pictures."), .ninputs=0, .noutputs=1, .category=MS_FILTER_OTHER, diff --git a/linphone/mediastreamer2/src/msv4l2.c b/linphone/mediastreamer2/src/msv4l2.c index 267db5e3a..c86b3fcbd 100644 --- a/linphone/mediastreamer2/src/msv4l2.c +++ b/linphone/mediastreamer2/src/msv4l2.c @@ -452,7 +452,7 @@ static MSFilterMethod v4l2_methods[]={ MSFilterDesc ms_v4l2_desc={ .id=MS_V4L2_CAPTURE_ID, .name="MSV4L2Capture", - .text="A filter to grab pictures from Video4Linux2-powered cameras", + .text=N_("A filter to grab pictures from Video4Linux2-powered cameras"), .category=MS_FILTER_OTHER, .ninputs=0, .noutputs=1, diff --git a/linphone/mediastreamer2/src/msv4m.c b/linphone/mediastreamer2/src/msv4m.c index 12ba947f9..761202867 100644 --- a/linphone/mediastreamer2/src/msv4m.c +++ b/linphone/mediastreamer2/src/msv4m.c @@ -491,7 +491,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_v4l_desc={ .id=MS_V4L_ID, .name="MSV4m", - .text="A video for macosx compatible source filter to stream pictures.", + .text=N_("A video for macosx compatible source filter to stream pictures."), .ninputs=0, .noutputs=1, .category=MS_FILTER_OTHER, diff --git a/linphone/mediastreamer2/src/msvolume.c b/linphone/mediastreamer2/src/msvolume.c index f47a14fde..437fdc919 100644 --- a/linphone/mediastreamer2/src/msvolume.c +++ b/linphone/mediastreamer2/src/msvolume.c @@ -67,7 +67,7 @@ static MSFilterMethod methods[]={ #ifndef _MSC_VER MSFilterDesc ms_volume_desc={ .name="MSVolume", - .text="A filter to make level measurements on 16 bits pcm audio stream", + .text=N_("A filter to make level measurements on 16 bits pcm audio stream"), .id=MS_VOLUME_ID, .category=MS_FILTER_OTHER, .ninputs=1, @@ -81,7 +81,7 @@ MSFilterDesc ms_volume_desc={ MSFilterDesc ms_volume_desc={ MS_VOLUME_ID, "MSVolume", - "A filter to make level measurements on 16 bits pcm audio stream", + N_("A filter to make level measurements on 16 bits pcm audio stream"), MS_FILTER_OTHER, NULL, 1, diff --git a/linphone/mediastreamer2/src/nowebcam.c b/linphone/mediastreamer2/src/nowebcam.c index c5c79e74b..7fb055d5a 100644 --- a/linphone/mediastreamer2/src/nowebcam.c +++ b/linphone/mediastreamer2/src/nowebcam.c @@ -223,7 +223,7 @@ MSFilterMethod static_image_methods[]={ MSFilterDesc ms_static_image_desc={ MS_STATIC_IMAGE_ID, "MSStaticImage", - "A filter that outputs a static image.", + N_("A filter that outputs a static image."), MS_FILTER_OTHER, NULL, 0, diff --git a/linphone/mediastreamer2/src/oss.c b/linphone/mediastreamer2/src/oss.c index 4aa7e0996..d6329ace9 100644 --- a/linphone/mediastreamer2/src/oss.c +++ b/linphone/mediastreamer2/src/oss.c @@ -554,7 +554,7 @@ static MSFilterMethod oss_methods[]={ MSFilterDesc oss_read_desc={ .id=MS_OSS_READ_ID, .name="MSOssRead", - .text="Sound capture filter for OSS drivers", + .text=N_("Sound capture filter for OSS drivers"), .category=MS_FILTER_OTHER, .ninputs=0, .noutputs=1, @@ -568,7 +568,7 @@ MSFilterDesc oss_read_desc={ MSFilterDesc oss_write_desc={ .id=MS_OSS_WRITE_ID, .name="MSOssWrite", - .text="Sound playback filter for OSS drivers", + .text=N_("Sound playback filter for OSS drivers"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=0, diff --git a/linphone/mediastreamer2/src/pixconv.c b/linphone/mediastreamer2/src/pixconv.c index a39b946dd..5bcd114fc 100644 --- a/linphone/mediastreamer2/src/pixconv.c +++ b/linphone/mediastreamer2/src/pixconv.c @@ -174,7 +174,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_pix_conv_desc={ MS_PIX_CONV_ID, "MSPixConv", - "A pixel format converter", + N_("A pixel format converter"), MS_FILTER_OTHER, NULL, 1, @@ -192,7 +192,7 @@ MSFilterDesc ms_pix_conv_desc={ MSFilterDesc ms_pix_conv_desc={ .id=MS_PIX_CONV_ID, .name="MSPixConv", - .text="A pixel format converter", + .text=N_("A pixel format converter"), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=1, diff --git a/linphone/mediastreamer2/src/sdlout.c b/linphone/mediastreamer2/src/sdlout.c index 641e57a97..0288cb295 100644 --- a/linphone/mediastreamer2/src/sdlout.c +++ b/linphone/mediastreamer2/src/sdlout.c @@ -342,7 +342,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_sdl_out_desc={ MS_SDL_OUT_ID, "MSSdlOut", - "A video display window using SDL", + N_("A video display window using SDL"), MS_FILTER_OTHER, NULL, 2, @@ -360,7 +360,7 @@ MSFilterDesc ms_sdl_out_desc={ MSFilterDesc ms_sdl_out_desc={ .id=MS_SDL_OUT_ID, .name="MSSdlOut", - .text="A video display window using SDL", + .text=N_("A video display window using SDL"), .category=MS_FILTER_OTHER, .ninputs=2, .noutputs=0, diff --git a/linphone/mediastreamer2/src/sizeconv.c b/linphone/mediastreamer2/src/sizeconv.c index 65146e34a..849525cc9 100644 --- a/linphone/mediastreamer2/src/sizeconv.c +++ b/linphone/mediastreamer2/src/sizeconv.c @@ -201,7 +201,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_size_conv_desc={ MS_SIZE_CONV_ID, "MSSizeConv", - "A video size converter", + N_("A video size converter"), MS_FILTER_OTHER, NULL, 1, @@ -219,7 +219,7 @@ MSFilterDesc ms_size_conv_desc={ MSFilterDesc ms_size_conv_desc={ .id=MS_SIZE_CONV_ID, .name="MSSizeConv", - .text="a small video size converter", + .text=N_("a small video size converter"), .ninputs=1, .noutputs=1, .init=size_conv_init, diff --git a/linphone/mediastreamer2/src/speexec.c b/linphone/mediastreamer2/src/speexec.c index 887b84d62..76574b435 100644 --- a/linphone/mediastreamer2/src/speexec.c +++ b/linphone/mediastreamer2/src/speexec.c @@ -287,7 +287,7 @@ static MSFilterMethod speex_ec_methods[]={ MSFilterDesc ms_speex_ec_desc={ MS_SPEEX_EC_ID, "MSSpeexEC", - "Echo canceler using speex library", + N_("Echo canceler using speex library"), MS_FILTER_OTHER, NULL, 2, @@ -305,7 +305,7 @@ MSFilterDesc ms_speex_ec_desc={ MSFilterDesc ms_speex_ec_desc={ .id=MS_SPEEX_EC_ID, .name="MSSpeexEC", - .text="Echo canceler using speex library", + .text=N_("Echo canceler using speex library"), .category=MS_FILTER_OTHER, .ninputs=2, .noutputs=2, diff --git a/linphone/mediastreamer2/src/tee.c b/linphone/mediastreamer2/src/tee.c index fd300fef0..23c5be4c0 100644 --- a/linphone/mediastreamer2/src/tee.c +++ b/linphone/mediastreamer2/src/tee.c @@ -77,7 +77,7 @@ static MSFilterMethod tee_methods[]={ MSFilterDesc ms_tee_desc={ MS_TEE_ID, "MSTee", - "A filter that reads from input and copy to its multiple outputs.", + N_("A filter that reads from input and copy to its multiple outputs."), MS_FILTER_OTHER, NULL, 1, @@ -95,7 +95,7 @@ MSFilterDesc ms_tee_desc={ MSFilterDesc ms_tee_desc={ .id=MS_TEE_ID, .name="MSTee", - .text="A filter that reads from input and copy to its multiple outputs.", + .text=N_("A filter that reads from input and copy to its multiple outputs."), .category=MS_FILTER_OTHER, .ninputs=1, .noutputs=MS_TEE_NOUTPUTS, diff --git a/linphone/mediastreamer2/src/theora.c b/linphone/mediastreamer2/src/theora.c index f36a3ae93..356ef66d7 100644 --- a/linphone/mediastreamer2/src/theora.c +++ b/linphone/mediastreamer2/src/theora.c @@ -369,7 +369,7 @@ static MSFilterMethod enc_methods[]={ MSFilterDesc ms_theora_enc_desc={ MS_THEORA_ENC_ID, "MSTheoraEnc", - "The theora video encoder from xiph.org", + N_("The theora video encoder from xiph.org"), MS_FILTER_ENCODER, "theora", 1, @@ -387,7 +387,7 @@ MSFilterDesc ms_theora_enc_desc={ MSFilterDesc ms_theora_enc_desc={ .id=MS_THEORA_ENC_ID, .name="MSTheoraEnc", - .text="The open-source and royalty-free 'theora' video codec from xiph.org", + .text=N_("The open-source and royalty-free 'theora' video codec from xiph.org"), .category=MS_FILTER_ENCODER, .enc_fmt="theora", .ninputs=1, @@ -555,7 +555,7 @@ static void dec_process(MSFilter *f){ MSFilterDesc ms_theora_dec_desc={ MS_THEORA_DEC_ID, "MSTheoraDec", - "The theora video decoder from xiph.org", + N_("The theora video decoder from xiph.org"), MS_FILTER_DECODER, "theora", 1, @@ -573,7 +573,7 @@ MSFilterDesc ms_theora_dec_desc={ MSFilterDesc ms_theora_dec_desc={ .id=MS_THEORA_DEC_ID, .name="MSTheoraDec", - .text="The theora video decoder from xiph.org", + .text=N_("The theora video decoder from xiph.org"), .category=MS_FILTER_DECODER, .enc_fmt="theora", .ninputs=1, diff --git a/linphone/mediastreamer2/src/ulaw.c b/linphone/mediastreamer2/src/ulaw.c index de1c6788e..5d948f434 100644 --- a/linphone/mediastreamer2/src/ulaw.c +++ b/linphone/mediastreamer2/src/ulaw.c @@ -143,7 +143,7 @@ static MSFilterMethod enc_methods[]={ MSFilterDesc ms_ulaw_enc_desc={ MS_ULAW_ENC_ID, "MSUlawEnc", - "ITU-G.711 ulaw encoder", + N_("ITU-G.711 ulaw encoder"), MS_FILTER_ENCODER, "pcmu", 1, @@ -161,7 +161,7 @@ MSFilterDesc ms_ulaw_enc_desc={ MSFilterDesc ms_ulaw_enc_desc={ .id=MS_ULAW_ENC_ID, .name="MSUlawEnc", - .text="ITU-G.711 ulaw encoder", + .text=N_("ITU-G.711 ulaw encoder"), .category=MS_FILTER_ENCODER, .enc_fmt="pcmu", .ninputs=1, @@ -193,7 +193,7 @@ static void ulaw_dec_process(MSFilter *obj){ MSFilterDesc ms_ulaw_dec_desc={ MS_ULAW_DEC_ID, "MSUlawDec", - "ITU-G.711 ulaw decoder", + N_("ITU-G.711 ulaw decoder"), MS_FILTER_DECODER, "pcmu", 1, @@ -211,7 +211,7 @@ MSFilterDesc ms_ulaw_dec_desc={ MSFilterDesc ms_ulaw_dec_desc={ .id=MS_ULAW_DEC_ID, .name="MSUlawDec", - .text="ITU-G.711 ulaw decoder", + .text=N_("ITU-G.711 ulaw decoder"), .category=MS_FILTER_DECODER, .enc_fmt="pcmu", .ninputs=1, diff --git a/linphone/mediastreamer2/src/videodec.c b/linphone/mediastreamer2/src/videodec.c index 2793ffef1..4aea27cdd 100644 --- a/linphone/mediastreamer2/src/videodec.c +++ b/linphone/mediastreamer2/src/videodec.c @@ -294,7 +294,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_h263_dec_desc={ MS_H263_DEC_ID, "MSH263Dec", - "A H.263 decoder using ffmpeg library", + N_("A H.263 decoder using ffmpeg library"), MS_FILTER_DECODER, "H263-1998", 1, @@ -310,7 +310,7 @@ MSFilterDesc ms_h263_dec_desc={ MSFilterDesc ms_h263_old_dec_desc={ MS_H263_DEC_ID, "MSH263OldDec", - "A H.263 decoder using ffmpeg library", + N_("A H.263 decoder using ffmpeg library"), MS_FILTER_DECODER, "H263", 1, @@ -327,7 +327,7 @@ MSFilterDesc ms_h263_old_dec_desc={ MSFilterDesc ms_mpeg4_dec_desc={ MS_MPEG4_DEC_ID, "MSMpeg4Dec", - "A MPEG4 decoder using ffmpeg library", + N_("A MPEG4 decoder using ffmpeg library"), MS_FILTER_DECODER, "MP4V-ES", 1, @@ -343,7 +343,7 @@ MSFilterDesc ms_mpeg4_dec_desc={ MSFilterDesc ms_mjpeg_dec_desc={ MS_MJPEG_DEC_ID, "MSMJpegDec", - "A MJPEG decoder using ffmpeg library", + N_("A MJPEG decoder using ffmpeg library"), MS_FILTER_DECODER, "MJPEG", 1, @@ -359,7 +359,7 @@ MSFilterDesc ms_mjpeg_dec_desc={ MSFilterDesc ms_snow_dec_desc={ MS_SNOW_DEC_ID, "MSSnowDec", - "A snow decoder using ffmpeg library", + N_("A snow decoder using ffmpeg library"), MS_FILTER_DECODER, "snow", 1, @@ -377,7 +377,7 @@ MSFilterDesc ms_snow_dec_desc={ MSFilterDesc ms_h263_dec_desc={ .id=MS_H263_DEC_ID, .name="MSH263Dec", - .text="A H.263 decoder using ffmpeg library", + .text=N_("A H.263 decoder using ffmpeg library"), .category=MS_FILTER_DECODER, .enc_fmt="H263-1998", .ninputs=1, @@ -393,7 +393,7 @@ MSFilterDesc ms_h263_dec_desc={ MSFilterDesc ms_h263_old_dec_desc={ .id=MS_H263_OLD_DEC_ID, .name="MSH263OldDec", - .text="A H.263 decoder using ffmpeg library", + .text=N_("A H.263 decoder using ffmpeg library"), .category=MS_FILTER_DECODER, .enc_fmt="H263", .ninputs=1, diff --git a/linphone/mediastreamer2/src/videoenc.c b/linphone/mediastreamer2/src/videoenc.c index 5e3867894..d40d40858 100644 --- a/linphone/mediastreamer2/src/videoenc.c +++ b/linphone/mediastreamer2/src/videoenc.c @@ -576,7 +576,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_h263_enc_desc={ MS_H263_ENC_ID, "MSH263Enc", - "A video H.263 encoder using ffmpeg library.", + N_("A video H.263 encoder using ffmpeg library."), MS_FILTER_ENCODER, "H263-1998", 1, /*MS_YUV420P is assumed on this input */ @@ -592,7 +592,7 @@ MSFilterDesc ms_h263_enc_desc={ MSFilterDesc ms_h263_old_enc_desc={ MS_H263_OLD_ENC_ID, "MSH263OldEnc", - "A video H.263 encoder using ffmpeg library. It is compliant with old RFC2190 spec.", + N_("A video H.263 encoder using ffmpeg library. It is compliant with old RFC2190 spec."), MS_FILTER_ENCODER, "H263", 1, /*MS_YUV420P is assumed on this input */ @@ -608,7 +608,7 @@ MSFilterDesc ms_h263_old_enc_desc={ MSFilterDesc ms_mpeg4_enc_desc={ MS_MPEG4_ENC_ID, "MSMpeg4Enc", - "A video MPEG4 encoder using ffmpeg library.", + N_("A video MPEG4 encoder using ffmpeg library."), MS_FILTER_ENCODER, "MP4V-ES", 1, /*MS_YUV420P is assumed on this input */ @@ -624,7 +624,7 @@ MSFilterDesc ms_mpeg4_enc_desc={ MSFilterDesc ms_snow_enc_desc={ MS_SNOW_ENC_ID, "MSSnowEnc", - "A video snow encoder using ffmpeg library.", + N_("A video snow encoder using ffmpeg library."), MS_FILTER_ENCODER, "x-snow", 1, /*MS_YUV420P is assumed on this input */ @@ -642,7 +642,7 @@ MSFilterDesc ms_snow_enc_desc={ MSFilterDesc ms_h263_enc_desc={ .id=MS_H263_ENC_ID, .name="MSH263Enc", - .text="A video H.263 encoder using ffmpeg library.", + .text=N_("A video H.263 encoder using ffmpeg library."), .category=MS_FILTER_ENCODER, .enc_fmt="H263-1998", .ninputs=1, /*MS_YUV420P is assumed on this input */ @@ -658,7 +658,7 @@ MSFilterDesc ms_h263_enc_desc={ MSFilterDesc ms_h263_old_enc_desc={ .id=MS_H263_OLD_ENC_ID, .name="MSH263Enc", - .text="A video H.263 encoder using ffmpeg library, compliant with old RFC2190 spec.", + .text=N_("A video H.263 encoder using ffmpeg library, compliant with old RFC2190 spec."), .category=MS_FILTER_ENCODER, .enc_fmt="H263", .ninputs=1, /*MS_YUV420P is assumed on this input */ @@ -674,7 +674,7 @@ MSFilterDesc ms_h263_old_enc_desc={ MSFilterDesc ms_mpeg4_enc_desc={ .id=MS_MPEG4_ENC_ID, .name="MSMpeg4Enc", - .text="A video MPEG4 encoder using ffmpeg library.", + .text=N_("A video MPEG4 encoder using ffmpeg library."), .category=MS_FILTER_ENCODER, .enc_fmt="MP4V-ES", .ninputs=1, /*MS_YUV420P is assumed on this input */ @@ -690,11 +690,11 @@ MSFilterDesc ms_mpeg4_enc_desc={ MSFilterDesc ms_snow_enc_desc={ .id=MS_SNOW_ENC_ID, .name="MSSnowEnc", - .text="The snow codec is royalty-free and is open-source. \n" + .text=N_("The snow codec is royalty-free and is open-source. \n" "It uses innovative techniques that makes it one of the best video " "codec. It is implemented within the ffmpeg project.\n" "However it is under development and compatibility with other versions " - "cannot be guaranteed.", + "cannot be guaranteed."), .category=MS_FILTER_ENCODER, .enc_fmt="x-snow", .ninputs=1, /*MS_YUV420P is assumed on this input */ diff --git a/linphone/mediastreamer2/src/videoout.c b/linphone/mediastreamer2/src/videoout.c index e3a86f10e..ab215ef07 100644 --- a/linphone/mediastreamer2/src/videoout.c +++ b/linphone/mediastreamer2/src/videoout.c @@ -842,7 +842,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_video_out_desc={ MS_VIDEO_OUT_ID, "MSVideoOut", - "A generic video display", + N_("A generic video display"), MS_FILTER_OTHER, NULL, 2, @@ -860,7 +860,7 @@ MSFilterDesc ms_video_out_desc={ MSFilterDesc ms_video_out_desc={ .id=MS_VIDEO_OUT_ID, .name="MSVideoOut", - .text="A generic video display", + .text=N_("A generic video display"), .category=MS_FILTER_OTHER, .ninputs=2, .noutputs=0, diff --git a/linphone/mediastreamer2/src/wincevideods.c b/linphone/mediastreamer2/src/wincevideods.c index 160cbb6ee..d79d82113 100644 --- a/linphone/mediastreamer2/src/wincevideods.c +++ b/linphone/mediastreamer2/src/wincevideods.c @@ -963,7 +963,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_v4w_desc={ MS_V4L_ID, "MSV4w", - "A video4windows compatible source filter to stream pictures.", + N_("A video4windows compatible source filter to stream pictures."), MS_FILTER_OTHER, NULL, 0, @@ -981,7 +981,7 @@ MSFilterDesc ms_v4w_desc={ MSFilterDesc ms_v4w_desc={ .id=MS_V4L_ID, .name="MSV4w", - .text="A video4windows compatible source filter to stream pictures.", + .text=N_("A video4windows compatible source filter to stream pictures."), .ninputs=0, .noutputs=1, .category=MS_FILTER_OTHER, diff --git a/linphone/mediastreamer2/src/winvideo.c b/linphone/mediastreamer2/src/winvideo.c index 1fde96c30..91c123ba4 100644 --- a/linphone/mediastreamer2/src/winvideo.c +++ b/linphone/mediastreamer2/src/winvideo.c @@ -593,7 +593,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_v4w_desc={ MS_V4L_ID, "MSV4w", - "A video4windows compatible source filter to stream pictures.", + N_("A video4windows compatible source filter to stream pictures."), MS_FILTER_OTHER, NULL, 0, @@ -611,7 +611,7 @@ MSFilterDesc ms_v4w_desc={ MSFilterDesc ms_v4w_desc={ .id=MS_V4L_ID, .name="MSV4w", - .text="A video4windows compatible source filter to stream pictures.", + .text=N_("A video4windows compatible source filter to stream pictures."), .ninputs=0, .noutputs=1, .category=MS_FILTER_OTHER, diff --git a/linphone/mediastreamer2/src/winvideo2.c b/linphone/mediastreamer2/src/winvideo2.c index e770a4991..a5ec16c4f 100755 --- a/linphone/mediastreamer2/src/winvideo2.c +++ b/linphone/mediastreamer2/src/winvideo2.c @@ -433,7 +433,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_vfw_desc={ MS_VFW_ID, "MSVfw", - "A video for windows (vfw.h) based source filter to grab pictures.", + N_("A video for windows (vfw.h) based source filter to grab pictures."), MS_FILTER_OTHER, NULL, 0, @@ -451,7 +451,7 @@ MSFilterDesc ms_vfw_desc={ MSFilterDesc ms_vfw_desc={ .id=MS_VFW_ID, .name="MSVfw", - .text="A video for windows (vfw.h) based source filter to grab pictures.", + .text=N_("A video for windows (vfw.h) based source filter to grab pictures."), .ninputs=0, .noutputs=1, .category=MS_FILTER_OTHER, diff --git a/linphone/mediastreamer2/src/winvideods.c b/linphone/mediastreamer2/src/winvideods.c index fc9d2adc3..eb0d8e5ae 100644 --- a/linphone/mediastreamer2/src/winvideods.c +++ b/linphone/mediastreamer2/src/winvideods.c @@ -1419,7 +1419,7 @@ static MSFilterMethod methods[]={ MSFilterDesc ms_v4w_desc={ MS_V4L_ID, "MSV4w", - "A video4windows compatible source filter to stream pictures.", + N_("A video4windows compatible source filter to stream pictures."), MS_FILTER_OTHER, NULL, 0, @@ -1437,7 +1437,7 @@ MSFilterDesc ms_v4w_desc={ MSFilterDesc ms_v4w_desc={ .id=MS_V4L_ID, .name="MSV4w", - .text="A video4windows compatible source filter to stream pictures.", + .text=N_("A video4windows compatible source filter to stream pictures."), .ninputs=0, .noutputs=1, .category=MS_FILTER_OTHER, diff --git a/linphone/po/POTFILES.in b/linphone/po/POTFILES.in index de2d8d3a6..7b4feed9e 100644 --- a/linphone/po/POTFILES.in +++ b/linphone/po/POTFILES.in @@ -21,4 +21,5 @@ coreapi/linphonecore.c coreapi/misc.c coreapi/exevents.c coreapi/presence.c +coreapi/friends.c