diff help/help_mp-en.h @ 36709:d1aef1876187

Enable checking help_text by help_check.sh. Define a symbolic constant for the text and assign this constant instead of directly assigning the text itself. This will allow checking the translations of help_text which has been the only text unable to be checked so far.
author ib
date Fri, 07 Feb 2014 19:52:17 +0000
parents eb1a6a0b268f
children 92159376ad91
line wrap: on
line diff
--- a/help/help_mp-en.h	Fri Feb 07 19:49:56 2014 +0000
+++ b/help/help_mp-en.h	Fri Feb 07 19:52:17 2014 +0000
@@ -12,45 +12,55 @@
 
 // ========================= MPlayer help ===========================
 
-static const char help_text[]=
-"Usage:   mplayer [options] [url|path/]filename\n"
-"\n"
-"Basic options: (complete list in the man page)\n"
-" -vo <drv>        select video output driver ('-vo help' for a list)\n"
-" -ao <drv>        select audio output driver ('-ao help' for a list)\n"
 #ifdef CONFIG_VCD
-" vcd://<trackno>  play (S)VCD (Super Video CD) track (raw device, no mount)\n"
+#define MSGTR_HelpVCD " vcd://<trackno>  play (S)VCD (Super Video CD) track (raw device, no mount)\n"
+#else
+#define MSGTR_HelpVCD
 #endif
+
 #ifdef CONFIG_DVDREAD
-" dvd://<titleno>  play DVD title from device instead of plain file\n"
+#define MSGTR_HelpDVD " dvd://<titleno>  play DVD title from device instead of plain file\n"
+#else
+#define MSGTR_HelpDVD
 #endif
-" -alang/-slang    select DVD audio/subtitle language (by 2-char country code)\n"
-" -ss <position>   seek to given (seconds or hh:mm:ss) position\n"
-" -nosound         do not play sound\n"
-" -fs              fullscreen playback (or -vm, -zoom, details in the man page)\n"
-" -x <x> -y <y>    set display resolution (for use with -vm or -zoom)\n"
-" -sub <file>      specify subtitle file to use (also see -subfps, -subdelay)\n"
-" -playlist <file> specify playlist file\n"
-" -vid x -aid y    select video (x) and audio (y) stream to play\n"
-" -fps x -srate y  change video (x fps) and audio (y Hz) rate\n"
-" -pp <quality>    enable postprocessing filter (details in the man page)\n"
-" -framedrop       enable frame dropping (for slow machines)\n"
+
+#define MSGTR_Help \
+"Usage:   mplayer [options] [url|path/]filename\n"\
+"\n"\
+"Basic options: (complete list in the man page)\n"\
+" -vo <drv>        select video output driver ('-vo help' for a list)\n"\
+" -ao <drv>        select audio output driver ('-ao help' for a list)\n"\
+MSGTR_HelpVCD \
+MSGTR_HelpDVD \
+" -alang/-slang    select DVD audio/subtitle language (by 2-char country code)\n"\
+" -ss <position>   seek to given (seconds or hh:mm:ss) position\n"\
+" -nosound         do not play sound\n"\
+" -fs              fullscreen playback (or -vm, -zoom, details in the man page)\n"\
+" -x <x> -y <y>    set display resolution (for use with -vm or -zoom)\n"\
+" -sub <file>      specify subtitle file to use (also see -subfps, -subdelay)\n"\
+" -playlist <file> specify playlist file\n"\
+" -vid x -aid y    select video (x) and audio (y) stream to play\n"\
+" -fps x -srate y  change video (x fps) and audio (y Hz) rate\n"\
+" -pp <quality>    enable postprocessing filter (details in the man page)\n"\
+" -framedrop       enable frame dropping (for slow machines)\n"\
+"\n"\
+"Basic keys: (complete list in the man page, also check input.conf)\n"\
+" <-  or  ->       seek backward/forward 10 seconds\n"\
+" down or up       seek backward/forward  1 minute\n"\
+" pgdown or pgup   seek backward/forward 10 minutes\n"\
+" < or >           step backward/forward in playlist\n"\
+" p or SPACE       pause movie (press any key to continue)\n"\
+" q or ESC         stop playing and quit program\n"\
+" + or -           adjust audio delay by +/- 0.1 second\n"\
+" o                cycle OSD mode:  none / seekbar / seekbar + timer\n"\
+" * or /           increase or decrease PCM volume\n"\
+" x or z           adjust subtitle delay by +/- 0.1 second\n"\
+" r or t           adjust subtitle position up/down, also see -vf expand\n"\
+"\n"\
+" * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *\n"\
 "\n"
-"Basic keys: (complete list in the man page, also check input.conf)\n"
-" <-  or  ->       seek backward/forward 10 seconds\n"
-" down or up       seek backward/forward  1 minute\n"
-" pgdown or pgup   seek backward/forward 10 minutes\n"
-" < or >           step backward/forward in playlist\n"
-" p or SPACE       pause movie (press any key to continue)\n"
-" q or ESC         stop playing and quit program\n"
-" + or -           adjust audio delay by +/- 0.1 second\n"
-" o                cycle OSD mode:  none / seekbar / seekbar + timer\n"
-" * or /           increase or decrease PCM volume\n"
-" x or z           adjust subtitle delay by +/- 0.1 second\n"
-" r or t           adjust subtitle position up/down, also see -vf expand\n"
-"\n"
-" * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *\n"
-"\n";
+
+static const char help_text[] = MSGTR_Help;
 
 // ========================= MPlayer messages ===========================