Browse Source

* ALL: internationalized all configuration strings.


			
			
				pull/2/head
			
			
		
Sam Hocevar 24 years ago
parent
commit
4f6c862b02
  1. 5
      ChangeLog
  2. 4
      include/common.h
  3. 4
      include/configuration.h
  4. 6
      include/modules.h
  5. 27
      include/modules_inner.h
  6. 4
      plugins/a52/a52.c
  7. 4
      plugins/aa/aa.c
  8. 10
      plugins/ac3_adec/ac3_adec.c
  9. 4
      plugins/ac3_spdif/ac3_spdif.c
  10. 4
      plugins/access/file.c
  11. 4
      plugins/access/http.c
  12. 4
      plugins/access/udp.c
  13. 4
      plugins/alsa/alsa.c
  14. 2
      plugins/arts/arts.c
  15. 4
      plugins/beos/beos.cpp
  16. 8
      plugins/chroma/i420_rgb.c
  17. 6
      plugins/chroma/i420_ymga.c
  18. 6
      plugins/chroma/i420_yuy2.c
  19. 6
      plugins/chroma/i422_yuy2.c
  20. 4
      plugins/directx/directx.c
  21. 4
      plugins/downmix/downmix.c
  22. 4
      plugins/downmix/downmix3dn.c
  23. 4
      plugins/downmix/downmixsse.c
  24. 8
      plugins/dsp/dsp.c
  25. 4
      plugins/dummy/dummy.c
  26. 4
      plugins/dummy/null.c
  27. 8
      plugins/dvd/dvd.c
  28. 6
      plugins/dvdread/dvdread.c
  29. 4
      plugins/esd/esd.c
  30. 8
      plugins/fb/fb.c
  31. 4
      plugins/filter/deinterlace.c
  32. 4
      plugins/filter/distort.c
  33. 4
      plugins/filter/invert.c
  34. 4
      plugins/filter/transform.c
  35. 4
      plugins/filter/wall.c
  36. 4
      plugins/fx/scope.c
  37. 12
      plugins/ggi/ggi.c
  38. 4
      plugins/glide/glide.c
  39. 18
      plugins/gtk/gnome.c
  40. 18
      plugins/gtk/gtk.c
  41. 16
      plugins/gtk/gtk_menu.c
  42. 84
      plugins/gtk/gtk_preferences.c
  43. 4
      plugins/idct/idct.c
  44. 4
      plugins/idct/idctaltivec.c
  45. 4
      plugins/idct/idctclassic.c
  46. 4
      plugins/idct/idctmmx.c
  47. 4
      plugins/idct/idctmmxext.c
  48. 4
      plugins/imdct/imdct.c
  49. 4
      plugins/imdct/imdct3dn.c
  50. 4
      plugins/imdct/imdctsse.c
  51. 4
      plugins/kde/kde.cpp
  52. 4
      plugins/lirc/lirc.c
  53. 4
      plugins/lpcm_adec/lpcm_adec.c
  54. 4
      plugins/macosx/macosx.c
  55. 2
      plugins/mad/mad_adec.c
  56. 10
      plugins/memcpy/memcpy.c
  57. 4
      plugins/memcpy/memcpyaltivec.c
  58. 4
      plugins/mga/mga.c
  59. 30
      plugins/mga/xmga.c
  60. 4
      plugins/motion/motion.c
  61. 4
      plugins/motion/motion3dnow.c
  62. 4
      plugins/motion/motionaltivec.c
  63. 4
      plugins/motion/motionmmx.c
  64. 4
      plugins/motion/motionmmxext.c
  65. 4
      plugins/mpeg_adec/mpeg_adec.c
  66. 4
      plugins/mpeg_system/mpeg_es.c
  67. 4
      plugins/mpeg_system/mpeg_ps.c
  68. 4
      plugins/mpeg_system/mpeg_ts.c
  69. 10
      plugins/mpeg_vdec/video_parser.c
  70. 4
      plugins/network/ipv4.c
  71. 4
      plugins/network/ipv6.c
  72. 2
      plugins/qnx/qnx.c
  73. 4
      plugins/qt/qt.cpp
  74. 2
      plugins/satellite/satellite.c
  75. 4
      plugins/sdl/sdl.c
  76. 4
      plugins/text/logger.c
  77. 4
      plugins/text/ncurses.c
  78. 4
      plugins/text/rc.c
  79. 4
      plugins/vcd/vcd.c
  80. 4
      plugins/win32/waveout.c
  81. 2
      plugins/win32/win32.cpp
  82. 30
      plugins/x11/x11.c
  83. 42
      plugins/x11/xvideo.c
  84. 84
      po/POTFILES.in
  85. 2280
      po/de.po
  86. 2422
      po/fr.po
  87. 1675
      po/ja.po
  88. 2199
      po/nl.po
  89. 2299
      po/no.po
  90. 1745
      po/ru.po
  91. 1679
      po/vlc.pot
  92. 510
      src/interface/main.c
  93. 157
      src/misc/configuration.c

5
ChangeLog

@ -4,7 +4,10 @@
HEAD
* Nothing yet.
* ALL: internationalized all configuration strings.
* ./src/interface/main.c: we now set LC_CTYPE to get the right charset.
* ./src/misc/configuration.c: lots of simplifications in the code.
* ./po/vlc/pot: updated translations.
0.3.1
Thu, 18 Apr 2002 06:43:42 +0200

4
include/common.h

@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.94 2002/04/17 11:43:31 sam Exp $
* $Id: common.h,v 1.95 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
@ -519,7 +519,7 @@ typedef struct module_symbols_s
int ( * config_LoadConfigFile ) ( const char * );
int ( * config_SaveConfigFile ) ( const char * );
struct module_config_s * ( * config_FindConfig ) ( const char * );
struct module_config_s * ( * config_Duplicate ) ( struct module_s * );
struct module_config_s * ( * config_Duplicate ) ( struct module_config_s* );
struct intf_subscription_s * ( * intf_MsgSub ) ( void );
void ( * intf_MsgUnsub ) ( struct intf_subscription_s * );

4
include/configuration.h

@ -4,7 +4,7 @@
* It includes functions allowing to declare, get or set configuration options.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: configuration.h,v 1.4 2002/03/21 07:11:57 gbazin Exp $
* $Id: configuration.h,v 1.5 2002/04/19 13:56:10 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -72,7 +72,7 @@ void config_PutPszVariable( const char *psz_name, char *psz_value );
int config_LoadConfigFile( const char *psz_module_name );
int config_SaveConfigFile( const char *psz_module_name );
module_config_t *config_FindConfig( const char *psz_name );
module_config_t *config_Duplicate ( module_t *p_module );
module_config_t *config_Duplicate ( module_config_t * );
char *config_GetHomeDir( void );
int config_LoadCmdLine( int *pi_argc, char *ppsz_argv[],
boolean_t b_ignore_errors );

6
include/modules.h

@ -2,7 +2,7 @@
* modules.h : Module management functions.
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules.h,v 1.46 2002/03/20 03:43:51 sam Exp $
* $Id: modules.h,v 1.47 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -130,9 +130,7 @@ typedef struct module_s
* Variables set by the module to store its config options
*/
struct module_config_s *p_config; /* Module configuration structure */
struct module_config_s *p_config_orig; /* original module config data */
vlc_mutex_t config_lock; /* lock used to modify the config */
unsigned int i_config_lines; /* number of configuration lines */
unsigned int i_config_items; /* number of configuration items */
/*
@ -346,7 +344,7 @@ void module_EndBank ( void );
void module_ResetBank ( void );
void module_ManageBank ( void );
module_t * module_Need ( int, char *, void * );
void module_Unneed ( module_t * p_module );
void module_Unneed ( module_t * );
#else
# define module_Need p_symbols->module_Need

27
include/modules_inner.h

@ -2,7 +2,7 @@
* modules_inner.h : Macros used from within a module.
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules_inner.h,v 1.13 2002/03/11 07:23:09 gbazin Exp $
* $Id: modules_inner.h,v 1.14 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -77,12 +77,12 @@
*/
#define MODULE_INIT_START \
DECLARE_SYMBOLS; \
\
int __VLC_SYMBOL( InitModule ) ( module_t *p_module ) \
{ \
int i_shortcut = 0; \
struct module_config_s* p_item; \
p_module->psz_name = MODULE_STRING; \
p_module->psz_longname = MODULE_STRING; \
p_module->psz_longname = _( MODULE_STRING ); \
p_module->psz_program = NULL; \
p_module->i_capabilities = 0; \
p_module->i_cpu_capabilities = 0;
@ -91,24 +91,27 @@
STORE_SYMBOLS; \
p_module->pp_shortcuts[ i_shortcut ] = NULL; \
p_module->i_config_items = 0; \
for( p_module->i_config_lines = 0; \
p_module->i_config_lines < (sizeof(p_config)/ \
sizeof(module_config_t)); \
p_module->i_config_lines++ ) \
for( p_item = p_config; \
p_item->i_type != MODULE_CONFIG_HINT_END; \
p_item++ ) \
{ \
if( p_config[p_module->i_config_lines].i_type & \
MODULE_CONFIG_ITEM ) \
if( p_item->i_type & MODULE_CONFIG_ITEM ) \
p_module->i_config_items++; \
} \
vlc_mutex_init( &p_module->config_lock ); \
p_module->p_config_orig = p_config; \
p_module->p_config = config_Duplicate( p_module ); \
p_module->p_config = config_Duplicate( p_config ); \
if( p_module->p_config == NULL ) \
{ \
intf_ErrMsg( MODULE_STRING \
" InitModule error: can't duplicate p_config" ); \
return( -1 ); \
} \
for( p_item = p_module->p_config; \
p_item->i_type != MODULE_CONFIG_HINT_END; \
p_item++ ) \
{ \
p_item->p_lock = &p_module->config_lock; \
} \
return( 0 ); \
}
@ -140,7 +143,6 @@
{ \
p_module->p_functions = \
( module_functions_t * )malloc( sizeof( module_functions_t ) ); \
p_module->p_config_orig = p_config; \
if( p_module->p_functions == NULL ) \
{ \
return( -1 ); \
@ -159,7 +161,6 @@
#define MODULE_DEACTIVATE_START \
int __VLC_SYMBOL( DeactivateModule )( module_t *p_module ) \
{ \
p_module->p_config_orig = NULL; \
free( p_module->p_functions );
#define MODULE_DEACTIVATE_STOP \

4
plugins/a52/a52.c

@ -4,7 +4,7 @@
* (http://liba52.sf.net/).
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: a52.c,v 1.6 2002/03/12 20:39:50 gbazin Exp $
* $Id: a52.c,v 1.7 2002/04/19 13:56:10 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -73,7 +73,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "a52 ATSC A/52 aka AC-3 audio decoder plugin" )
SET_DESCRIPTION( _("a52 ATSC A/52 aka AC-3 audio decoder module") )
ADD_CAPABILITY( DECODER, 40 )
ADD_SHORTCUT( "a52" )
MODULE_INIT_STOP

4
plugins/aa/aa.c

@ -2,7 +2,7 @@
* vout_aa.c: Aa video output display method for testing purposes
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: aa.c,v 1.2 2002/04/10 00:04:04 sam Exp $
* $Id: aa.c,v 1.3 2002/04/19 13:56:10 sam Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
@ -48,7 +48,7 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "ASCII-art video output module" )
SET_DESCRIPTION( _("ASCII-art video output module") )
ADD_CAPABILITY( VOUT, 10 )
ADD_SHORTCUT( "aa" )
ADD_SHORTCUT( "aalib" )

10
plugins/ac3_adec/ac3_adec.c

@ -2,7 +2,7 @@
* ac3_adec.c: ac3 decoder module main file
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ac3_adec.c,v 1.24 2002/04/05 01:05:22 gbazin Exp $
* $Id: ac3_adec.c,v 1.25 2002/04/19 13:56:10 sam Exp $
*
* Authors: Michel Lespinasse <walken@zoy.org>
*
@ -74,15 +74,15 @@ void _M( adec_getfunctions )( function_list_t * p_function_list )
#define IMDCT_METHOD_VAR "ac3_imdct"
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Misc Options", NULL)
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL)
ADD_PLUGIN ( DOWNMIX_METHOD_VAR, MODULE_CAPABILITY_DOWNMIX, NULL, NULL,
"AC3 downmix method", NULL )
N_("AC3 downmix method"), NULL )
ADD_PLUGIN ( IMDCT_METHOD_VAR, MODULE_CAPABILITY_IMDCT, NULL, NULL,
"AC3 IMDCT method", NULL )
N_("AC3 IMDCT method"), NULL )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "software AC3 decoder" )
SET_DESCRIPTION( _("software AC3 decoder") )
ADD_CAPABILITY( DECODER, 50 )
ADD_SHORTCUT( "ac3_adec" )
ADD_SHORTCUT( "ac3" )

4
plugins/ac3_spdif/ac3_spdif.c

@ -2,7 +2,7 @@
* ac3_spdif.c: ac3 pass-through to external decoder with enabled soundcard
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: ac3_spdif.c,v 1.21 2002/03/15 01:47:16 stef Exp $
* $Id: ac3_spdif.c,v 1.22 2002/04/19 13:56:10 sam Exp $
*
* Authors: Stéphane Borel <stef@via.ecp.fr>
* Juha Yrjola <jyrjola@cc.hut.fi>
@ -116,7 +116,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "SPDIF pass-through AC3 decoder" )
SET_DESCRIPTION( _("SPDIF pass-through AC3 decoder") )
ADD_CAPABILITY( DECODER, 0 )
ADD_SHORTCUT( "ac3_spdif" )
ADD_SHORTCUT( "pass_through" )

4
plugins/access/file.c

@ -2,7 +2,7 @@
* file.c: file input (file: access plug-in)
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: file.c,v 1.4 2002/04/10 16:26:21 jobi Exp $
* $Id: file.c,v 1.5 2002/04/19 13:56:10 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
@ -57,7 +57,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Standard filesystem file reading" )
SET_DESCRIPTION( _("Standard filesystem file reading") )
ADD_CAPABILITY( ACCESS, 50 )
ADD_SHORTCUT( "file" )
ADD_SHORTCUT( "stream" )

4
plugins/access/http.c

@ -2,7 +2,7 @@
* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: http.c,v 1.7 2002/04/03 23:24:42 massiot Exp $
* $Id: http.c,v 1.8 2002/04/19 13:56:10 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
@ -62,7 +62,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "HTTP access plug-in" )
SET_DESCRIPTION( _("HTTP access plug-in") )
ADD_CAPABILITY( ACCESS, 0 )
ADD_SHORTCUT( "http" )
ADD_SHORTCUT( "http4" )

4
plugins/access/udp.c

@ -2,7 +2,7 @@
* udp.c: raw UDP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: udp.c,v 1.8 2002/04/17 17:00:58 jobi Exp $
* $Id: udp.c,v 1.9 2002/04/19 13:56:10 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
@ -59,7 +59,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Raw UDP access plug-in" )
SET_DESCRIPTION( _("Raw UDP access plug-in") )
ADD_CAPABILITY( ACCESS, 0 )
ADD_SHORTCUT( "udp" )
ADD_SHORTCUT( "udpstream" )

4
plugins/alsa/alsa.c

@ -2,7 +2,7 @@
* alsa.c : alsa plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: alsa.c,v 1.15 2002/03/20 03:43:51 sam Exp $
* $Id: alsa.c,v 1.16 2002/04/19 13:56:10 sam Exp $
*
* Authors: Henri Fallon <henri@videolan.org> - Original Author
* Jeffrey Baker <jwbaker@acm.org> - Port to ALSA 1.0 API
@ -55,7 +55,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Alsa audio module" )
SET_DESCRIPTION( _("Alsa audio module") )
ADD_CAPABILITY( AOUT, 50 )
ADD_SHORTCUT( "alsa" )
MODULE_INIT_STOP

2
plugins/arts/arts.c

@ -40,7 +40,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "aRts audio module" )
SET_DESCRIPTION( _("aRts audio module") )
ADD_CAPABILITY( AOUT, 50 )
ADD_SHORTCUT( "arts" )
MODULE_INIT_STOP

4
plugins/beos/beos.cpp

@ -2,7 +2,7 @@
* beos.cpp : BeOS plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: beos.cpp,v 1.17 2002/02/24 20:51:09 gbazin Exp $
* $Id: beos.cpp,v 1.18 2002/04/19 13:56:10 sam Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
@ -46,7 +46,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "BeOS standard API module" )
SET_DESCRIPTION( _("BeOS standard API module") )
ADD_CAPABILITY( INTF, 100 )
ADD_CAPABILITY( VOUT, 100 )
ADD_CAPABILITY( AOUT, 100 )

8
plugins/chroma/i420_rgb.c

@ -2,7 +2,7 @@
* i420_rgb.c : YUV to bitmap RGB conversion module for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_rgb.c,v 1.7 2002/03/17 17:00:38 sam Exp $
* $Id: i420_rgb.c,v 1.8 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -61,10 +61,12 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
#if defined (MODULE_NAME_IS_chroma_i420_rgb)
SET_DESCRIPTION( "I420,IYUV,YV12 to RGB,RV15,RV16,RV24,RV32 conversions" )
SET_DESCRIPTION( _("I420,IYUV,YV12 to "
"RGB,RV15,RV16,RV24,RV32 conversions") )
ADD_CAPABILITY( CHROMA, 80 )
#elif defined (MODULE_NAME_IS_chroma_i420_rgb_mmx)
SET_DESCRIPTION( "MMX I420,IYUV,YV12 to RV15,RV16,RV24,RV32 conversions" )
SET_DESCRIPTION( _( "MMX I420,IYUV,YV12 to "
"RV15,RV16,RV24,RV32 conversions") )
ADD_CAPABILITY( CHROMA, 100 )
ADD_REQUIREMENT( MMX )
#endif

6
plugins/chroma/i420_ymga.c

@ -2,7 +2,7 @@
* i420_ymga.c : YUV to YUV conversion module for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_ymga.c,v 1.4 2002/04/02 10:17:08 sam Exp $
* $Id: i420_ymga.c,v 1.5 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -54,10 +54,10 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
#if defined (MODULE_NAME_IS_chroma_i420_ymga)
SET_DESCRIPTION( "conversions from " SRC_FOURCC " to " DEST_FOURCC )
SET_DESCRIPTION( _("conversions from " SRC_FOURCC " to " DEST_FOURCC) )
ADD_CAPABILITY( CHROMA, 80 )
#elif defined (MODULE_NAME_IS_chroma_i420_ymga_mmx)
SET_DESCRIPTION( "MMX conversions from " SRC_FOURCC " to " DEST_FOURCC )
SET_DESCRIPTION( _("MMX conversions from " SRC_FOURCC " to " DEST_FOURCC) )
ADD_CAPABILITY( CHROMA, 100 )
ADD_REQUIREMENT( MMX )
#endif

6
plugins/chroma/i420_yuy2.c

@ -2,7 +2,7 @@
* i420_yuy2.c : YUV to YUV conversion module for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_yuy2.c,v 1.4 2002/04/02 10:17:08 sam Exp $
* $Id: i420_yuy2.c,v 1.5 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -68,10 +68,10 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
#if defined (MODULE_NAME_IS_chroma_i420_yuy2)
SET_DESCRIPTION( "conversions from " SRC_FOURCC " to " DEST_FOURCC )
SET_DESCRIPTION( _("conversions from " SRC_FOURCC " to " DEST_FOURCC) )
ADD_CAPABILITY( CHROMA, 80 )
#elif defined (MODULE_NAME_IS_chroma_i420_yuy2_mmx)
SET_DESCRIPTION( "MMX conversions from " SRC_FOURCC " to " DEST_FOURCC )
SET_DESCRIPTION( _("MMX conversions from " SRC_FOURCC " to " DEST_FOURCC) )
ADD_CAPABILITY( CHROMA, 100 )
ADD_REQUIREMENT( MMX )
#endif

6
plugins/chroma/i422_yuy2.c

@ -2,7 +2,7 @@
* i422_yuy2.c : YUV to YUV conversion module for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i422_yuy2.c,v 1.4 2002/04/02 10:17:08 sam Exp $
* $Id: i422_yuy2.c,v 1.5 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -67,10 +67,10 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
#if defined (MODULE_NAME_IS_chroma_i422_yuy2)
SET_DESCRIPTION( "conversions from " SRC_FOURCC " to " DEST_FOURCC )
SET_DESCRIPTION( _("conversions from " SRC_FOURCC " to " DEST_FOURCC) )
ADD_CAPABILITY( CHROMA, 80 )
#elif defined (MODULE_NAME_IS_chroma_i422_yuy2_mmx)
SET_DESCRIPTION( "MMX conversions from " SRC_FOURCC " to " DEST_FOURCC )
SET_DESCRIPTION( _("MMX conversions from " SRC_FOURCC " to " DEST_FOURCC) )
ADD_CAPABILITY( CHROMA, 100 )
ADD_REQUIREMENT( MMX )
#endif

4
plugins/directx/directx.c

@ -2,7 +2,7 @@
* directx.c : Windows DirectX plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: directx.c,v 1.6 2002/02/24 20:51:09 gbazin Exp $
* $Id: directx.c,v 1.7 2002/04/19 13:56:10 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -47,7 +47,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "DirectX extension module" )
SET_DESCRIPTION( _("DirectX extension module") )
ADD_CAPABILITY( AOUT, 150 )
ADD_CAPABILITY( VOUT, 150 )
ADD_SHORTCUT( "directx" )

4
plugins/downmix/downmix.c

@ -2,7 +2,7 @@
* downmix.c : AC3 downmix module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: downmix.c,v 1.7 2002/02/15 13:32:53 sam Exp $
* $Id: downmix.c,v 1.8 2002/04/19 13:56:10 sam Exp $
*
* Authors: Renaud Dartus <reno@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "AC3 downmix module" )
SET_DESCRIPTION( _("AC3 downmix module") )
ADD_CAPABILITY( DOWNMIX, 50 )
ADD_SHORTCUT( "c" )
ADD_SHORTCUT( "downmix" )

4
plugins/downmix/downmix3dn.c

@ -2,7 +2,7 @@
* downmix3dn.c : accelerated 3D Now! AC3 downmix module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: downmix3dn.c,v 1.8 2002/02/15 13:32:53 sam Exp $
* $Id: downmix3dn.c,v 1.9 2002/04/19 13:56:10 sam Exp $
*
* Authors: Renaud Dartus <reno@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "3D Now! AC3 downmix module" )
SET_DESCRIPTION( _("3D Now! AC3 downmix module") )
ADD_CAPABILITY( DOWNMIX, 200 )
ADD_REQUIREMENT( 3DNOW )
ADD_SHORTCUT( "3dn" )

4
plugins/downmix/downmixsse.c

@ -2,7 +2,7 @@
* downmixsse.c : accelerated SSE AC3 downmix module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: downmixsse.c,v 1.8 2002/02/15 13:32:53 sam Exp $
* $Id: downmixsse.c,v 1.9 2002/04/19 13:56:10 sam Exp $
*
* Authors: Renaud Dartus <reno@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "SSE AC3 downmix module" )
SET_DESCRIPTION( _("SSE AC3 downmix module") )
ADD_CAPABILITY( DOWNMIX, 200 )
ADD_REQUIREMENT( SSE )
ADD_SHORTCUT( "sse" )

8
plugins/dsp/dsp.c

@ -2,7 +2,7 @@
* dsp.c : OSS /dev/dsp module for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: dsp.c,v 1.14 2002/02/27 18:19:21 sam Exp $
* $Id: dsp.c,v 1.15 2002/04/19 13:56:10 sam Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
@ -39,12 +39,12 @@ void _M( aout_getfunctions )( function_list_t * p_function_list );
* Build configuration tree.
*****************************************************************************/
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Misc Options", NULL )
ADD_FILE ( "dsp_dev", "/dev/dsp", NULL,"OSS dsp device",NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_FILE ( "dsp_dev", "/dev/dsp", NULL, N_("OSS dsp device"), NULL )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Linux OSS /dev/dsp module" )
SET_DESCRIPTION( _("Linux OSS /dev/dsp module") )
ADD_CAPABILITY( AOUT, 100 )
ADD_SHORTCUT( "dsp" )
MODULE_INIT_STOP

4
plugins/dummy/dummy.c

@ -2,7 +2,7 @@
* dummy.c : dummy plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: dummy.c,v 1.17 2002/03/01 00:33:18 massiot Exp $
* $Id: dummy.c,v 1.18 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -46,7 +46,7 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "dummy functions module" )
SET_DESCRIPTION( _("dummy functions module") )
/* Capability score set to 0 because we don't want to be spawned
* unless explicitly requested to */
ADD_CAPABILITY( AOUT, 0 )

4
plugins/dummy/null.c

@ -2,7 +2,7 @@
* null.c : NULL module for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: null.c,v 1.5 2002/02/24 20:51:09 gbazin Exp $
* $Id: null.c,v 1.6 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -49,7 +49,7 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "the Null module that does nothing" )
SET_DESCRIPTION( _("the Null module that does nothing") )
ADD_SHORTCUT( "null" )
MODULE_INIT_STOP

8
plugins/dvd/dvd.c

@ -2,7 +2,7 @@
* dvd.c : DVD input module for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: dvd.c,v 1.30 2002/04/06 04:22:27 sam Exp $
* $Id: dvd.c,v 1.31 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -63,16 +63,16 @@ static void UnprobeLibDVDCSS( void );
* Build configuration tree.
*****************************************************************************/
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "[dvd:][device][@raw_device][@[title][,[chapter][,angle]]]", NULL )
ADD_CATEGORY_HINT( N_("[dvd:][device][@raw_device][@[title][,[chapter][,angle]]]"), NULL )
MODULE_CONFIG_STOP
MODULE_INIT_START
ADD_CAPABILITY( DEMUX, 0 )
#ifdef GOD_DAMN_DMCA
SET_DESCRIPTION( "DVD input module, uses libdvdcss if present" )
SET_DESCRIPTION( _("DVD input module, uses libdvdcss if present") )
ADD_CAPABILITY( ACCESS, 90 )
#else
SET_DESCRIPTION( "DVD input module, uses libdvdcss" )
SET_DESCRIPTION( _("DVD input module, uses libdvdcss") )
ADD_CAPABILITY( ACCESS, 100 )
#endif
ADD_SHORTCUT( "dvd" )

6
plugins/dvdread/dvdread.c

@ -2,7 +2,7 @@
* dvdread.c : DvdRead input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: dvdread.c,v 1.14 2002/04/16 23:00:54 massiot Exp $
* $Id: dvdread.c,v 1.15 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -39,11 +39,11 @@ void _M( demux_getfunctions)( function_list_t * p_function_list );
* Build configuration tree.
*****************************************************************************/
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "[dvdread:][device][@[title][,[chapter][,angle]]]", NULL )
ADD_CATEGORY_HINT( N_("[dvdread:][device][@[title][,[chapter][,angle]]]"), NULL )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "DVDRead input module" )
SET_DESCRIPTION( _("DVDRead input module") )
ADD_CAPABILITY( DEMUX, 0 )
ADD_CAPABILITY( ACCESS, 110 )
ADD_SHORTCUT( "dvdread" )

4
plugins/esd/esd.c

@ -2,7 +2,7 @@
* esd.c : EsounD module
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: esd.c,v 1.13 2002/02/24 20:51:09 gbazin Exp $
* $Id: esd.c,v 1.14 2002/04/19 13:56:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -41,7 +41,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "EsounD audio module" )
SET_DESCRIPTION( _("EsounD audio module") )
ADD_CAPABILITY( AOUT, 50 )
ADD_SHORTCUT( "esd" )
ADD_SHORTCUT( "esound" )

8
plugins/fb/fb.c

@ -2,7 +2,7 @@
* fb.c : framebuffer plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: fb.c,v 1.16 2002/03/17 17:00:38 sam Exp $
* $Id: fb.c,v 1.17 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -69,12 +69,12 @@ static void GfxMode ( int i_tty );
#define FB_DEV_VAR "fb_dev"
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Misc Options", NULL )
ADD_STRING ( FB_DEV_VAR, "/dev/fb0", NULL,"framebuffer device",NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_STRING ( FB_DEV_VAR, "/dev/fb0", NULL, N_("framebuffer device"), NULL )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Linux console framebuffer module" )
SET_DESCRIPTION( _("Linux console framebuffer module") )
ADD_CAPABILITY( VOUT, 30 )
ADD_SHORTCUT( "fb" )
MODULE_INIT_STOP

4
plugins/filter/deinterlace.c

@ -2,7 +2,7 @@
* deinterlace.c : deinterlacer plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: deinterlace.c,v 1.8 2002/03/19 00:30:44 sam Exp $
* $Id: deinterlace.c,v 1.9 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -52,7 +52,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "deinterlacing module" )
SET_DESCRIPTION( _("deinterlacing module") )
/* Capability score set to 0 because we don't want to be spawned
* as a video output unless explicitly requested to */
ADD_CAPABILITY( VOUT, 0 )

4
plugins/filter/distort.c

@ -2,7 +2,7 @@
* distort.c : Misc video effects plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: distort.c,v 1.9 2002/03/11 07:23:09 gbazin Exp $
* $Id: distort.c,v 1.10 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -52,7 +52,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "miscellaneous video effects module" )
SET_DESCRIPTION( _("miscellaneous video effects module") )
/* Capability score set to 0 because we don't want to be spawned
* as a video output unless explicitly requested to */
ADD_CAPABILITY( VOUT, 0 )

4
plugins/filter/invert.c

@ -2,7 +2,7 @@
* invert.c : Invert video plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: invert.c,v 1.9 2002/03/11 07:23:09 gbazin Exp $
* $Id: invert.c,v 1.10 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -47,7 +47,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "invert video module" )
SET_DESCRIPTION( _("invert video module") )
/* Capability score set to 0 because we don't want to be spawned
* as a video output unless explicitly requested to */
ADD_CAPABILITY( VOUT, 0 )

4
plugins/filter/transform.c

@ -2,7 +2,7 @@
* transform.c : transform image plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: transform.c,v 1.8 2002/03/11 07:23:09 gbazin Exp $
* $Id: transform.c,v 1.9 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -53,7 +53,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "image transformation module" )
SET_DESCRIPTION( _("image transformation module") )
/* Capability score set to 0 because we don't want to be spawned
* as a video output unless explicitly requested to */
ADD_CAPABILITY( VOUT, 0 )

4
plugins/filter/wall.c

@ -2,7 +2,7 @@
* wall.c : Wall video plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: wall.c,v 1.15 2002/03/11 07:23:09 gbazin Exp $
* $Id: wall.c,v 1.16 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -47,7 +47,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "image wall video module" )
SET_DESCRIPTION( _("image wall video module") )
/* Capability score set to 0 because we don't want to be spawned
* as a video output unless explicitly requested to */
ADD_CAPABILITY( VOUT, 0 )

4
plugins/fx/scope.c

@ -2,7 +2,7 @@
* scope.c : Scope effect module
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: scope.c,v 1.5 2002/03/18 19:14:52 sam Exp $
* $Id: scope.c,v 1.6 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -66,7 +66,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "scope effect module" )
SET_DESCRIPTION( _("scope effect module") )
ADD_CAPABILITY( AOUT, 0 )
ADD_SHORTCUT( "scope" )
MODULE_INIT_STOP

12
plugins/ggi/ggi.c

@ -2,7 +2,7 @@
* ggi.c : GGI plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: ggi.c,v 1.19 2002/03/25 19:16:20 gbazin Exp $
* $Id: ggi.c,v 1.20 2002/04/19 13:56:11 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
@ -59,13 +59,13 @@ static void SetPalette ( vout_thread_t *, u16 *, u16 *, u16 * );
/*****************************************************************************
* Building configuration tree
*****************************************************************************/
#define DISPLAY_TEXT "X11 display name"
#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
"By default vlc will use the value of the DISPLAY " \
"environment variable."
#define DISPLAY_TEXT N_("X11 display name")
#define DISPLAY_LONGTEXT N_("Specify the X11 hardware display you want to use."\
"\nBy default vlc will use the value of the DISPLAY"\
" environment variable.")
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Miscellaneous", NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_STRING ( "ggi_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
MODULE_CONFIG_STOP

4
plugins/glide/glide.c

@ -2,7 +2,7 @@
* glide.c : 3dfx Glide plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: glide.c,v 1.13 2002/03/16 23:03:19 sam Exp $
* $Id: glide.c,v 1.14 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -69,7 +69,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "3dfx Glide module" )
SET_DESCRIPTION( _("3dfx Glide module") )
ADD_CAPABILITY( VOUT, 20 )
ADD_SHORTCUT( "glide" )
ADD_SHORTCUT( "3dfx" )

18
plugins/gtk/gnome.c

@ -2,7 +2,7 @@
* gnome.c : Gnome plugin for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: gnome.c,v 1.16 2002/03/31 22:35:44 gbazin Exp $
* $Id: gnome.c,v 1.17 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -61,16 +61,16 @@ static gint GnomeManage ( gpointer p_data );
/*****************************************************************************
* Building configuration tree
*****************************************************************************/
#define TOOLTIPS_TEXT "hide tooltips"
#define TOOLTIPS_LONGTEXT "Do not show tooltips for configuration options"
#define TOOLTIPS_TEXT N_("hide tooltips")
#define TOOLTIPS_LONGTEXT N_("Do not show tooltips for configuration options.")
#define PREFS_MAXH_TEXT "maximum height for the configuration windows"
#define PREFS_MAXH_LONGTEXT "You can set the maximum height that the " \
"configuration windows in the prefences menu " \
"will take"
#define PREFS_MAXH_TEXT N_("maximum height for the configuration windows")
#define PREFS_MAXH_LONGTEXT N_( \
"You can set the maximum height that the configuration windows in the " \
"preferences menu will occupy.")
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Misc Options", NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_BOOL ( "gnome_hide_tooltips", NULL, TOOLTIPS_TEXT,
TOOLTIPS_LONGTEXT )
ADD_INTEGER ( "gnome_prefs_maxh", 480, NULL, PREFS_MAXH_TEXT,
@ -78,7 +78,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Gnome interface module" )
SET_DESCRIPTION( _("Gnome interface module") )
#ifndef WIN32
if( getenv( "DISPLAY" ) == NULL )
{

18
plugins/gtk/gtk.c

@ -2,7 +2,7 @@
* gtk.c : Gtk+ plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: gtk.c,v 1.18 2002/03/31 22:35:44 gbazin Exp $
* $Id: gtk.c,v 1.19 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -62,23 +62,23 @@ static gint GtkManage ( gpointer p_data );
/*****************************************************************************
* Building configuration tree
*****************************************************************************/
#define TOOLTIPS_TEXT "hide tooltips"
#define TOOLTIPS_LONGTEXT "Do not show tooltips for configuration options"
#define TOOLTIPS_TEXT N_("hide tooltips")
#define TOOLTIPS_LONGTEXT N_("Do not show tooltips for configuration options.")
#define PREFS_MAXH_TEXT "maximum height for the configuration windows"
#define PREFS_MAXH_LONGTEXT "You can set the maximum height that the " \
"configuration windows in the prefences menu " \
"will take"
#define PREFS_MAXH_TEXT N_("maximum height for the configuration windows")
#define PREFS_MAXH_LONGTEXT N_( \
"You can set the maximum height that the configuration windows in the " \
"preferences menu will occupy.")
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Misc Options", NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_BOOL ( "gtk_hide_tooltips", NULL, TOOLTIPS_TEXT, TOOLTIPS_LONGTEXT )
ADD_INTEGER ( "gtk_prefs_maxh", 480, NULL, PREFS_MAXH_TEXT,
PREFS_MAXH_LONGTEXT )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Gtk+ interface module" )
SET_DESCRIPTION( _("Gtk+ interface module") )
#ifndef WIN32
if( getenv( "DISPLAY" ) == NULL )
{

16
plugins/gtk/gtk_menu.c

@ -2,7 +2,7 @@
* gtk_menu.c : functions to handle menu items.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_menu.c,v 1.23 2002/03/14 01:35:28 stef Exp $
* $Id: gtk_menu.c,v 1.24 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
@ -522,7 +522,7 @@ static gint GtkLanguageMenus( gpointer p_data,
p_menu = gtk_menu_new();
/* special case for "off" item */
snprintf( psz_name, GTK_MENU_LABEL_SIZE, "None" );
snprintf( psz_name, GTK_MENU_LABEL_SIZE, _("None") );
psz_name[ GTK_MENU_LABEL_SIZE - 1 ] = '\0';
p_item = gtk_radio_menu_item_new_with_label( p_group, psz_name );
@ -681,7 +681,7 @@ static gint GtkTitleMenu( gpointer p_data,
p_title_submenu = gtk_menu_new();
}
snprintf( psz_name, GTK_MENU_LABEL_SIZE, "Title %d (%d)", i_title,
snprintf( psz_name, GTK_MENU_LABEL_SIZE, _("Title %d (%d)"), i_title,
p_input_bank->pp_input[0]->stream.pp_areas[i_title]->i_part_nb );
psz_name[ GTK_MENU_LABEL_SIZE - 1 ] = '\0';
#if 0
@ -744,7 +744,7 @@ static gint GtkTitleMenu( gpointer p_data,
}
snprintf( psz_name, GTK_MENU_LABEL_SIZE,
"Chapter %d", i_chapter + 1 );
_("Chapter %d"), i_chapter + 1 );
psz_name[ GTK_MENU_LABEL_SIZE - 1 ] = '\0';
p_item = gtk_radio_menu_item_new_with_label(
@ -796,7 +796,7 @@ static gint GtkTitleMenu( gpointer p_data,
gtk_widget_set_sensitive( p_navigation, TRUE );
}
#else
GtkRadioMenu( p_intf, p_title_item, p_chapter_group, "Chapter",
GtkRadioMenu( p_intf, p_title_item, p_chapter_group, _("Chapter"),
p_input_bank->pp_input[0]->stream.pp_areas[i_title]->i_part_nb,
i_title * 100,
p_input_bank->pp_input[0]->stream.p_selected_area->i_part +
@ -901,7 +901,7 @@ gint GtkSetupMenus( intf_thread_t * p_intf )
p_menubar_menu = GTK_WIDGET( gtk_object_get_data( GTK_OBJECT(
p_intf->p_sys->p_window ), "menubar_title" ) );
GtkRadioMenu( p_intf, p_menubar_menu, NULL, "Title",
GtkRadioMenu( p_intf, p_menubar_menu, NULL, _("Title"),
p_input_bank->pp_input[0]->stream.i_area_nb - 1,
p_input_bank->pp_input[0]->stream.p_selected_area->i_id,
GtkMenubarTitleToggle );
@ -922,7 +922,7 @@ gint GtkSetupMenus( intf_thread_t * p_intf )
p_intf->p_sys->p_popup ), "popup_navigation" ) );
GtkTitleMenu( p_intf, p_popup_menu, GtkPopupNavigationToggle );
#if 0
GtkRadioMenu( p_intf, p_menubar_menu, NULL, "Title",
GtkRadioMenu( p_intf, p_menubar_menu, NULL, _("Title"),
p_input_bank->pp_input[0]->stream.i_area_nb - 1,
p_input_bank->pp_input[0]->stream.p_selected_area->i_id,
on_menubar_chapter_toggle );
@ -931,7 +931,7 @@ gint GtkSetupMenus( intf_thread_t * p_intf )
p_menubar_menu = GTK_WIDGET( gtk_object_get_data( GTK_OBJECT(
p_intf->p_sys->p_window ), "menubar_chapter" ) );
GtkRadioMenu( p_intf, p_menubar_menu, NULL, "Chapter",
GtkRadioMenu( p_intf, p_menubar_menu, NULL, _("Chapter"),
p_input_bank->pp_input[0]->stream.p_selected_area->i_part_nb,
p_input_bank->pp_input[0]->stream.p_selected_area->i_part,
GtkMenubarChapterToggle );

84
plugins/gtk/gtk_preferences.c

@ -2,7 +2,7 @@
* gtk_preferences.c: functions to handle the preferences dialog box.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_preferences.c,v 1.21 2002/03/31 22:59:01 gbazin Exp $
* $Id: gtk_preferences.c,v 1.22 2002/04/19 13:56:11 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Loïc Minier <lool@via.ecp.fr>
@ -118,7 +118,7 @@ static void GtkCreateConfigDialog( char *psz_module_name,
intf_thread_t *p_intf )
{
module_t *p_module, *p_module_bis;
int i;
module_config_t *p_item;
guint rows = 0;
@ -213,10 +213,10 @@ static void GtkCreateConfigDialog( char *psz_module_name,
gtk_container_add( GTK_CONTAINER(config_dialog_vbox), config_notebook );
/* Enumerate config options and add corresponding config boxes */
for( i = 0; i < p_module->i_config_lines; i++ )
p_item = p_module->p_config;
do
{
switch( p_module->p_config[i].i_type )
switch( p_item->i_type )
{
case MODULE_CONFIG_HINT_CATEGORY:
@ -270,26 +270,27 @@ static void GtkCreateConfigDialog( char *psz_module_name,
_requisition.height );
}
if( p_module->p_config[i].i_type == MODULE_CONFIG_HINT_END ) break;
/*
* Now we can start taking care of the new category
*/
/* create a new table for right-left alignment of children */
category_table = gtk_table_new( 0, 0, FALSE );
gtk_table_set_col_spacings( GTK_TABLE(category_table), 4 );
rows = 0;
if( p_item->i_type == MODULE_CONFIG_HINT_CATEGORY )
{
/* create a new table for right-left alignment of children */
category_table = gtk_table_new( 0, 0, FALSE );
gtk_table_set_col_spacings( GTK_TABLE(category_table), 4 );
rows = 0;
/* create a new category label */
category_label = gtk_label_new( p_module->p_config[i].psz_text );
/* create a new category label */
category_label = gtk_label_new( p_item->psz_text );
}
break;
case MODULE_CONFIG_ITEM_PLUGIN:
item_frame = gtk_frame_new( p_module->p_config[i].psz_text );
item_frame = gtk_frame_new( p_item->psz_text );
gtk_table_resize( GTK_TABLE(category_table), ++rows, 2 );
gtk_table_attach_defaults( GTK_TABLE(category_table), item_frame,
@ -300,7 +301,7 @@ static void GtkCreateConfigDialog( char *psz_module_name,
/* create a new clist widget */
{
gchar * titles[] = { "Name", "Description" };
gchar * titles[] = { _("Name"), _("Description") };
plugin_clist =
gtk_clist_new_with_titles( 2, titles );
@ -318,8 +319,7 @@ static void GtkCreateConfigDialog( char *psz_module_name,
p_module_bis != NULL ;
p_module_bis = p_module_bis->next )
{
if( p_module_bis->i_capabilities &
(1 << p_module->p_config[i].i_value) )
if( p_module_bis->i_capabilities & (1 << p_item->i_value) )
{
entry[0] = p_module_bis->psz_name;
entry[1] = p_module_bis->psz_longname;
@ -361,7 +361,7 @@ static void GtkCreateConfigDialog( char *psz_module_name,
/* add a tooltip on mouseover */
gtk_tooltips_set_tip( p_intf->p_sys->p_tooltips,
plugin_select_button,
p_module->p_config[i].psz_longtext, "" );
p_item->psz_longtext, "" );
/* hbox holding the "selected" label and text input */
item_hbox = gtk_hbox_new( FALSE, 4 );
@ -375,15 +375,13 @@ static void GtkCreateConfigDialog( char *psz_module_name,
gtk_object_set_data( GTK_OBJECT(plugin_clist),
"plugin_entry", string_entry );
gtk_container_add( GTK_CONTAINER(item_hbox), string_entry );
vlc_mutex_lock( p_module->p_config[i].p_lock );
vlc_mutex_lock( p_item->p_lock );
gtk_entry_set_text( GTK_ENTRY(string_entry),
p_module->p_config[i].psz_value ?
p_module->p_config[i].psz_value : "" );
vlc_mutex_unlock( p_module->p_config[i].p_lock );
p_item->psz_value ? p_item->psz_value : "" );
vlc_mutex_unlock( p_item->p_lock );
/* add a tooltip on mouseover */
gtk_tooltips_set_tip( p_intf->p_sys->p_tooltips,
string_entry,
p_module->p_config[i].psz_longtext, "" );
string_entry, p_item->psz_longtext, "" );
/* connect signals to the buttons */
gtk_signal_connect( GTK_OBJECT(plugin_config_button), "clicked",
@ -395,7 +393,7 @@ static void GtkCreateConfigDialog( char *psz_module_name,
/* connect signal to track changes in the text box */
gtk_object_set_data( GTK_OBJECT(string_entry), "config_option",
p_module->p_config[i].psz_name );
p_item->psz_name );
gtk_signal_connect( GTK_OBJECT(string_entry), "changed",
GTK_SIGNAL_FUNC(GtkStringChanged),
(gpointer)config_dialog );
@ -406,43 +404,39 @@ static void GtkCreateConfigDialog( char *psz_module_name,
/* add input box with default value */
string_entry = gtk_entry_new();
vlc_mutex_lock( p_module->p_config[i].p_lock );
vlc_mutex_lock( p_item->p_lock );
gtk_entry_set_text( GTK_ENTRY(string_entry),
p_module->p_config[i].psz_value ?
p_module->p_config[i].psz_value : "" );
vlc_mutex_unlock( p_module->p_config[i].p_lock );
p_item->psz_value ? p_item->psz_value : "" );
vlc_mutex_unlock( p_item->p_lock );
/* connect signal to track changes in the text box */
gtk_object_set_data( GTK_OBJECT(string_entry), "config_option",
p_module->p_config[i].psz_name );
p_item->psz_name );
gtk_signal_connect( GTK_OBJECT(string_entry), "changed",
GTK_SIGNAL_FUNC(GtkStringChanged),
(gpointer)config_dialog );
LABEL_AND_WIDGET( p_module->p_config[i].psz_text,
string_entry,
p_module->p_config[i].psz_longtext );
LABEL_AND_WIDGET( p_item->psz_text,
string_entry, p_item->psz_longtext );
break;
case MODULE_CONFIG_ITEM_INTEGER:
/* add input box with default value */
item_adj = gtk_adjustment_new( p_module->p_config[i].i_value,
item_adj = gtk_adjustment_new( p_item->i_value,
-1, 99999, 1, 10, 10 );
integer_spinbutton = gtk_spin_button_new( GTK_ADJUSTMENT(item_adj),
1, 0 );
/* connect signal to track changes in the spinbutton value */
gtk_object_set_data( GTK_OBJECT(integer_spinbutton),
"config_option",
p_module->p_config[i].psz_name );
"config_option", p_item->psz_name );
gtk_signal_connect( GTK_OBJECT(integer_spinbutton), "changed",
GTK_SIGNAL_FUNC(GtkIntChanged),
(gpointer)config_dialog );
LABEL_AND_WIDGET( p_module->p_config[i].psz_text,
integer_spinbutton,
p_module->p_config[i].psz_longtext );
LABEL_AND_WIDGET( p_item->psz_text,
integer_spinbutton, p_item->psz_longtext );
break;
case MODULE_CONFIG_ITEM_BOOL:
@ -450,22 +444,24 @@ static void GtkCreateConfigDialog( char *psz_module_name,
/* add check button */
bool_checkbutton = gtk_check_button_new();
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(bool_checkbutton),
p_module->p_config[i].i_value );
p_item->i_value );
/* connect signal to track changes in the button state */
gtk_object_set_data( GTK_OBJECT(bool_checkbutton), "config_option",
p_module->p_config[i].psz_name );
p_item->psz_name );
gtk_signal_connect( GTK_OBJECT(bool_checkbutton), "toggled",
GTK_SIGNAL_FUNC(GtkBoolChanged),
(gpointer)config_dialog );
LABEL_AND_WIDGET( p_module->p_config[i].psz_text,
bool_checkbutton,
p_module->p_config[i].psz_longtext );
LABEL_AND_WIDGET( p_item->psz_text,
bool_checkbutton, p_item->psz_longtext );
break;
}
p_item++;
}
while( p_item->i_type != MODULE_CONFIG_HINT_END );
#ifndef MODULE_NAME_IS_gnome
/* Now let's add the action buttons at the bottom of the page */

4
plugins/idct/idct.c

@ -2,7 +2,7 @@
* idct.c : C IDCT module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: idct.c,v 1.20 2002/02/15 13:32:53 sam Exp $
* $Id: idct.c,v 1.21 2002/04/19 13:56:11 sam Exp $
*
* Author: Gaël Hendryckx <jimmy@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "IDCT module" )
SET_DESCRIPTION( _("IDCT module") )
ADD_CAPABILITY( IDCT, 50 )
ADD_SHORTCUT( "c" )
ADD_SHORTCUT( "idct" )

4
plugins/idct/idctaltivec.c

@ -2,7 +2,7 @@
* idctaltivec.c : Altivec IDCT module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: idctaltivec.c,v 1.23 2002/02/15 13:32:53 sam Exp $
* $Id: idctaltivec.c,v 1.24 2002/04/19 13:56:11 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
@ -46,7 +46,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Altivec IDCT module" )
SET_DESCRIPTION( _("Altivec IDCT module") )
ADD_CAPABILITY( IDCT, 200 )
ADD_REQUIREMENT( ALTIVEC )
ADD_SHORTCUT( "altivec" )

4
plugins/idct/idctclassic.c

@ -2,7 +2,7 @@
* idctclassic.c : Classic IDCT module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: idctclassic.c,v 1.21 2002/02/24 20:51:10 gbazin Exp $
* $Id: idctclassic.c,v 1.22 2002/04/19 13:56:11 sam Exp $
*
* Authors: Gaël Hendryckx <jimmy@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "classic IDCT module" )
SET_DESCRIPTION( _("classic IDCT module") )
ADD_CAPABILITY( IDCT, 100 )
ADD_SHORTCUT( "classic" )
ADD_SHORTCUT( "idctclassic" )

4
plugins/idct/idctmmx.c

@ -2,7 +2,7 @@
* idctmmx.c : MMX IDCT module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: idctmmx.c,v 1.23 2002/02/15 13:32:53 sam Exp $
* $Id: idctmmx.c,v 1.24 2002/04/19 13:56:11 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
@ -50,7 +50,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "MMX IDCT module" )
SET_DESCRIPTION( _("MMX IDCT module") )
ADD_CAPABILITY( IDCT, 150 )
ADD_REQUIREMENT( MMX )
ADD_SHORTCUT( "mmx" )

4
plugins/idct/idctmmxext.c

@ -2,7 +2,7 @@
* idctmmxext.c : MMX EXT IDCT module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: idctmmxext.c,v 1.20 2002/02/15 13:32:53 sam Exp $
* $Id: idctmmxext.c,v 1.21 2002/04/19 13:56:11 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
@ -50,7 +50,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "MMX EXT IDCT module" )
SET_DESCRIPTION( _("MMX EXT IDCT module") )
ADD_CAPABILITY( IDCT, 200 )
ADD_REQUIREMENT( MMXEXT )
ADD_SHORTCUT( "mmxext" )

4
plugins/imdct/imdct.c

@ -2,7 +2,7 @@
* imdct.c : IMDCT module
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: imdct.c,v 1.8 2002/02/15 13:32:53 sam Exp $
* $Id: imdct.c,v 1.9 2002/04/19 13:56:11 sam Exp $
*
* Authors: Gaël Hendryckx <jimmy@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "AC3 IMDCT module" )
SET_DESCRIPTION( _("AC3 IMDCT module") )
ADD_CAPABILITY( IMDCT, 50 )
ADD_SHORTCUT( "c" )
ADD_SHORTCUT( "imdct" )

4
plugins/imdct/imdct3dn.c

@ -2,7 +2,7 @@
* imdct3dn.c : accelerated 3D Now! IMDCT module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: imdct3dn.c,v 1.10 2002/02/15 13:32:53 sam Exp $
* $Id: imdct3dn.c,v 1.11 2002/04/19 13:56:11 sam Exp $
*
* Authors: Renaud Dartus <reno@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "3D Now! AC3 IMDCT module" )
SET_DESCRIPTION( _("3D Now! AC3 IMDCT module") )
ADD_CAPABILITY( IMDCT, 200 )
ADD_REQUIREMENT( 3DNOW )
ADD_SHORTCUT( "3dn" )

4
plugins/imdct/imdctsse.c

@ -2,7 +2,7 @@
* imdctsse.c : accelerated SSE IMDCT module
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: imdctsse.c,v 1.11 2002/02/15 13:32:53 sam Exp $
* $Id: imdctsse.c,v 1.12 2002/04/19 13:56:11 sam Exp $
*
* Authors: Gaël Hendryckx <jimmy@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "SSE AC3 IMDCT module" )
SET_DESCRIPTION( _("SSE AC3 IMDCT module") )
ADD_CAPABILITY( IMDCT, 200 )
ADD_REQUIREMENT( SSE )
ADD_SHORTCUT( "sse" )

4
plugins/kde/kde.cpp

@ -2,7 +2,7 @@
* kde.cpp : KDE plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: kde.cpp,v 1.11 2002/04/04 15:35:09 sam Exp $
* $Id: kde.cpp,v 1.12 2002/04/19 13:56:11 sam Exp $
*
* Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
*
@ -51,7 +51,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "KDE interface module" )
SET_DESCRIPTION( _("KDE interface module") )
#ifndef WIN32
if( getenv( "DISPLAY" ) == NULL )
{

4
plugins/lirc/lirc.c

@ -2,7 +2,7 @@
* lirc.c : lirc plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: lirc.c,v 1.9 2002/02/25 11:25:22 sam Exp $
* $Id: lirc.c,v 1.10 2002/04/19 13:56:11 sam Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
@ -68,7 +68,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "infrared remote control module" )
SET_DESCRIPTION( _("infrared remote control module") )
ADD_CAPABILITY( INTF, 8 )
ADD_SHORTCUT( "lirc" )
MODULE_INIT_STOP

4
plugins/lpcm_adec/lpcm_adec.c

@ -2,7 +2,7 @@
* lpcm_decoder_thread.c: lpcm decoder thread
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: lpcm_adec.c,v 1.13 2002/02/24 22:06:50 sam Exp $
* $Id: lpcm_adec.c,v 1.14 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Henri Fallon <henri@videolan.org>
@ -68,7 +68,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Linear PCM audio decoder" )
SET_DESCRIPTION( _("linear PCM audio decoder") )
ADD_CAPABILITY( DECODER, 100 )
MODULE_INIT_STOP

4
plugins/macosx/macosx.c

@ -2,7 +2,7 @@
* macosx.c: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: macosx.c,v 1.13 2002/02/18 01:34:44 jlj Exp $
* $Id: macosx.c,v 1.14 2002/04/19 13:56:11 sam Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Eugenio Jarosiewicz <ej0@cise.ufl.edu>
@ -46,7 +46,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "MacOS X interface, sound and video module" )
SET_DESCRIPTION( _("MacOS X interface, sound and video module") )
ADD_CAPABILITY( INTF, 100 )
ADD_CAPABILITY( AOUT, 100 )
ADD_CAPABILITY( VOUT, 100 )

2
plugins/mad/mad_adec.c

@ -66,7 +66,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Libmad MPEG 1/2/3 audio decoder library" )
SET_DESCRIPTION( _("libmad MPEG 1/2/3 audio decoder library") )
ADD_CAPABILITY( DECODER, 50 )
ADD_SHORTCUT( "mad" )
MODULE_INIT_STOP

10
plugins/memcpy/memcpy.c

@ -2,7 +2,7 @@
* memcpy.c : classic memcpy module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: memcpy.c,v 1.7 2002/04/03 22:36:50 massiot Exp $
* $Id: memcpy.c,v 1.8 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -63,13 +63,13 @@ MODULE_CONFIG_STOP
MODULE_INIT_START
#ifdef MODULE_NAME_IS_memcpy
SET_DESCRIPTION( "libc memcpy module" )
SET_DESCRIPTION( _("libc memcpy module") )
ADD_CAPABILITY( MEMCPY, 50 )
ADD_SHORTCUT( "c" )
ADD_SHORTCUT( "libc" )
ADD_SHORTCUT( "memcpy" )
#elif defined( MODULE_NAME_IS_memcpy3dn )
SET_DESCRIPTION( "3D Now! memcpy module" )
SET_DESCRIPTION( _("3D Now! memcpy module") )
ADD_CAPABILITY( MEMCPY, 100 )
ADD_REQUIREMENT( 3DNOW )
ADD_SHORTCUT( "3dn" )
@ -77,13 +77,13 @@ MODULE_INIT_START
ADD_SHORTCUT( "memcpy3dn" )
ADD_SHORTCUT( "memcpy3dnow" )
#elif defined( MODULE_NAME_IS_memcpymmx )
SET_DESCRIPTION( "MMX memcpy module" )
SET_DESCRIPTION( _("MMX memcpy module") )
ADD_CAPABILITY( MEMCPY, 100 )
ADD_REQUIREMENT( MMX )
ADD_SHORTCUT( "mmx" )
ADD_SHORTCUT( "memcpymmx" )
#elif defined( MODULE_NAME_IS_memcpymmxext )
SET_DESCRIPTION( "MMX EXT memcpy module" )
SET_DESCRIPTION( _("MMX EXT memcpy module") )
ADD_CAPABILITY( MEMCPY, 200 )
ADD_REQUIREMENT( MMXEXT )
ADD_SHORTCUT( "mmxext" )

4
plugins/memcpy/memcpyaltivec.c

@ -2,7 +2,7 @@
* memcpyaltivec.c : Altivec memcpy module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: memcpyaltivec.c,v 1.4 2002/04/16 23:00:54 massiot Exp $
* $Id: memcpyaltivec.c,v 1.5 2002/04/19 13:56:11 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Altivec memcpy module" )
SET_DESCRIPTION( _("AltiVec memcpy module") )
ADD_CAPABILITY( MEMCPY, 100 )
ADD_REQUIREMENT( ALTIVEC )
ADD_SHORTCUT( "altivec" )

4
plugins/mga/mga.c

@ -2,7 +2,7 @@
* mga.c : Matrox Graphic Array plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: mga.c,v 1.16 2002/02/15 13:32:53 sam Exp $
* $Id: mga.c,v 1.17 2002/04/19 13:56:11 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Samuel Hocevar <sam@zoy.org>
@ -64,7 +64,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Matrox Graphic Array video module" )
SET_DESCRIPTION( _("Matrox Graphic Array video module") )
ADD_CAPABILITY( VOUT, 10 )
ADD_SHORTCUT( "mga" )
MODULE_INIT_STOP

30
plugins/mga/xmga.c

@ -2,7 +2,7 @@
* xmga.c : X11 MGA plugin for vlc
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: xmga.c,v 1.11 2002/03/25 19:16:20 gbazin Exp $
* $Id: xmga.c,v 1.12 2002/04/19 13:56:11 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
@ -93,28 +93,28 @@ static void ToggleCursor ( vout_thread_t * );
* Building configuration tree
*****************************************************************************/
#define ALT_FS_TEXT "Alternate fullscreen method"
#define ALT_FS_LONGTEXT "There are two ways to make a fullscreen window, " \
"unfortunately each one has its drawbacks.\n" \
"1) Let the window manager handle your fullscreen " \
"window (default). But things like taskbars will " \
"likely show on top of the video\n" \
"2) Completly bypass the window manager, but then " \
"nothing will be able to show on top of the video"
#define ALT_FS_TEXT N_("alternate fullscreen method")
#define ALT_FS_LONGTEXT N_( \
"There are two ways to make a fullscreen window, unfortunately each one " \
"has its drawbacks.\n" \
"1) Let the window manager handle your fullscreen window (default). But " \
"things like taskbars will likely show on top of the video.\n" \
"2) Completly bypass the window manager, but then nothing will be able " \
"to show on top of the video.")
#define DISPLAY_TEXT "X11 display name"
#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
"By default vlc will use the value of the DISPLAY " \
"environment variable."
#define DISPLAY_TEXT N_("X11 display name")
#define DISPLAY_LONGTEXT N_( \
"Specify the X11 hardware display you want to use.\nBy default vlc will " \
"use the value of the DISPLAY environment variable.")
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Miscellaneous", NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_STRING ( "xmga_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
ADD_BOOL ( "xmga_altfullscreen", NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "X11 MGA module" )
SET_DESCRIPTION( _("X11 MGA module") )
ADD_CAPABILITY( VOUT, 60 )
ADD_SHORTCUT( "xmga" )
MODULE_INIT_STOP

4
plugins/motion/motion.c

@ -2,7 +2,7 @@
* motion.c : C motion compensation module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: motion.c,v 1.15 2002/04/07 06:48:48 sam Exp $
* $Id: motion.c,v 1.16 2002/04/19 13:56:11 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
@ -42,7 +42,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "motion compensation module" )
SET_DESCRIPTION( _("motion compensation module") )
ADD_CAPABILITY( MOTION, 50 )
ADD_SHORTCUT( "c" )
ADD_SHORTCUT( "motion" )

4
plugins/motion/motion3dnow.c

@ -2,7 +2,7 @@
* motion3dnow.c : 3DNow! motion compensation module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: motion3dnow.c,v 1.7 2002/02/15 13:32:53 sam Exp $
* $Id: motion3dnow.c,v 1.8 2002/04/19 13:56:11 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "3DNow! motion compensation module" )
SET_DESCRIPTION( _("3DNow! motion compensation module") )
ADD_CAPABILITY( MOTION, 150 )
ADD_REQUIREMENT( 3DNOW )
ADD_SHORTCUT( "3dn" )

4
plugins/motion/motionaltivec.c

@ -2,7 +2,7 @@
* motionaltivec.c : Altivec motion compensation module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: motionaltivec.c,v 1.11 2002/04/16 23:00:54 massiot Exp $
* $Id: motionaltivec.c,v 1.12 2002/04/19 13:56:11 sam Exp $
*
* Authors: Michel Lespinasse <walken@zoy.org>
* Paul Mackerras <paulus@linuxcare.com.au>
@ -45,7 +45,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Altivec motion compensation module" )
SET_DESCRIPTION( _("AltiVec motion compensation module") )
ADD_CAPABILITY( MOTION, 150 )
ADD_REQUIREMENT( ALTIVEC )
ADD_SHORTCUT( "altivec" )

4
plugins/motion/motionmmx.c

@ -2,7 +2,7 @@
* motionmmx.c : MMX motion compensation module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: motionmmx.c,v 1.15 2002/02/15 13:32:53 sam Exp $
* $Id: motionmmx.c,v 1.16 2002/04/19 13:56:11 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "MMX motion compensation module" )
SET_DESCRIPTION( _("MMX motion compensation module") )
ADD_CAPABILITY( MOTION, 150 )
ADD_REQUIREMENT( MMX )
ADD_SHORTCUT( "mmx" )

4
plugins/motion/motionmmxext.c

@ -2,7 +2,7 @@
* motionmmxext.c : MMX EXT motion compensation module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: motionmmxext.c,v 1.16 2002/02/15 13:32:53 sam Exp $
* $Id: motionmmxext.c,v 1.17 2002/04/19 13:56:11 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "MMXEXT motion compensation module" )
SET_DESCRIPTION( _("MMXEXT motion compensation module") )
ADD_CAPABILITY( MOTION, 200 )
ADD_REQUIREMENT( MMXEXT )
ADD_SHORTCUT( "mmxext" )

4
plugins/mpeg_adec/mpeg_adec.c

@ -2,7 +2,7 @@
* mpeg_adec.c: MPEG audio decoder thread
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: mpeg_adec.c,v 1.21 2002/02/24 22:06:50 sam Exp $
* $Id: mpeg_adec.c,v 1.22 2002/04/19 13:56:11 sam Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
@ -66,7 +66,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Mpeg I layer 1/2 audio decoder" )
SET_DESCRIPTION( _("MPEG I/II layer 1/2 audio decoder") )
ADD_CAPABILITY( DECODER, 100 )
ADD_REQUIREMENT( FPU )
ADD_SHORTCUT( "builtin" )

4
plugins/mpeg_system/mpeg_es.c

@ -2,7 +2,7 @@
* mpeg_es.c : Elementary Stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mpeg_es.c,v 1.7 2002/03/19 00:30:44 sam Exp $
* $Id: mpeg_es.c,v 1.8 2002/04/19 13:56:11 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
@ -58,7 +58,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "ISO 13818-2 MPEG Elementary Stream input" )
SET_DESCRIPTION( _("ISO 13818-2 MPEG Elementary Stream input") )
ADD_CAPABILITY( DEMUX, 150 )
ADD_SHORTCUT( "es" )
MODULE_INIT_STOP

4
plugins/mpeg_system/mpeg_ps.c

@ -2,7 +2,7 @@
* mpeg_ps.c : Program Stream input module for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: mpeg_ps.c,v 1.11 2002/04/15 23:04:08 massiot Exp $
* $Id: mpeg_ps.c,v 1.12 2002/04/19 13:56:11 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
@ -57,7 +57,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "ISO 13818-1 MPEG Program Stream input" )
SET_DESCRIPTION( _("ISO 13818-1 MPEG Program Stream input") )
ADD_CAPABILITY( DEMUX, 100 )
ADD_SHORTCUT( "ps" )
MODULE_INIT_STOP

4
plugins/mpeg_system/mpeg_ts.c

@ -2,7 +2,7 @@
* mpeg_ts.c : Transport Stream input module for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: mpeg_ts.c,v 1.7 2002/03/18 19:14:52 sam Exp $
* $Id: mpeg_ts.c,v 1.8 2002/04/19 13:56:11 sam Exp $
*
* Authors: Henri Fallon <henri@via.ecp.fr>
*
@ -55,7 +55,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "ISO 13818-1 MPEG Transport Stream input" )
SET_DESCRIPTION( _("ISO 13818-1 MPEG Transport Stream input") )
ADD_CAPABILITY( DEMUX, 160 )
ADD_SHORTCUT( "ts" )
MODULE_INIT_STOP

10
plugins/mpeg_vdec/video_parser.c

@ -2,7 +2,7 @@
* video_parser.c : video parser thread
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video_parser.c,v 1.15 2002/02/24 20:51:10 gbazin Exp $
* $Id: video_parser.c,v 1.16 2002/04/19 13:56:11 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
@ -77,15 +77,15 @@ void _M( vdec_getfunctions )( function_list_t * p_function_list )
#define IDCT_METHOD_VAR "mpeg_vdec_idct"
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Misc Options", NULL)
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL)
ADD_PLUGIN( IDCT_METHOD_VAR, MODULE_CAPABILITY_IDCT, NULL, NULL,
"IDCT method", NULL )
N_("IDCT method"), NULL )
ADD_PLUGIN( MOTION_METHOD_VAR, MODULE_CAPABILITY_MOTION, NULL, NULL,
"motion compensation method", NULL )
N_("motion compensation method"), NULL )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "MPEG I/II video decoder module" )
SET_DESCRIPTION( _("MPEG I/II video decoder module") )
ADD_CAPABILITY( DECODER, 50 )
MODULE_INIT_STOP

4
plugins/network/ipv4.c

@ -2,7 +2,7 @@
* ipv4.c: IPv4 network abstraction layer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ipv4.c,v 1.9 2002/04/04 05:08:05 sam Exp $
* $Id: ipv4.c,v 1.10 2002/04/19 13:56:11 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Mathias Kretschmer <mathias@research.att.com>
@ -74,7 +74,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "IPv4 network abstraction layer" )
SET_DESCRIPTION( _("IPv4 network abstraction layer") )
ADD_CAPABILITY( NETWORK, 50 )
ADD_SHORTCUT( "ipv4" )
MODULE_INIT_STOP

4
plugins/network/ipv6.c

@ -2,7 +2,7 @@
* ipv6.c: IPv6 network abstraction layer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: ipv6.c,v 1.4 2002/04/18 04:34:37 sam Exp $
* $Id: ipv6.c,v 1.5 2002/04/19 13:56:11 sam Exp $
*
* Authors: Alexis Guillard <alexis.guillard@bt.com>
* Christophe Massiot <massiot@via.ecp.fr>
@ -71,7 +71,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "IPv6 network abstraction layer" )
SET_DESCRIPTION( _("IPv6 network abstraction layer") )
ADD_CAPABILITY( NETWORK, 40 )
ADD_SHORTCUT( "ipv6" )
MODULE_INIT_STOP

2
plugins/qnx/qnx.c

@ -44,7 +44,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "QNX RTOS module" )
SET_DESCRIPTION( _("QNX RTOS module") )
ADD_CAPABILITY( VOUT, 100 )
ADD_CAPABILITY( AOUT, 50 )
ADD_SHORTCUT( "qnx" )

4
plugins/qt/qt.cpp

@ -2,7 +2,7 @@
* qt.cpp : Qt plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: qt.cpp,v 1.9 2002/03/17 17:00:38 sam Exp $
* $Id: qt.cpp,v 1.10 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -43,7 +43,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Qt interface module" )
SET_DESCRIPTION( _("Qt interface module") )
#ifndef WIN32
if( getenv( "DISPLAY" ) == NULL )
{

2
plugins/satellite/satellite.c

@ -45,7 +45,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Satellite input module" )
SET_DESCRIPTION( _("satellite input module") )
ADD_CAPABILITY( DEMUX, 0 )
ADD_CAPABILITY( ACCESS, 50 )
ADD_SHORTCUT( "satellite" )

4
plugins/sdl/sdl.c

@ -2,7 +2,7 @@
* sdl.c : SDL plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: sdl.c,v 1.19 2001/12/30 07:09:56 sam Exp $
* $Id: sdl.c,v 1.20 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org>
@ -49,7 +49,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Simple DirectMedia Layer module" )
SET_DESCRIPTION( _("Simple DirectMedia Layer module") )
ADD_CAPABILITY( AOUT, 40 )
ADD_CAPABILITY( VOUT, 100 )
ADD_SHORTCUT( "sdl" )

4
plugins/text/logger.c

@ -2,7 +2,7 @@
* logger.c : file logging plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: logger.c,v 1.5 2002/03/11 07:23:09 gbazin Exp $
* $Id: logger.c,v 1.6 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -64,7 +64,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "file logging interface module" )
SET_DESCRIPTION( _("file logging interface module") )
ADD_CAPABILITY( INTF, 1 )
ADD_SHORTCUT( "logger" )
MODULE_INIT_STOP

4
plugins/text/ncurses.c

@ -2,7 +2,7 @@
* ncurses.c : NCurses plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: ncurses.c,v 1.13 2002/04/06 04:22:27 sam Exp $
* $Id: ncurses.c,v 1.14 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -53,7 +53,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "ncurses interface module" )
SET_DESCRIPTION( _("ncurses interface module") )
ADD_CAPABILITY( INTF, 10 )
ADD_SHORTCUT( "curses" )
ADD_SHORTCUT( "ncurses" )

4
plugins/text/rc.c

@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.11 2002/03/26 23:08:40 gbazin Exp $
* $Id: rc.c,v 1.12 2002/04/19 13:56:11 sam Exp $
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
@ -81,7 +81,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "remote control interface module" )
SET_DESCRIPTION( _("remote control interface module") )
ADD_CAPABILITY( INTF, 20 )
ADD_SHORTCUT( "rc" )
MODULE_INIT_STOP

4
plugins/vcd/vcd.c

@ -2,7 +2,7 @@
* vcd.c : VCD input module for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: vcd.c,v 1.8 2002/03/06 16:39:37 stef Exp $
* $Id: vcd.c,v 1.9 2002/04/19 13:56:11 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
@ -42,7 +42,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "VCD input module" )
SET_DESCRIPTION( _("VCD input module") )
ADD_CAPABILITY( DEMUX, 0 )
ADD_CAPABILITY( ACCESS, 80 )
ADD_SHORTCUT( "vcd" )

4
plugins/win32/waveout.c

@ -2,7 +2,7 @@
* waveout.c : Windows waveOut plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: waveout.c,v 1.6 2002/03/20 23:00:16 gbazin Exp $
* $Id: waveout.c,v 1.7 2002/04/19 13:56:11 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -48,7 +48,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Win32 waveOut extension module" )
SET_DESCRIPTION( _("Win32 waveOut extension module") )
ADD_CAPABILITY( AOUT, 250 )
ADD_SHORTCUT( "waveout" )
MODULE_INIT_STOP

2
plugins/win32/win32.cpp

@ -42,7 +42,7 @@ MODULE_CONFIG_START
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Win32 interface module" )
SET_DESCRIPTION( _("Win32 interface module") )
ADD_CAPABILITY( INTF, 100 )
ADD_SHORTCUT( "win" )
ADD_SHORTCUT( "win32" )

30
plugins/x11/x11.c

@ -2,7 +2,7 @@
* x11.c : X11 plugin for vlc
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: x11.c,v 1.14 2002/03/25 19:16:20 gbazin Exp $
* $Id: x11.c,v 1.15 2002/04/19 13:56:11 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
@ -37,28 +37,28 @@
* Building configuration tree
*****************************************************************************/
#define ALT_FS_TEXT "Alternate fullscreen method"
#define ALT_FS_LONGTEXT "There are two ways to make a fullscreen window, " \
"unfortunately each one has its drawbacks.\n" \
"1) Let the window manager handle your fullscreen " \
"window (default). But things like taskbars will " \
"likely show on top of the video\n" \
"2) Completly bypass the window manager, but then " \
"nothing will be able to show on top of the video"
#define ALT_FS_TEXT N_("alternate fullscreen method")
#define ALT_FS_LONGTEXT N_( \
"There are two ways to make a fullscreen window, unfortunately each one " \
"has its drawbacks.\n" \
"1) Let the window manager handle your fullscreen window (default). But " \
"things like taskbars will likely show on top of the video.\n" \
"2) Completly bypass the window manager, but then nothing will be able " \
"to show on top of the video.")
#define DISPLAY_TEXT "X11 display name"
#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
"By default vlc will use the value of the DISPLAY " \
"environment variable."
#define DISPLAY_TEXT N_("X11 display name")
#define DISPLAY_LONGTEXT N_( \
"Specify the X11 hardware display you want to use.\nBy default vlc will " \
"use the value of the DISPLAY environment variable.")
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Miscellaneous", NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_STRING ( "x11_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
ADD_BOOL ( "x11_altfullscreen", NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "X11 module" )
SET_DESCRIPTION( _("X11 module") )
ADD_CAPABILITY( VOUT, 50 )
ADD_SHORTCUT( "x11" )
MODULE_INIT_STOP

42
plugins/x11/xvideo.c

@ -2,7 +2,7 @@
* xvideo.c : Xvideo plugin for vlc
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: xvideo.c,v 1.9 2002/03/25 19:16:20 gbazin Exp $
* $Id: xvideo.c,v 1.10 2002/04/19 13:56:11 sam Exp $
*
* Authors: Shane Harper <shanegh@optusnet.com.au>
* Vincent Seguin <seguin@via.ecp.fr>
@ -37,34 +37,34 @@
/*****************************************************************************
* Building configuration tree
*****************************************************************************/
#define ADAPTOR_TEXT "XVideo adaptor number"
#define ADAPTOR_LONGTEXT "If you graphics card provides several adaptors, " \
"this option allows you to choose which one will " \
"be used (you shouldn't have to change this)"
#define ALT_FS_TEXT "Alternate fullscreen method"
#define ALT_FS_LONGTEXT "There are two ways to make a fullscreen window, " \
"unfortunately each one has its drawbacks.\n" \
"1) Let the window manager handle your fullscreen " \
"window (default). But things like taskbars will " \
"likely show on top of the video\n" \
"2) Completly bypass the window manager, but then " \
"nothing will be able to show on top of the video"
#define DISPLAY_TEXT "X11 display name"
#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
"By default vlc will use the value of the DISPLAY " \
"environment variable."
#define ADAPTOR_TEXT N_("XVideo adaptor number")
#define ADAPTOR_LONGTEXT N_( \
"If you graphics card provides several adaptors, this option allows you " \
"to choose which one will be used (you shouldn't have to change this).")
#define ALT_FS_TEXT N_("alternate fullscreen method")
#define ALT_FS_LONGTEXT N_( \
"There are two ways to make a fullscreen window, unfortunately each one " \
"has its drawbacks.\n" \
"1) Let the window manager handle your fullscreen window (default). But " \
"things like taskbars will likely show on top of the video.\n" \
"2) Completly bypass the window manager, but then nothing will be able " \
"to show on top of the video.")
#define DISPLAY_TEXT N_("X11 display name")
#define DISPLAY_LONGTEXT N_( \
"Specify the X11 hardware display you want to use.\nBy default vlc will " \
"use the value of the DISPLAY environment variable.")
MODULE_CONFIG_START
ADD_CATEGORY_HINT( "Miscellaneous", NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_STRING ( "xvideo_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
ADD_INTEGER ( "xvideo_adaptor", -1, NULL, ADAPTOR_TEXT, ADAPTOR_LONGTEXT )
ADD_BOOL ( "xvideo_altfullscreen", NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "XVideo extension module" )
SET_DESCRIPTION( _("XVideo extension module") )
ADD_CAPABILITY( VOUT, 150 )
ADD_SHORTCUT( "xvideo" )
MODULE_INIT_STOP

84
po/POTFILES.in

@ -1,2 +1,84 @@
plugins/gtk/gnome_interface.c
src/interface/main.c
src/misc/configuration.c
plugins/a52/a52.c
plugins/aa/aa.c
plugins/ac3_adec/ac3_adec.c
plugins/ac3_spdif/ac3_spdif.c
plugins/access/file.c
plugins/access/http.c
plugins/access/udp.c
plugins/alsa/alsa.c
plugins/arts/arts.c
plugins/beos/beos.cpp
plugins/chroma/i420_rgb.c
plugins/chroma/i420_ymga.c
plugins/chroma/i420_yuy2.c
plugins/chroma/i422_yuy2.c
plugins/directx/directx.c
plugins/downmix/downmix.c
plugins/downmix/downmix3dn.c
plugins/downmix/downmixsse.c
plugins/dsp/dsp.c
plugins/dummy/dummy.c
plugins/dummy/null.c
plugins/dvd/dvd.c
plugins/dvdread/dvdread.c
plugins/esd/esd.c
plugins/fb/fb.c
plugins/filter/deinterlace.c
plugins/filter/distort.c
plugins/filter/invert.c
plugins/filter/transform.c
plugins/filter/wall.c
plugins/fx/scope.c
plugins/ggi/ggi.c
plugins/glide/glide.c
plugins/gtk/gtk.c
plugins/gtk/gnome.c
plugins/gtk/gtk_interface.c
plugins/gtk/gnome_interface.c
plugins/gtk/gtk_preferences.c
plugins/gtk/gtk_menu.c
plugins/idct/idct.c
plugins/idct/idctaltivec.c
plugins/idct/idctclassic.c
plugins/idct/idctmmx.c
plugins/idct/idctmmxext.c
plugins/imdct/imdct.c
plugins/imdct/imdct3dn.c
plugins/imdct/imdctsse.c
plugins/kde/kde.cpp
plugins/lirc/lirc.c
plugins/lpcm_adec/lpcm_adec.c
plugins/macosx/macosx.c
plugins/mad/mad_adec.c
plugins/memcpy/memcpy.c
plugins/memcpy/memcpyaltivec.c
plugins/mga/mga.c
plugins/mga/xmga.c
plugins/motion/motion.c
plugins/motion/motion3dnow.c
plugins/motion/motionaltivec.c
plugins/motion/motionmmx.c
plugins/motion/motionmmxext.c
plugins/mpeg_adec/mpeg_adec.c
plugins/mpeg_system/mpeg_es.c
plugins/mpeg_system/mpeg_ps.c
plugins/mpeg_system/mpeg_ts.c
plugins/mpeg_vdec/video_parser.c
plugins/network/ipv4.c
plugins/network/ipv6.c
plugins/qnx/qnx.c
plugins/qt/qt.cpp
plugins/satellite/satellite.c
plugins/sdl/sdl.c
plugins/spudec/spu_decoder.c
plugins/text/logger.c
plugins/text/ncurses.c
plugins/text/rc.c
plugins/vcd/vcd.c
plugins/win32/preferences.cpp
plugins/win32/waveout.c
plugins/win32/win32.cpp
plugins/x11/x11.c
plugins/x11/xvideo.c

2280
po/de.po

File diff suppressed because it is too large

2422
po/fr.po

File diff suppressed because it is too large

1675
po/ja.po

File diff suppressed because it is too large

2199
po/nl.po

File diff suppressed because it is too large

2299
po/no.po

File diff suppressed because it is too large

1745
po/ru.po

File diff suppressed because it is too large

1679
po/vlc.pot

File diff suppressed because it is too large

510
src/interface/main.c

@ -4,7 +4,7 @@
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: main.c,v 1.179 2002/04/17 11:43:31 sam Exp $
* $Id: main.c,v 1.180 2002/04/19 13:56:12 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
@ -94,239 +94,251 @@
#include "modules_inner.h" /* for configuration stuff */
#define INTF_TEXT "interface method"
#define INTF_LONGTEXT "This option allows you to select the interface used by"\
" vlc.\nNote that the default behaviour is to" \
" automatically select the best method available"
#define WARNING_TEXT "warning level (or use -v, -vv, etc...)"
#define WARNING_LONGTEXT "Increasing the warning level will allow you to see" \
" more debug messages and can sometimes help you to" \
" troubleshoot a problem"
#define STATS_TEXT "output statistics"
#define STATS_LONGTEXT "Enabling the stats mode will flood your log console" \
" with various statistics messages"
#define INTF_PATH_TEXT "interface default search path"
#define INTF_PATH_LONGTEXT "This option allows you to set the default path" \
" that the interface will open when looking for a" \
" file"
#define AOUT_TEXT "audio output method"
#define AOUT_LONGTEXT "This option allows you to select the audio" \
" audio output method used by vlc.\nNote that the" \
" default behaviour is to automatically select the best"\
" method available"
#define NOAUDIO_TEXT "disable audio"
#define NOAUDIO_LONGTEXT "This will completely disable the audio output. The" \
" audio decoding stage shouldn't even be done, so it"\
" can allow you to save some processing power"
#define MONO_TEXT "mono audio"
#define MONO_LONGTEXT "This will force a mono audio output"
#define INTF_TEXT N_("interface method")
#define INTF_LONGTEXT N_( \
"This option allows you to select the interface used by vlc.\nNote that " \
"the default behaviour is to automatically select the best method " \
"available.")
#define WARNING_TEXT N_("warning level (or use -v, -vv, etc...)")
#define WARNING_LONGTEXT N_( \
"Increasing the warning level will allow you to see more debug messages " \
"and can sometimes help you to troubleshoot a problem.")
#define STATS_TEXT N_("output statistics")
#define STATS_LONGTEXT N_( \
"Enabling the stats mode will flood your log console with various " \
"statistics messages.")
#define INTF_PATH_TEXT N_("interface default search path")
#define INTF_PATH_LONGTEXT N_( \
"This option allows you to set the default path that the interface will " \
"open when looking for a file.")
#define AOUT_TEXT N_("audio output method")
#define AOUT_LONGTEXT N_( \
"This option allows you to select the audio audio output method used by " \
"vlc.\nNote that the default behaviour is to automatically select the " \
"best method available.")
#define NOAUDIO_TEXT N_("disable audio")
#define NOAUDIO_LONGTEXT N_( \
"This will completely disable the audio output. The audio decoding " \
"stage shouldn't even be done, so it can allow you to save some " \
"processing power.")
#define MONO_TEXT N_("mono audio")
#define MONO_LONGTEXT N_("This will force a mono audio output")
#define VOLUME_TEXT N_("audio output volume")
#define VOLUME_LONGTEXT N_( \
"You can set the default audio output volume here, in a range from 0 to " \
"1024.")
#define FORMAT_TEXT N_("audio output format")
#define FORMAT_LONGTEXT N_( \
"You can force the audio output format here.\n" \
"0 -> 16 bits signed native endian (default)\n" \
"1 -> 8 bits unsigned\n" \
"2 -> 16 bits signed little endian\n" \
"3 -> 16 bits signed big endian\n" \
"4 -> 8 bits signed\n" \
"5 -> 16 bits unsigned little endian\n" \
"6 -> 16 bits unsigned big endian\n" \
"7 -> mpeg2 audio (unsupported)\n" \
"8 -> ac3 pass-through")
#define RATE_TEXT N_("audio output frequency (Hz)")
#define RATE_LONGTEXT N_( \
"You can force the audio output frequency here.\nCommon values are " \
"48000, 44100, 32000, 22050, 16000, 11025, 8000.")
#define DESYNC_TEXT N_("compensate desynchronization of audio (in ms)")
#define DESYNC_LONGTEXT N_( \
"This option allows you to delay the audio output. This can be handy if " \
"you notice a lag between the video and the audio.")
#define VOUT_TEXT N_("video output method")
#define VOUT_LONGTEXT N_( \
"This option allows you to select the video output method used by vlc.\n" \
"Note that the default behaviour is to automatically select the best " \
"method available.")
#define NOVIDEO_TEXT N_("disable video")
#define NOVIDEO_LONGTEXT N_( \
"This will completely disable the video output. The video decoding " \
"stage shouldn't even be done, so it can allow you to save some " \
"processing power.")
#define VOLUME_TEXT "audio output volume"
#define VOLUME_LONGTEXT "You can set the default audio output volume here," \
" in a range from 0 to 1024"
#define DISPLAY_TEXT N_("display identifier")
#define DISPLAY_LONGTEXT ""
#define FORMAT_TEXT "audio output format"
#define FORMAT_LONGTEXT "You can force the audio output format here.\n" \
"0 -> 16 bits signed native endian (default)\n" \
"1 -> 8 bits unsigned\n" \
"2 -> 16 bits signed little endian\n" \
"3 -> 16 bits signed big endian\n" \
"4 -> 8 bits signed\n" \
"5 -> 16 bits unsigned little endian\n" \
"6 -> 16 bits unsigned big endian\n" \
"7 -> mpeg2 audio (unsupported)\n" \
"8 -> ac3 pass-through"
#define WIDTH_TEXT N_("video width")
#define WIDTH_LONGTEXT N_( \
"You can enforce the video width here.\nNote that by default vlc will " \
"adapt to the video characteristics.")
#define RATE_TEXT "audio output frequency (Hz)"
#define RATE_LONGTEXT "You can force the audio output frequency here.\n" \
"Common values are 48000, 44100, 32000, 22050," \
" 16000, 11025, 8000"
#define HEIGHT_TEXT N_("video height")
#define HEIGHT_LONGTEXT N_( \
"You can enforce the video height here.\nNote that by default vlc will " \
"adapt to the video characteristics.")
#define DESYNC_TEXT "Compensate desynchronization of audio (in ms)"
#define DESYNC_LONGTEXT "This option allows you to delay the audio output." \
" This can be handy if you notice a lag between the" \
" video and the audio"
#define GRAYSCALE_TEXT N_("grayscale video output")
#define GRAYSCALE_LONGTEXT N_( \
"Using this option, vlc will not decode the color information from the " \
"video (this can also allow you to save some processing power).")
#define VOUT_TEXT "video output method"
#define VOUT_LONGTEXT "This option allows you to select the video output" \
" method used by vlc.\nNote that the default behaviour" \
" is to automatically select the best method available"
#define FULLSCREEN_TEXT N_("fullscreen video output")
#define FULLSCREEN_LONGTEXT N_( \
"If this option is enabled, vlc will always start a video in fullscreen " \
"mode.")
#define NOVIDEO_TEXT "disable video"
#define NOVIDEO_LONGTEXT "This will completely disable the video output. The" \
" video decoding stage shouldn't even be done, so" \
" it can allow you to save some processing power"
#define NOOVERLAY_TEXT N_("disable hardware acceleration for the video output")
#define NOOVERLAY_LONGTEXT N_( \
"By default vlc will try to take advantage of the overlay capabilities " \
"of you graphics card.")
#define DISPLAY_TEXT "display identifier"
#define DISPLAY_LONGTEXT NULL
#define SPUMARGIN_TEXT N_("force SPU position")
#define SPUMARGIN_LONGTEXT ""
#define WIDTH_TEXT "video width"
#define WIDTH_LONGTEXT "You can enforce the video width here.\nNote" \
" that by default vlc will adapt to the video" \
" characteristics"
#define FILTER_TEXT N_("video filter module")
#define FILTER_LONGTEXT ""
#define HEIGHT_TEXT "video height"
#define HEIGHT_LONGTEXT "You can enforce the video height here.\nNote" \
" that by default vlc will adapt to the video " \
" characteristics"
#define SERVER_PORT_TEXT N_("server port")
#define SERVER_PORT_LONGTEXT ""
#define GRAYSCALE_TEXT "grayscale video output"
#define GRAYSCALE_LONGTEXT "Using this option, vlc will not decode the color "\
"information from the video (this can also allow " \
"you to save some processing power)"
#define NETCHANNEL_TEXT N_("enable network channel mode")
#define NETCHANNEL_LONGTEXT ""
#define FULLSCREEN_TEXT "fullscreen video output"
#define FULLSCREEN_LONGTEXT "If this option is enabled, vlc will always " \
"start a video in fullscreen mode"
#define CHAN_SERV_TEXT N_("channel server address")
#define CHAN_SERV_LONGTEXT ""
#define NOOVERLAY_TEXT "disable hardware acceleration for the video output"
#define NOOVERLAY_LONGTEXT "By default vlc will try to take advantage of the "\
"overlay capabilities of you graphics card.\n"
#define CHAN_PORT_TEXT N_("channel server port")
#define CHAN_PORT_LONGTEXT ""
#define SPUMARGIN_TEXT "force SPU position"
#define SPUMARGIN_LONGTEXT NULL
#define IFACE_TEXT N_("network interface")
#define IFACE_LONGTEXT ""
#define FILTER_TEXT "video filter module"
#define FILTER_LONGTEXT NULL
#define INPUT_PROGRAM_TEXT N_("choose program (SID)")
#define INPUT_PROGRAM_LONGTEXT N_( \
"Choose the program to select by giving its Service ID.")
#define SERVER_PORT_TEXT "server port"
#define SERVER_PORT_LONGTEXT NULL
#define INPUT_AUDIO_TEXT N_("choose audio")
#define INPUT_AUDIO_LONGTEXT ""
#define NETCHANNEL_TEXT "enable network channel mode"
#define NETCHANNEL_LONGTEXT NULL
#define INPUT_CHAN_TEXT N_("choose channel")
#define INPUT_CHAN_LONGTEXT ""
#define CHAN_SERV_TEXT "channel server address"
#define CHAN_SERV_LONGTEXT NULL
#define INPUT_SUBT_TEXT N_("choose subtitles")
#define INPUT_SUBT_LONGTEXT ""
#define CHAN_PORT_TEXT "channel server port"
#define CHAN_PORT_LONGTEXT NULL
#define DVD_DEV_TEXT N_("DVD device")
#define DVD_DEV_LONGTEXT ""
#define IFACE_TEXT "network interface"
#define IFACE_LONGTEXT NULL
#define VCD_DEV_TEXT N_("VCD device")
#define VCD_DEV_LONGTEXT ""
#define INPUT_PROGRAM_TEXT "choose program (SID)"
#define INPUT_PROGRAM_LONGTEXT "choose the program to select by giving its"\
"Service ID"
#define SAT_FREQ_TEXT N_("satellite transponder frequency")
#define SAT_FREQ_LONGTEXT ""
#define INPUT_AUDIO_TEXT "choose audio"
#define INPUT_AUDIO_LONGTEXT NULL
#define SAT_POL_TEXT N_("satellite transponder polarization")
#define SAT_POL_LONGTEXT ""
#define INPUT_CHAN_TEXT "choose channel"
#define INPUT_CHAN_LONGTEXT NULL
#define SAT_FEC_TEXT N_("satellite transponder FEC")
#define SAT_FEC_LONGTEXT ""
#define INPUT_SUBT_TEXT "choose subtitles"
#define INPUT_SUBT_LONGTEXT NULL
#define SAT_SRATE_TEXT N_("satellite transponder symbol rate")
#define SAT_SRATE_LONGTEXT ""
#define DVD_DEV_TEXT "DVD device"
#define DVD_DEV_LONGTEXT NULL
#define SAT_DISEQC_TEXT N_("use diseqc with antenna")
#define SAT_DISEQC_LONGTEXT ""
#define VCD_DEV_TEXT "VCD device"
#define VCD_DEV_LONGTEXT NULL
#define SAT_LNB_LOF1_TEXT N_("antenna lnb_lof1 (kHz)")
#define SAT_LNB_LOF1_LONGTEXT ""
#define SAT_FREQ_TEXT "Satellite transponder frequency"
#define SAT_FREQ_LONGTEXT NULL
#define SAT_LNB_LOF2_TEXT N_("antenna lnb_lof2 (kHz)")
#define SAT_LNB_LOF2_LONGTEXT ""
#define SAT_POL_TEXT "Satellite transponder polarization"
#define SAT_POL_LONGTEXT NULL
#define SAT_LNB_SLOF_TEXT N_("antenna lnb_slof (kHz)")
#define SAT_LNB_SLOF_LONGTEXT ""
#define SAT_FEC_TEXT "Satellite transponder FEC"
#define SAT_FEC_LONGTEXT NULL
#define IPV6_TEXT N_("force IPv6")
#define IPV6_LONGTEXT ""
#define SAT_SRATE_TEXT "Satellite transponder symbol rate"
#define SAT_SRATE_LONGTEXT NULL
#define IPV4_TEXT N_("force IPv4")
#define IPV4_LONGTEXT ""
#define SAT_DISEQC_TEXT "Use diseqc with antenna"
#define SAT_DISEQC_LONGTEXT NULL
#define ADEC_MPEG_TEXT N_("choose MPEG audio decoder")
#define ADEC_MPEG_LONGTEXT ""
#define SAT_LNB_LOF1_TEXT "Antenna lnb_lof1 (kHz)"
#define SAT_LNB_LOF1_LONGTEXT NULL
#define ADEC_AC3_TEXT N_("choose AC3 audio decoder")
#define ADEC_AC3_LONGTEXT ""
#define SAT_LNB_LOF2_TEXT "Antenna lnb_lof2 (kHz)"
#define SAT_LNB_LOF2_LONGTEXT NULL
#define VDEC_SMP_TEXT N_("use additional processors")
#define VDEC_SMP_LONGTEXT ""
#define SAT_LNB_SLOF_TEXT "Antenna lnb_slof (kHz)"
#define SAT_LNB_SLOF_LONGTEXT NULL
#define VPAR_SYNCHRO_TEXT N_("force synchro algorithm {I|I+|IP|IP+|IPB}")
#define VPAR_SYNCHRO_LONGTEXT ""
#define IPV6_TEXT "force IPv6"
#define IPV6_LONGTEXT NULL
#define NOMMX_TEXT N_("disable CPU's MMX support")
#define NOMMX_LONGTEXT ""
#define IPV4_TEXT "force IPv4"
#define IPV4_LONGTEXT NULL
#define NO3DN_TEXT N_("disable CPU's 3D Now! support")
#define NO3DN_LONGTEXT ""
#define ADEC_MPEG_TEXT "choose MPEG audio decoder"
#define ADEC_MPEG_LONGTEXT NULL
#define NOMMXEXT_TEXT N_("disable CPU's MMX EXT support")
#define NOMMXEXT_LONGTEXT ""
#define ADEC_AC3_TEXT "choose AC3 audio decoder"
#define ADEC_AC3_LONGTEXT NULL
#define NOSSE_TEXT N_("disable CPU's SSE support")
#define NOSSE_LONGTEXT ""
#define VDEC_SMP_TEXT "use additional processors"
#define VDEC_SMP_LONGTEXT NULL
#define NOALTIVEC_TEXT N_("disable CPU's AltiVec support")
#define NOALTIVEC_LONGTEXT ""
#define VPAR_SYNCHRO_TEXT "force synchro algorithm {I|I+|IP|IP+|IPB}"
#define VPAR_SYNCHRO_LONGTEXT NULL
#define PLAYLIST_LAUNCH_TEXT N_("launch playlist on startup")
#define PLAYLIST_LAUNCH_LONGTEXT ""
#define NOMMX_TEXT "disable CPU's MMX support"
#define NOMMX_LONGTEXT NULL
#define PLAYLIST_ENQUEUE_TEXT N_("enqueue playlist as default")
#define PLAYLIST_ENQUEUE_LONGTEXT ""
#define NO3DN_TEXT "disable CPU's 3D Now! support"
#define NO3DN_LONGTEXT NULL
#define PLAYLIST_LOOP_TEXT N_("loop playlist on end")
#define PLAYLIST_LOOP_LONGTEXT ""
#define NOMMXEXT_TEXT "disable CPU's MMX EXT support"
#define NOMMXEXT_LONGTEXT NULL
#define MEMCPY_TEXT N_("memory copy method")
#define MEMCPY_LONGTEXT ""
#define NOSSE_TEXT "disable CPU's SSE support"
#define NOSSE_LONGTEXT NULL
#define FAST_PTHREAD_TEXT N_("fast pthread on NT/2K/XP (developpers only)")
#define FAST_PTHREAD_LONGTEXT N_( \
"On Windows NT/2K/XP we use a slow but correct pthread implementation, " \
"you can also use this faster implementation but you might experience " \
"problems with it.")
#define NOALTIVEC_TEXT "disable CPU's AltiVec support"
#define NOALTIVEC_LONGTEXT NULL
#define PLAYLIST_LAUNCH_TEXT "launch playlist on startup"
#define PLAYLIST_LAUNCH_LONGTEXT NULL
#define PLAYLIST_ENQUEUE_TEXT "enqueue playlist as default"
#define PLAYLIST_ENQUEUE_LONGTEXT NULL
#define PLAYLIST_LOOP_TEXT "loop playlist on end"
#define PLAYLIST_LOOP_LONGTEXT NULL
#define MEMCPY_TEXT "memory copy method"
#define MEMCPY_LONGTEXT NULL
#define FAST_PTHREAD_TEXT "fast pthread on NT/2K/XP (developpers only)"
#define FAST_PTHREAD_LONGTEXT "On Windows NT/2K/XP we use a slow but correct "\
"pthread implementation, you can also use this "\
"faster implementation but you might "\
"experience problems with it"
/* Quick usage guide
MODULE_CONFIG_START
MODULE_CONFIG_STOP
ADD_CATEGORY_HINT( text, longtext )
ADD_SUBCATEGORY_HINT( text, longtext )
ADD_STRING( option_name, value, p_callback, text, longtext )
ADD_FILE( option_name, psz_value, p_callback, text, longtext )
ADD_PLUGIN( option_name, psz_value, i_capability, p_callback, text, longtext )
ADD_INTEGER( option_name, i_value, p_callback, text, longtext )
ADD_BOOL( option_name, p_callback, text, longtext )
*/
/*
* Quick usage guide for the configuration options:
*
* MODULE_CONFIG_START
* MODULE_CONFIG_STOP
* ADD_CATEGORY_HINT( N_(text), longtext )
* ADD_SUBCATEGORY_HINT( N_(text), longtext )
* ADD_STRING( option_name, value, p_callback, N_(text), N_(longtext) )
* ADD_FILE( option_name, psz_value, p_callback, N_(text), N_(longtext) )
* ADD_PLUGIN( option_name, psz_value, i_capability, p_callback,
* N_(text), N_(longtext) )
* ADD_INTEGER( option_name, i_value, p_callback, N_(text), N_(longtext) )
* ADD_BOOL( option_name, p_callback, N_(text), N_(longtext) )
*/
MODULE_CONFIG_START
/* Interface options */
ADD_CATEGORY_HINT( "Interface", NULL)
ADD_CATEGORY_HINT( N_("Interface"), NULL)
ADD_PLUGIN ( "intf", MODULE_CAPABILITY_INTF, NULL, NULL, INTF_TEXT, INTF_LONGTEXT )
ADD_INTEGER ( "warning", 0, NULL, WARNING_TEXT, WARNING_LONGTEXT )
ADD_BOOL ( "stats", NULL, STATS_TEXT, STATS_LONGTEXT )
ADD_STRING ( "search_path", NULL, NULL, INTF_PATH_TEXT, INTF_PATH_LONGTEXT )
/* Audio options */
ADD_CATEGORY_HINT( "Audio", NULL)
ADD_CATEGORY_HINT( N_("Audio"), NULL)
ADD_PLUGIN ( "aout", MODULE_CAPABILITY_AOUT, NULL, NULL, AOUT_TEXT, AOUT_LONGTEXT )
ADD_BOOL ( "noaudio", NULL, NOAUDIO_TEXT, NOAUDIO_LONGTEXT )
ADD_BOOL ( "mono", NULL, MONO_TEXT, MONO_LONGTEXT )
@ -337,7 +349,7 @@ ADD_INTEGER ( "aout_format", 0, NULL, FORMAT_TEXT,
FORMAT_LONGTEXT )
/* Video options */
ADD_CATEGORY_HINT( "Video", NULL )
ADD_CATEGORY_HINT( N_("Video"), NULL )
ADD_PLUGIN ( "vout", MODULE_CAPABILITY_VOUT, NULL, NULL, VOUT_TEXT, VOUT_LONGTEXT )
ADD_BOOL ( "novideo", NULL, NOVIDEO_TEXT, NOVIDEO_LONGTEXT )
ADD_INTEGER ( "width", -1, NULL, WIDTH_TEXT, WIDTH_LONGTEXT )
@ -349,7 +361,7 @@ ADD_INTEGER ( "spumargin", -1, NULL, SPUMARGIN_TEXT, SPUMARGIN_LONGTEXT )
ADD_PLUGIN ( "filter", MODULE_CAPABILITY_VOUT, NULL, NULL, FILTER_TEXT, FILTER_LONGTEXT )
/* Input options */
ADD_CATEGORY_HINT( "Input", NULL )
ADD_CATEGORY_HINT( N_("Input"), NULL )
ADD_INTEGER ( "server_port", 1234, NULL, SERVER_PORT_TEXT, SERVER_PORT_LONGTEXT )
ADD_BOOL ( "network_channel", NULL, NETCHANNEL_TEXT, NETCHANNEL_LONGTEXT )
ADD_STRING ( "channel_server", "localhost", NULL, CHAN_SERV_TEXT, CHAN_SERV_LONGTEXT )
@ -383,14 +395,14 @@ ADD_BOOL ( "ipv6", NULL, IPV6_TEXT, IPV6_LONGTEXT )
ADD_BOOL ( "ipv4", NULL, IPV4_TEXT, IPV4_LONGTEXT )
/* Decoder options */
ADD_CATEGORY_HINT( "Decoders", NULL )
ADD_CATEGORY_HINT( N_("Decoders"), NULL )
ADD_PLUGIN ( "mpeg_adec", MODULE_CAPABILITY_DECODER, NULL, NULL, ADEC_MPEG_TEXT, ADEC_MPEG_LONGTEXT )
ADD_PLUGIN ( "ac3_adec", MODULE_CAPABILITY_DECODER, NULL, NULL, ADEC_AC3_TEXT, ADEC_AC3_LONGTEXT )
ADD_INTEGER ( "vdec_smp", 0, NULL, VDEC_SMP_TEXT, VDEC_SMP_LONGTEXT )
ADD_STRING ( "vpar_synchro", NULL, NULL, VPAR_SYNCHRO_TEXT, VPAR_SYNCHRO_LONGTEXT )
/* CPU options */
ADD_CATEGORY_HINT( "CPU", NULL )
ADD_CATEGORY_HINT( N_("CPU"), NULL )
ADD_BOOL ( "nommx", NULL, NOMMX_TEXT, NOMMX_LONGTEXT )
ADD_BOOL ( "no3dn", NULL, NO3DN_TEXT, NO3DN_LONGTEXT )
ADD_BOOL ( "nommxext", NULL, NOMMXEXT_TEXT, NOMMXEXT_LONGTEXT )
@ -398,13 +410,13 @@ ADD_BOOL ( "nosse", NULL, NOSSE_TEXT, NOSSE_LONGTEXT )
ADD_BOOL ( "noaltivec", NULL, NOALTIVEC_TEXT, NOALTIVEC_LONGTEXT )
/* Playlist options */
ADD_CATEGORY_HINT( "Playlist", NULL )
ADD_CATEGORY_HINT( N_("Playlist"), NULL )
ADD_BOOL ( "playlist_launch", NULL, PLAYLIST_LAUNCH_TEXT, PLAYLIST_LAUNCH_LONGTEXT )
ADD_BOOL ( "playlist_enqueue", NULL, PLAYLIST_ENQUEUE_TEXT, PLAYLIST_ENQUEUE_LONGTEXT )
ADD_BOOL ( "playlist_loop", NULL, PLAYLIST_LOOP_TEXT, PLAYLIST_LOOP_LONGTEXT )
/* Misc options */
ADD_CATEGORY_HINT( "Miscellaneous", NULL )
ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
ADD_PLUGIN ( "memcpy", MODULE_CAPABILITY_MEMCPY, NULL, NULL, MEMCPY_TEXT, MEMCPY_LONGTEXT )
#if defined(WIN32)
@ -414,7 +426,7 @@ ADD_BOOL ( "fast_pthread", NULL, FAST_PTHREAD_TEXT, FAST_PTHREAD_LONGTEXT )
MODULE_CONFIG_STOP
MODULE_INIT_START
SET_DESCRIPTION( "Main program" )
SET_DESCRIPTION( N_("main program") )
ADD_CAPABILITY( MAIN, 100/*whatever*/ )
MODULE_INIT_STOP
@ -427,19 +439,18 @@ MODULE_DEACTIVATE_STOP
/* Hack for help options */
static module_t help_module;
static module_config_t p_help_config[] = {
{ MODULE_CONFIG_ITEM_BOOL, "help", "print help (or use -h)",
{ MODULE_CONFIG_ITEM_BOOL, "help", N_("print help (or use -h)"),
NULL, NULL, 0, NULL, NULL, 0 },
{ MODULE_CONFIG_ITEM_BOOL, "longhelp", "print detailed help (or use -H)",
{ MODULE_CONFIG_ITEM_BOOL, "longhelp", N_("print detailed help (or use -H)"),
NULL, NULL, 0, NULL, NULL, 0 },
{ MODULE_CONFIG_ITEM_BOOL, "list", "print a list of available plugins "
"(or use -l)", NULL, NULL, 0, NULL, NULL, 0 },
{ MODULE_CONFIG_ITEM_STRING, "plugin", "print help on plugin (or use -p)",
NULL, NULL, 0, NULL, &help_module.config_lock, 0 },
{ MODULE_CONFIG_ITEM_BOOL, "version", "print version information",
{ MODULE_CONFIG_ITEM_BOOL, "list", N_("print a list of available plugins "
"(or use -l)"), NULL, NULL, 0, NULL, NULL, 0 },
{ MODULE_CONFIG_ITEM_STRING, "plugin", N_("print help on plugin "
"(or use -p)"), NULL, NULL, 0, NULL, &help_module.config_lock, 0 },
{ MODULE_CONFIG_ITEM_BOOL, "version", N_("print version information"),
NULL, NULL, 0, NULL, NULL, 0 },
{ MODULE_CONFIG_HINT_END, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0 } };
/*****************************************************************************
* End configuration.
*****************************************************************************/
@ -495,6 +506,7 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
vout_bank_t vout_bank;
char *psz_plugin;
char *p_tmp;
struct module_config_s *p_item;
p_main = &main_data; /* set up the global variables */
p_module_bank = &module_bank;
@ -504,16 +516,18 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
p_main->i_warning_level = 0;
#if defined( ENABLE_NLS ) && defined ( HAVE_GETTEXT )
/*
* Support for getext
* Support for gettext
*/
#if defined( HAVE_LOCALE_H ) && defined( HAVE_LC_MESSAGES )
#if defined( ENABLE_NLS ) && defined ( HAVE_GETTEXT )
# if defined( HAVE_LOCALE_H ) && defined( HAVE_LC_MESSAGES )
if( !setlocale( LC_MESSAGES, "" ) )
{
fprintf( stderr, "warning: unsupported locale.\n" );
fprintf( stderr, "warning: unsupported locale settings\n" );
}
#endif
setlocale( LC_CTYPE, "" );
# endif
if( !bindtextdomain( PACKAGE, LOCALEDIR ) )
{
@ -574,11 +588,16 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
/* Hack: insert the help module here */
help_module.psz_name = "help";
help_module.i_config_lines = sizeof(p_help_config) /
sizeof(module_config_t);
help_module.i_config_items = help_module.i_config_lines - 1;
help_module.i_config_items =
sizeof(p_help_config) / sizeof(module_config_t) - 1;
vlc_mutex_init( &help_module.config_lock );
help_module.p_config = p_help_config;
help_module.p_config = config_Duplicate( p_help_config );
for( p_item = help_module.p_config;
p_item->i_type != MODULE_CONFIG_HINT_END;
p_item++ )
{
p_item->p_lock = &help_module.config_lock;
}
help_module.next = p_module_bank->first;
p_module_bank->first = &help_module;
/* end hack */
@ -592,8 +611,8 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
/* Check for short help option */
if( config_GetIntVariable( "help" ) )
{
intf_Msg( "Usage: %s [options] [parameters] [file]...\n",
p_main->psz_arg0 );
intf_Msg( _("Usage: %s [options] [parameters] [file]...\n"),
p_main->psz_arg0 );
Usage( "help" );
Usage( "main" );
@ -894,8 +913,8 @@ static int GetFilenames( int i_argc, char *ppsz_argv[] )
*****************************************************************************/
static void Usage( const char *psz_module_name )
{
int i;
module_t *p_module;
module_config_t *p_item;
char psz_spaces[30];
memset( psz_spaces, 32, 30 );
@ -917,16 +936,18 @@ static void Usage( const char *psz_module_name )
if( !p_module->i_config_items ) continue;
/* print module name */
intf_Msg( "%s options:\n", p_module->psz_name );
intf_Msg( _("%s module options:\n"), p_module->psz_name );
for( i = 0; i < p_module->i_config_lines; i++ )
for( p_item = p_module->p_config;
p_item->i_type != MODULE_CONFIG_HINT_END;
p_item++ )
{
int j;
int i;
switch( p_module->p_config[i].i_type )
switch( p_item->i_type )
{
case MODULE_CONFIG_HINT_CATEGORY:
intf_Msg( " %s", p_module->p_config[i].psz_text );
intf_Msg( " %s", p_item->psz_text );
break;
case MODULE_CONFIG_ITEM_STRING:
@ -934,37 +955,34 @@ static void Usage( const char *psz_module_name )
case MODULE_CONFIG_ITEM_PLUGIN:
/* Nasty hack, but right now I'm too tired to think about
* a nice solution */
j = 25 - strlen( p_module->p_config[i].psz_name )
- strlen(" <string>") - 1;
if( j < 0 ) j = 0; psz_spaces[j] = 0;
intf_Msg( " --%s <string>%s %s",
p_module->p_config[i].psz_name, psz_spaces,
p_module->p_config[i].psz_text );
psz_spaces[j] = 32;
i = 25 - strlen( p_item->psz_name )
- strlen(_(" <string>")) - 1;
if( i < 0 ) i = 0; psz_spaces[i] = 0;
intf_Msg( " --%s%s%s %s", p_item->psz_name,
_(" <string>"), psz_spaces, p_item->psz_text );
psz_spaces[i] = 32;
break;
case MODULE_CONFIG_ITEM_INTEGER:
/* Nasty hack, but right now I'm too tired to think about
* a nice solution */
j = 25 - strlen( p_module->p_config[i].psz_name )
- strlen(" <integer>") - 1;
if( j < 0 ) j = 0; psz_spaces[j] = 0;
intf_Msg( " --%s <integer>%s %s",
p_module->p_config[i].psz_name, psz_spaces,
p_module->p_config[i].psz_text );
psz_spaces[j] = 32;
i = 25 - strlen( p_item->psz_name )
- strlen(_(" <integer>")) - 1;
if( i < 0 ) i = 0; psz_spaces[i] = 0;
intf_Msg( " --%s%s%s %s", p_item->psz_name,
_(" <integer>"), psz_spaces, p_item->psz_text );
psz_spaces[i] = 32;
break;
case MODULE_CONFIG_ITEM_BOOL:
/* Nasty hack, but right now I'm too tired to think about
* a nice solution */
j = 25 - strlen( p_module->p_config[i].psz_name ) - 1;
if( j < 0 ) j = 0; psz_spaces[j] = 0;
i = 25 - strlen( p_item->psz_name ) - 1;
if( i < 0 ) i = 0; psz_spaces[i] = 0;
intf_Msg( " --%s%s %s",
p_module->p_config[i].psz_name, psz_spaces,
p_module->p_config[i].psz_text );
psz_spaces[j] = 32;
p_item->psz_name, psz_spaces, p_item->psz_text );
psz_spaces[i] = 32;
break;
}
}
@ -973,26 +991,28 @@ static void Usage( const char *psz_module_name )
* Maybe we could use MODULE_CONFIG_ITEM_END to display tail messages
* for each module?? */
if( !strcmp( "main", p_module->psz_name ) )
intf_Msg( "\nPlaylist items:"
"\n *.mpg, *.vob \tPlain MPEG-1/2 files"
{
intf_Msg( _("\nPlaylist items:"
"\n *.mpg, *.vob \tplain MPEG-1/2 files"
"\n [dvd:][device][@raw_device][@[title][,[chapter][,angle]]]"
"\n \tDVD device"
"\n [vcd:][device][@[title][,[chapter]]"
"\n \tVCD device"
"\n udpstream:[@[<bind address>][:<bind port>]]"
"\n \tUDP stream sent by VLS"
"\n vlc:loop \tLoop execution of the "
"\n vlc:loop \tloop execution of the "
"playlist"
"\n vlc:pause \tPause execution of "
"\n vlc:pause \tpause execution of "
"playlist items"
"\n vlc:quit \tQuit VLC" );
"\n vlc:quit \tquit VLC") );
}
intf_Msg( "" );
}
#ifdef WIN32 /* Pause the console because it's destroyed when we exit */
intf_Msg( "\nPress the RETURN key to continue..." );
intf_Msg( _("\nPress the RETURN key to continue...") );
getchar();
#endif
}
@ -1015,10 +1035,10 @@ static void ListModules( void )
#endif
/* Usage */
intf_Msg( "Usage: %s [options] [parameters] [file]...\n",
intf_Msg( _("Usage: %s [options] [parameters] [file]...\n"),
p_main->psz_arg0 );
intf_Msg( "[plugin] [description]" );
intf_Msg( _("[plugin] [description]") );
/* Enumerate each module */
for( p_module = p_module_bank->first ;
@ -1041,7 +1061,7 @@ static void ListModules( void )
}
#ifdef WIN32 /* Pause the console because it's destroyed when we exit */
intf_Msg( "\nPress the RETURN key to continue..." );
intf_Msg( _("\nPress the RETURN key to continue...") );
getchar();
#endif
}
@ -1059,13 +1079,13 @@ static void Version( void )
intf_Msg( VERSION_MESSAGE );
intf_Msg(
"This program comes with NO WARRANTY, to the extent permitted by "
_("This program comes with NO WARRANTY, to the extent permitted by "
"law.\nYou may redistribute it under the terms of the GNU General "
"Public License;\nsee the file named COPYING for details.\n"
"Written by the VideoLAN team at Ecole Centrale, Paris." );
"Written by the VideoLAN team at Ecole Centrale, Paris.") );
#ifdef WIN32 /* Pause the console because it's destroyed when we exit */
intf_Msg( "\nPress the RETURN key to continue..." );
intf_Msg( _("\nPress the RETURN key to continue...") );
getchar();
#endif
}

157
src/misc/configuration.c

@ -2,7 +2,7 @@
* configuration.c management of the modules configuration
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: configuration.c,v 1.14 2002/04/17 11:43:31 sam Exp $
* $Id: configuration.c,v 1.15 2002/04/19 13:56:12 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
@ -196,7 +196,7 @@ void config_PutIntVariable( const char *psz_name, int i_value )
module_config_t *config_FindConfig( const char *psz_name )
{
module_t *p_module;
int i;
module_config_t *p_item;
if( !psz_name ) return NULL;
@ -204,13 +204,15 @@ module_config_t *config_FindConfig( const char *psz_name )
p_module != NULL ;
p_module = p_module->next )
{
for( i = 0; i < p_module->i_config_lines; i++ )
for( p_item = p_module->p_config;
p_item->i_type != MODULE_CONFIG_HINT_END;
p_item++ )
{
if( p_module->p_config[i].i_type & MODULE_CONFIG_HINT )
if( p_item->i_type & MODULE_CONFIG_HINT )
/* ignore hints */
continue;
if( !strcmp( psz_name, p_module->p_config[i].psz_name ) )
return &p_module->p_config[i];
if( !strcmp( psz_name, p_item->psz_name ) )
return p_item;
}
}
@ -224,42 +226,39 @@ module_config_t *config_FindConfig( const char *psz_name )
* this module might be unloaded from memory at any time (remember HideModule).
* This is why we need to create an exact copy of the config data.
*****************************************************************************/
module_config_t *config_Duplicate( module_t *p_module )
module_config_t *config_Duplicate( module_config_t *p_orig )
{
int i;
int i, i_lines;
module_config_t *p_config;
/* allocate memory */
p_config = (module_config_t *)malloc( sizeof(module_config_t)
* p_module->i_config_lines );
/* Calculate the structure length */
for( p_config = p_orig, i_lines = 1;
p_config->i_type != MODULE_CONFIG_HINT_END;
p_config++, i_lines++ );
/* Allocate memory */
p_config = (module_config_t *)malloc( sizeof(module_config_t) * i_lines );
if( p_config == NULL )
{
intf_ErrMsg( "config error: can't duplicate p_config" );
return( NULL );
}
for( i = 0; i < p_module->i_config_lines ; i++ )
{
p_config[i].i_type = p_module->p_config_orig[i].i_type;
p_config[i].i_value = p_module->p_config_orig[i].i_value;
p_config[i].b_dirty = p_module->p_config_orig[i].b_dirty;
p_config[i].p_lock = &p_module->config_lock;
if( p_module->p_config_orig[i].psz_name )
p_config[i].psz_name =
strdup( p_module->p_config_orig[i].psz_name );
else p_config[i].psz_name = NULL;
if( p_module->p_config_orig[i].psz_text )
p_config[i].psz_text =
strdup( p_module->p_config_orig[i].psz_text );
else p_config[i].psz_text = NULL;
if( p_module->p_config_orig[i].psz_longtext )
p_config[i].psz_longtext =
strdup( p_module->p_config_orig[i].psz_longtext );
else p_config[i].psz_longtext = NULL;
if( p_module->p_config_orig[i].psz_value )
p_config[i].psz_value =
strdup( p_module->p_config_orig[i].psz_value );
else p_config[i].psz_value = NULL;
/* Do the duplication job */
for( i = 0; i < i_lines ; i++ )
{
p_config[i].i_type = p_orig[i].i_type;
p_config[i].i_value = p_orig[i].i_value;
p_config[i].b_dirty = p_orig[i].b_dirty;
p_config[i].psz_name = p_orig[i].psz_name ?
strdup( _(p_orig[i].psz_name) ) : NULL;
p_config[i].psz_text = p_orig[i].psz_text ?
strdup( _(p_orig[i].psz_text) ) : NULL;
p_config[i].psz_longtext = p_orig[i].psz_longtext ?
strdup( _(p_orig[i].psz_longtext) ) : NULL;
p_config[i].psz_value = p_orig[i].psz_value ?
strdup( _(p_orig[i].psz_value) ) : NULL;
/* the callback pointer is only valid when the module is loaded so this
* value is set in ActivateModule() and reset in DeactivateModule() */
@ -278,10 +277,10 @@ module_config_t *config_Duplicate( module_t *p_module )
int config_LoadConfigFile( const char *psz_module_name )
{
module_t *p_module;
module_config_t *p_item;
FILE *file;
char line[1024];
char *p_index, *psz_option_name, *psz_option_value;
int i;
char *psz_filename, *psz_homedir;
/* Acquire config file lock */
@ -364,47 +363,46 @@ int config_LoadConfigFile( const char *psz_module_name )
psz_option_value = p_index + 1;
/* try to match this option with one of the module's options */
for( i = 0; i < p_module->i_config_lines; i++ )
for( p_item = p_module->p_config;
p_item->i_type != MODULE_CONFIG_HINT_END;
p_item++ )
{
if( p_module->p_config[i].i_type & MODULE_CONFIG_HINT )
if( p_item->i_type & MODULE_CONFIG_HINT )
/* ignore hints */
continue;
if( !strcmp( p_module->p_config[i].psz_name,
psz_option_name ) )
if( !strcmp( p_item->psz_name, psz_option_name ) )
{
/* We found it */
switch( p_module->p_config[i].i_type )
switch( p_item->i_type )
{
case MODULE_CONFIG_ITEM_BOOL:
case MODULE_CONFIG_ITEM_INTEGER:
if( !*psz_option_value )
break; /* ignore empty option */
p_module->p_config[i].i_value =
atoi( psz_option_value);
p_item->i_value = atoi( psz_option_value);
intf_WarnMsg( 7, "config: found <%s> option %s=%i",
p_module->psz_name,
p_module->p_config[i].psz_name,
p_module->p_config[i].i_value );
p_module->psz_name,
p_item->psz_name, p_item->i_value );
break;
default:
vlc_mutex_lock( p_module->p_config[i].p_lock );
vlc_mutex_lock( p_item->p_lock );
/* free old string */
if( p_module->p_config[i].psz_value )
free( p_module->p_config[i].psz_value );
if( p_item->psz_value )
free( p_item->psz_value );
p_module->p_config[i].psz_value = *psz_option_value ?
p_item->psz_value = *psz_option_value ?
strdup( psz_option_value ) : NULL;
vlc_mutex_unlock( p_module->p_config[i].p_lock );
vlc_mutex_unlock( p_item->p_lock );
intf_WarnMsg( 7, "config: found <%s> option %s=%s",
p_module->psz_name,
p_module->p_config[i].psz_name,
p_module->p_config[i].psz_value != NULL ?
p_module->p_config[i].psz_value :
"(NULL)" );
p_module->psz_name,
p_item->psz_name,
p_item->psz_value != NULL ?
p_item->psz_value : "(NULL)" );
break;
}
}
@ -443,9 +441,10 @@ int config_LoadConfigFile( const char *psz_module_name )
int config_SaveConfigFile( const char *psz_module_name )
{
module_t *p_module;
module_config_t *p_item;
FILE *file;
char p_line[1024], *p_index2;
int i, i_sizebuf = 0;
int i_sizebuf = 0;
char *p_bigbuffer, *p_index;
boolean_t b_backup;
char *psz_filename, *psz_homedir;
@ -469,12 +468,12 @@ int config_SaveConfigFile( const char *psz_module_name )
return -1;
}
sprintf( psz_filename, "%s/" CONFIG_DIR, psz_homedir );
#ifndef WIN32
i = mkdir( psz_filename, 0755 );
if( mkdir( psz_filename, 0755 ) && errno != EEXIST )
#else
i = mkdir( psz_filename );
if( mkdir( psz_filename ) && errno != EEXIST )
#endif
if( i && errno != EEXIST )
{
intf_ErrMsg( "config error: couldn't create %s (%s)",
psz_filename, strerror(errno) );
@ -596,30 +595,31 @@ int config_SaveConfigFile( const char *psz_module_name )
if( p_module->psz_longname )
fprintf( file, "###\n### %s\n###\n", p_module->psz_longname );
for( i = 0; i < p_module->i_config_lines; i++ )
for( p_item = p_module->p_config;
p_item->i_type != MODULE_CONFIG_HINT_END;
p_item++ )
{
if( p_module->p_config[i].i_type & MODULE_CONFIG_HINT )
if( p_item->i_type & MODULE_CONFIG_HINT )
/* ignore hints */
continue;
switch( p_module->p_config[i].i_type )
switch( p_item->i_type )
{
case MODULE_CONFIG_ITEM_BOOL:
case MODULE_CONFIG_ITEM_INTEGER:
if( p_module->p_config[i].psz_text )
fprintf( file, "# %s %s\n", p_module->p_config[i].psz_text,
MODULE_CONFIG_ITEM_BOOL?"<boolean>":"<integer>" );
fprintf( file, "%s=%i\n", p_module->p_config[i].psz_name,
p_module->p_config[i].i_value );
if( p_item->psz_text )
fprintf( file, "# %s %s\n", p_item->psz_text,
MODULE_CONFIG_ITEM_BOOL ? _("<boolean>")
: _("<integer>") );
fprintf( file, "%s=%i\n", p_item->psz_name,
p_item->i_value );
break;
default:
if( p_module->p_config[i].psz_text )
fprintf( file, "# %s <string>\n",
p_module->p_config[i].psz_text );
fprintf( file, "%s=%s\n", p_module->p_config[i].psz_name,
p_module->p_config[i].psz_value?
p_module->p_config[i].psz_value:"" );
if( p_item->psz_text )
fprintf( file, _("# %s <string>\n"), p_item->psz_text );
fprintf( file, "%s=%s\n", p_item->psz_name,
p_item->psz_value ? p_item->psz_value : "" );
}
}
@ -652,8 +652,9 @@ int config_SaveConfigFile( const char *psz_module_name )
int config_LoadCmdLine( int *pi_argc, char *ppsz_argv[],
boolean_t b_ignore_errors )
{
int i_cmd, i, i_index, i_longopts_size;
int i_cmd, i_index, i_longopts_size;
module_t *p_module;
module_config_t *p_item;
struct option *p_longopts;
/* Short options */
@ -713,14 +714,16 @@ int config_LoadCmdLine( int *pi_argc, char *ppsz_argv[],
p_module != NULL ;
p_module = p_module->next )
{
for( i = 0; i < p_module->i_config_lines; i++ )
for( p_item = p_module->p_config;
p_item->i_type != MODULE_CONFIG_HINT_END;
p_item++ )
{
if( p_module->p_config[i].i_type & MODULE_CONFIG_HINT )
if( p_item->i_type & MODULE_CONFIG_HINT )
/* ignore hints */
continue;
p_longopts[i_index].name = p_module->p_config[i].psz_name;
p_longopts[i_index].name = p_item->psz_name;
p_longopts[i_index].has_arg =
(p_module->p_config[i].i_type == MODULE_CONFIG_ITEM_BOOL)?
(p_item->i_type == MODULE_CONFIG_ITEM_BOOL)?
no_argument : required_argument;
p_longopts[i_index].flag = 0;
p_longopts[i_index].val = 0;

Loading…
Cancel
Save