Commit 0d2c5a89 authored by Clément Stenac's avatar Clément Stenac

Strings (Refs:#438)

parent 07d375a8
......@@ -45,7 +45,7 @@
#define INDEX_TEXT N_("Force index creation")
#define INDEX_LONGTEXT N_( \
"Recreate a index for the AVI file. Use this if your AVI file is damaged "\
"or incomplete (not seekable)" )
"or incomplete (not seekable)." )
static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
......@@ -1167,8 +1167,8 @@ static int Seek( demux_t *p_demux, mtime_t i_date, int i_percent )
int64_t i_pos;
/* use i_percent to create a true i_date */
msg_Warn( p_demux, "mmh, seeking without index at %d%%"
" work only for interleaved file", i_percent );
msg_Warn( p_demux, "seeking without index at %d%%"
" only works for interleaved files", i_percent );
if( i_percent >= 100 )
{
msg_Warn( p_demux, "cannot seek so far !" );
......@@ -2170,7 +2170,8 @@ static void AVI_IndexLoad_indx( demux_t *p_demux )
if( !p_indx )
{
msg_Warn( p_demux, "cannot find indx (misdetect/broken OpenDML file?)" );
msg_Warn( p_demux, "cannot find indx (misdetect/broken OpenDML "
"file?)" );
continue;
}
......
......@@ -35,13 +35,12 @@
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define FILE_TEXT N_("Filename of dump")
#define FILE_TEXT N_("Dump filename")
#define FILE_LONGTEXT N_( \
"Specify a file name to which the raw stream will be dumped." )
#define APPEND_TEXT N_("Append")
"Name of the file to which the raw stream will be dumped." )
#define APPEND_TEXT N_("Append to existing file")
#define APPEND_LONGTEXT N_( \
"If the file exists and this option is selected, the existing file " \
"will not be overwritten." )
"If the file already exists, it will not be overwritten." )
static int Open( vlc_object_t * );
static void Close ( vlc_object_t * );
......@@ -50,7 +49,7 @@ vlc_module_begin();
set_shortname("Dump");
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
set_description( _("Filedump demuxer") );
set_description( _("File dumpper") );
set_capability( "demux2", 0 );
add_file( "demuxdump-file", "stream-demux.dump", NULL, FILE_TEXT,
FILE_LONGTEXT, VLC_FALSE );
......
......@@ -41,12 +41,13 @@ static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
#define FPS_TEXT N_("Frames per Second")
#define FPS_LONGTEXT N_("Allows you to set the desired frame rate when " \
"playing from files, use 0 for live.")
#define FPS_LONGTEXT N_("This is the desired frame rate when " \
"playing MJPEG from a file. Use 0 (this is the default value) for a " \
"live stream (from the camera).")
vlc_module_begin();
set_shortname( "MJPEG");
set_description( _("JPEG camera demuxer") );
set_description( _("M-JPEG camera demuxer") );
set_capability( "demux2", 5 );
set_callbacks( Open, Close );
set_category( CAT_INPUT );
......
......@@ -44,6 +44,23 @@
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
#define NOISE_LONGTEXT N_("Enable noise reduction algorithm")
#define REVERB_LONGTEXT N_("Enable reverberation" )
#define REVERB_LEVEL_LONGTEXT N_( "Reverberation level (from 0 " \
"to 100, default value is 0)." )
#define REVERB_DELAY_LONGTEXT N_("Reverberation delay, in ms." \
" Usual values are from to 40 to 200ms." )
#define MEGABASS_LONGTEXT N_( "Enable megabass mode" )
#define MEGABASS_LEVEL_LONGTEXT N_("Megabass mode level (from 0 to 100, " \
"default value is 0)." )
#define MEGABASS_RANGE_LONGTEXT N_("Megabass mode cutoff frequency, in Hz." \
"This is the maximum frequency for which the megabass " \
"effect applies. Valid values are from 10 to 100 Hz" )
#define SURROUND_LEVEL_LONGTEXT N_( "Surround effect level (from 0 to 100, " \
"default value is 0)." )
#define SURROUND_DELAY_LONGTEXT N_("Surround delay, in ms. Usual values are " \
"from 5 to 40 ms" )
vlc_module_begin();
set_shortname( "MOD");
set_description( _("MOD demuxer (libmodplug)" ) );
......@@ -51,19 +68,29 @@ vlc_module_begin();
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
add_bool( "mod-noisereduction", VLC_TRUE, NULL, N_("Noise reduction"), N_("Noise reduction"), VLC_FALSE );
add_bool( "mod-reverb", VLC_FALSE, NULL, N_("Reverb"), N_("Reverb"), VLC_FALSE );
add_integer_with_range( "mod-reverb-level", 0, 0, 100, NULL, N_("Reverb level (0-100)"), N_("Reverb level (0-100 defaults to 0)"), VLC_FALSE );
add_integer_with_range( "mod-reverb-delay", 40, 0, 1000, NULL, N_("Reverb delay (ms)"), N_("Reverb delay in ms (usually 40-200ms)"), VLC_FALSE );
add_bool( "mod-megabass", VLC_FALSE, NULL, N_("Mega bass"), N_("Mega bass"), VLC_FALSE );
add_integer_with_range( "mod-megabass-level", 0, 0, 100, NULL, N_("Mega bass level (0-100)"), N_("Mega bass level (0-100 defaults to 0)"), VLC_FALSE );
add_integer_with_range( "mod-megabass-range", 10, 10, 100, NULL, N_("Mega bass cut off (Hz)"), N_("Mega bass cut off (10-100Hz)"), VLC_FALSE );
add_bool( "mod-surround", VLC_FALSE, NULL, N_("Surround"), N_("Surround"), VLC_FALSE );
add_integer_with_range( "mod-surround-level", 0, 0, 100, NULL, N_("Surround level (0-100)"), N_("Surround level (0-100 defaults to 0)"), VLC_FALSE );
add_integer_with_range( "mod-surround-delay", 5, 0, 1000, NULL, N_("Surround delay (ms)"), N_("Surround delay in ms (usually 5-40ms)"), VLC_FALSE );
add_bool( "mod-noisereduction", VLC_TRUE, NULL, N_("Noise reduction"),
NOISE_LONGTEXT, VLC_FALSE );
add_bool( "mod-reverb", VLC_FALSE, NULL, N_("Reverb"),
REVERB_LONGTEXT, VLC_FALSE );
add_integer_with_range( "mod-reverb-level", 0, 0, 100, NULL,
N_("Reverberation level"), REVERB_LEVEL_LONGTEXT, VLC_TRUE );
add_integer_with_range( "mod-reverb-delay", 40, 0, 1000, NULL,
N_("Reverberation delay"), REVERB_DELAY_LONGTEXT, VLC_TRUE );
add_bool( "mod-megabass", VLC_FALSE, NULL, N_("Mega bass"),
MEGABASS_LONGTEXT, VLC_FALSE );
add_integer_with_range( "mod-megabass-level", 0, 0, 100, NULL,
N_("Mega bass level"), MEGABASS_LEVEL_LONGTEXT, VLC_TRUE );
add_integer_with_range( "mod-megabass-range", 10, 10, 100, NULL,
N_("Mega bass cutoff"), MEGABASS_RANGE_LONGTEXT, VLC_TRUE );
add_bool( "mod-surround", VLC_FALSE, NULL, N_("Surround"), N_("Surround"),
VLC_FALSE );
add_integer_with_range( "mod-surround-level", 0, 0, 100, NULL,
N_("Surround level"), SURROUND_LEVEL_LONGTEXT, VLC_TRUE );
add_integer_with_range( "mod-surround-delay", 5, 0, 1000, NULL,
N_("Surround delay (ms)"), SURROUND_DELAY_LONGTEXT, VLC_TRUE );
set_callbacks( Open, Close );
add_shortcut( "mod" );
......
......@@ -44,7 +44,9 @@
* Module descriptor
*****************************************************************************/
#define REPLAYGAIN_TYPE_TEXT N_("Replay Gain type" )
#define REPLAYGAIN_TYPE_LONGTEXT N_( "Replay Gain type" )
#define REPLAYGAIN_TYPE_LONGTEXT N_( "Musepack can have a title-specific " \
"replay gain (volume control) or an album-specific one. " \
"Choose which type you want to use" )
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
......@@ -54,7 +56,7 @@ static char *ppsz_replaygain_type[] = { N_("None"), N_("Title"), N_("Album") };
vlc_module_begin();
set_shortname( "MPC" );
set_description( _("MPC demuxer") );
set_description( _("MusePack demuxer") );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
set_capability( "demux2", 145 );
......
......@@ -37,7 +37,7 @@ static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
#define FPS_TEXT N_("Frames per Second")
#define FPS_LONGTEXT N_("Allows you to set the desired frame rate.")
#define FPS_LONGTEXT N_("Desired frame rate for the H264 stream.")
vlc_module_begin();
......
......@@ -43,7 +43,7 @@ static void Close( vlc_object_t * );
vlc_module_begin();
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
set_description( _("MPEG-I/II audio demuxer" ) );
set_description( _("MPEG audio / MP3 demuxer" ) );
set_capability( "demux2", 100 );
set_callbacks( Open, Close );
add_shortcut( "mpga" );
......
......@@ -154,6 +154,7 @@ static int Demux( demux_t *p_demux )
msg_Warn( p_demux, "cannot peek" );
return 0;
}
fprintf( stderr, "4 first bytes Signature %x: %c%c%c%c\n", *(uint32_t*)p_peek ,p_peek[0], p_peek[1], p_peek[2],p_peek[3] );
if( !strncmp( (char *)p_peek, "NSVf", 4 ) )
{
......@@ -172,6 +173,7 @@ static int Demux( demux_t *p_demux )
}
else if( GetWLE( p_peek ) == 0xbeef )
{
fprintf( stderr, "Next frame\n");
/* Next frame of the current NSVs chunk */
if( stream_Read( p_demux->s, NULL, 2 ) < 2 )
{
......@@ -187,6 +189,7 @@ static int Demux( demux_t *p_demux )
{
return -1;
}
fprintf( stderr, "Resynchronized\n" );
}
}
......@@ -393,14 +396,16 @@ static int ReSynch( demux_t *p_demux )
return VLC_EGENERIC;
}
i_skip = 0;
fprintf( stderr, "Poke %i resync bytes\n", i_peek );
while( i_skip < i_peek - 4 )
{
if( !strncmp( (char *)p_peek, "NSVf", 4 )
|| !strncmp( (char *)p_peek, "NSVs", 4 ) )
{
fprintf( stderr, "Found NSVx chunk after %i\n", i_skip );
if( i_skip > 0 )
{
fprintf( stderr, "Skipping %i bytes\n", i_skip );
stream_Read( p_demux->s, NULL, i_skip );
}
return VLC_SUCCESS;
......
......@@ -40,7 +40,8 @@ static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
vlc_module_begin();
set_description( _("Ogg stream demuxer" ) );
set_shortname ( "OGG" );
set_description( _("OGG demuxer" ) );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
set_capability( "demux2", 50 );
......
......@@ -34,16 +34,16 @@
* Module descriptor
*****************************************************************************/
#define AUTOSTART_TEXT N_( "Auto start" )
#define AUTOSTART_LONGTEXT N_( "Automatically start the playlist when " \
"it's loaded.\n" )
#define AUTOSTART_LONGTEXT N_( "Automatically start playing the playlist " \
"content once it's loaded.\n" )
vlc_module_begin();
add_shortcut( "playlist" );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
add_bool( "playlist-autostart", 1, NULL, AUTOSTART_TEXT, AUTOSTART_LONGTEXT,
VLC_FALSE );
add_bool( "playlist-autostart", 1, NULL,
AUTOSTART_TEXT, AUTOSTART_LONGTEXT, VLC_FALSE );
set_shortname( _("Playlist") );
set_description( _("Playlist") );
......@@ -80,7 +80,7 @@ vlc_module_begin();
set_capability( "demux2", 10 );
set_callbacks( E_(Import_DVB), E_(Close_DVB) );
add_submodule();
set_description( _("Podcast playlist import") );
set_description( _("Podcast parser") );
add_shortcut( "podcast" );
set_capability( "demux2", 10 );
set_callbacks( E_(Import_podcast), E_(Close_podcast) );
......
......@@ -44,7 +44,7 @@ static int OpenAlt( vlc_object_t * );
static void Close ( vlc_object_t * );
vlc_module_begin();
set_description( _("PS demuxer") );
set_description( _("MPEG-PS demuxer") );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
set_capability( "demux2", 1 );
......@@ -52,7 +52,7 @@ vlc_module_begin();
add_shortcut( "ps" );
add_submodule();
set_description( _("PS demuxer") );
set_description( _("MPEG-PS demuxer") );
set_capability( "demux2", 9 );
set_callbacks( OpenAlt, Close );
vlc_module_end();
......
......@@ -36,7 +36,8 @@ static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
vlc_module_begin();
set_description( _("raw DV demuxer") );
set_shortname( "DV" );
set_description( _("DV (Digital Video) demuxer") );
set_capability( "demux2", 2 );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
......
......@@ -110,7 +110,7 @@ static int Activate ( vlc_object_t * );
static void Deactivate( vlc_object_t * );
vlc_module_begin();
set_description( _("Kasenna MediaBase metademux") );
set_description( _("Kasenna MediaBase parser") );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
set_capability( "demux2", 170 );
......
......@@ -44,13 +44,15 @@ static int Open ( vlc_object_t *p_this );
static void Close( vlc_object_t *p_this );
#define SUB_DELAY_LONGTEXT \
"Delay subtitles (in 1/10s)"
"Apply a delay to all subtitles (in 1/10s, eg 100 means 10s)."
#define SUB_FPS_LONGTEXT \
"Override frames per second. " \
"It will only work with MicroDVD subtitles."
"Override the normal frames per second settings. " \
"This will only work with MicroDVD and SubRIP (SRT) subtitles."
#define SUB_TYPE_LONGTEXT \
"One from \"microdvd\", \"subrip\", \"ssa1\", \"ssa2-4\", \"ass\", \"vplayer\" " \
"\"sami\", \"dvdsubtitle\" (auto for autodetection, it should always work)."
"Force the subtiles format. Valid values are : \"microdvd\", \"subrip\"," \
"\"ssa1\", \"ssa2-4\", \"ass\", \"vplayer\" " \
"\"sami\", \"dvdsubtitle\" and \"auto\" (meaning autodetection, this " \
"should always work)."
static char *ppsz_sub_type[] =
{
"auto", "microdvd", "subrip", "subviewer", "ssa1",
......@@ -59,7 +61,7 @@ static char *ppsz_sub_type[] =
vlc_module_begin();
set_shortname( _("Subtitles"));
set_description( _("Text subtitles demux") );
set_description( _("Text subtitles parser") );
set_capability( "demux2", 0 );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
......@@ -69,7 +71,7 @@ vlc_module_begin();
add_integer( "sub-delay", 0, NULL,
N_("Subtitles delay"),
SUB_DELAY_LONGTEXT, VLC_TRUE );
add_string( "sub-type", "auto", NULL, "Subtitles fileformat",
add_string( "sub-type", "auto", NULL, N_("Subtitles format"),
SUB_TYPE_LONGTEXT, VLC_TRUE );
change_string_list( ppsz_sub_type, 0, 0 );
set_callbacks( Open, Close );
......
......@@ -47,9 +47,9 @@ static int ParseID3Tags ( vlc_object_t * );
* Module descriptor
*****************************************************************************/
vlc_module_begin();
set_description( _("ID3 tag parser using libid3tag" ) );
set_capability( "id3", 70 );
set_callbacks( ParseID3Tags, NULL );
set_description( _("ID3 tags parser" ) );
set_capability( "id3", 70 );
set_callbacks( ParseID3Tags, NULL );
vlc_module_end();
/*****************************************************************************
......
......@@ -45,11 +45,11 @@ static int Open ( vlc_object_t *p_this );
static void Close( vlc_object_t *p_this );
vlc_module_begin();
set_description( _("Vobsub subtitles demux") );
set_description( _("Vobsub subtitles parser") );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
set_capability( "demux2", 1 );
set_callbacks( Open, Close );
add_shortcut( "vobsub" );
......
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