[MPlayer-DOCS] r36805 - in trunk/help: help_mp-bg.h help_mp-cs.h help_mp-da.h help_mp-de.h help_mp-el.h help_mp-en.h help_mp-es.h help_mp-fr.h help_mp-hu.h help_mp-it.h help_mp-ja.h help_mp-ko.h help_mp-mk.h help...

ib subversion at mplayerhq.hu
Fri Feb 7 20:52:17 CET 2014


Author: ib
Date: Fri Feb  7 20:52:17 2014
New Revision: 36805

Log:
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.

Modified:
   trunk/help/help_mp-en.h

Changes in other areas also in this revision:
Modified:
   trunk/help/help_mp-bg.h
   trunk/help/help_mp-cs.h
   trunk/help/help_mp-da.h
   trunk/help/help_mp-de.h
   trunk/help/help_mp-el.h
   trunk/help/help_mp-es.h
   trunk/help/help_mp-fr.h
   trunk/help/help_mp-hu.h
   trunk/help/help_mp-it.h
   trunk/help/help_mp-ja.h
   trunk/help/help_mp-ko.h
   trunk/help/help_mp-mk.h
   trunk/help/help_mp-nb.h
   trunk/help/help_mp-nl.h
   trunk/help/help_mp-pl.h
   trunk/help/help_mp-pt_BR.h
   trunk/help/help_mp-ro.h
   trunk/help/help_mp-ru.h
   trunk/help/help_mp-sk.h
   trunk/help/help_mp-sv.h
   trunk/help/help_mp-tr.h
   trunk/help/help_mp-uk.h
   trunk/help/help_mp-zh_CN.h
   trunk/help/help_mp-zh_TW.h

Modified: trunk/help/help_mp-en.h
==============================================================================
--- trunk/help/help_mp-en.h	Fri Feb  7 20:49:56 2014	(r36804)
+++ trunk/help/help_mp-en.h	Fri Feb  7 20:52:17 2014	(r36805)
@@ -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"
-"\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"
+
+#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"
-" * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *\n"
-"\n";
+
+static const char help_text[] = MSGTR_Help;
 
 // ========================= MPlayer messages ===========================
 


More information about the MPlayer-DOCS mailing list