[vlc-commits] Remove unnecessary spaces from messages

Alexander Lakhin git at videolan.org
Mon Nov 20 18:41:20 CET 2017


vlc | branch: master | Alexander Lakhin <exclusion at gmail.com> | Mon Nov 20 18:54:50 2017 +0200| [0c218a0f4559a1b46c9e705477fb6b332dc7966e] | committer: Rémi Denis-Courmont

Remove unnecessary spaces from messages

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c218a0f4559a1b46c9e705477fb6b332dc7966e
---

 modules/access/dshow/dshow.cpp            |  2 +-
 modules/access/screen/screen.c            |  2 +-
 modules/access/v4l2/v4l2.c                |  2 +-
 modules/access_output/shout.c             | 12 ++++++------
 modules/codec/qsv.c                       |  6 +++---
 modules/codec/x264.c                      |  2 +-
 modules/demux/mpeg/ts.c                   |  2 +-
 modules/demux/rawaud.c                    |  2 +-
 modules/gui/ncurses.c                     |  4 ++--
 modules/gui/qt/components/controller.cpp  |  2 +-
 modules/gui/qt/dialogs/messages.cpp       |  2 +-
 modules/gui/qt/qt.cpp                     |  6 +++---
 modules/misc/gnutls.c                     |  2 +-
 modules/notify/notify.c                   |  2 +-
 modules/spu/marq.c                        |  2 +-
 modules/spu/remoteosd.c                   |  2 +-
 modules/stream_out/bridge.c               |  2 +-
 modules/text_renderer/freetype/freetype.c |  2 +-
 modules/visualization/visual/visual.c     |  2 +-
 src/libvlc-module.c                       |  6 +++---
 20 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index a24f010a1e..0bc457cc2f 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -136,7 +136,7 @@ static const char *const ppsz_standards_list_text[] =
 #define ADEV_LONGTEXT N_( \
     "Name of the audio device that will be used by the " \
     "DirectShow plugin. If you don't specify anything, the default device " \
-    "will be used. ")
+    "will be used.")
 #define SIZE_TEXT N_("Video size")
 #define SIZE_LONGTEXT N_( \
     "Size of the video that will be displayed by the " \
diff --git a/modules/access/screen/screen.c b/modules/access/screen/screen.c
index 28798da0ae..8f87d90171 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -79,7 +79,7 @@
 #ifdef SCREEN_DISPLAY_ID
 #define DISPLAY_ID_TEXT N_( "Display ID" )
 #define DISPLAY_ID_LONGTEXT N_( \
-    "Display ID. If not specified, main display ID is used. " )
+    "Display ID. If not specified, main display ID is used." )
 #define INDEX_TEXT N_( "Screen index" )
 #define INDEX_LONGTEXT N_( \
     "Index of screen (1, 2, 3, ...). Alternative to Display ID." )
diff --git a/modules/access/v4l2/v4l2.c b/modules/access/v4l2/v4l2.c
index 586a787af1..dd8be70fa1 100644
--- a/modules/access/v4l2/v4l2.c
+++ b/modules/access/v4l2/v4l2.c
@@ -46,7 +46,7 @@
 #define VBI_DEVICE_TEXT N_("VBI capture device")
 #define VBI_DEVICE_LONGTEXT N_( \
     "The device node where VBI data can be read "   \
-    " (for closed captions) " )
+    " (for closed captions)." )
 #define STANDARD_TEXT N_( "Standard" )
 #define STANDARD_LONGTEXT N_( \
     "Video standard (Default, SECAM, PAL, or NTSC)." )
diff --git a/modules/access_output/shout.c b/modules/access_output/shout.c
index 2beb131f69..59a5fe3bd1 100644
--- a/modules/access_output/shout.c
+++ b/modules/access_output/shout.c
@@ -80,26 +80,26 @@ static void Close( vlc_object_t * );
    are Alternative, Classical, Comedy, Country etc. */
 
 #define GENRE_TEXT N_("Genre description")
-#define GENRE_LONGTEXT N_("Genre of the content. " )
+#define GENRE_LONGTEXT N_("Genre of the content." )
 
 #define URL_TEXT N_("URL description")
-#define URL_LONGTEXT N_("URL with information about the stream or your channel. " )
+#define URL_LONGTEXT N_("URL with information about the stream or your channel." )
 
 /* The shout module only "transmits" data. It does not have direct access to
    "codec level" information. Stream information such as bitrate, samplerate,
    channel numbers and quality (in case of Ogg streaming) need to be set manually */
 
 #define BITRATE_TEXT N_("Bitrate")
-#define BITRATE_LONGTEXT N_("Bitrate information of the transcoded stream. " )
+#define BITRATE_LONGTEXT N_("Bitrate information of the transcoded stream." )
 
 #define SAMPLERATE_TEXT N_("Samplerate")
-#define SAMPLERATE_LONGTEXT N_("Samplerate information of the transcoded stream. " )
+#define SAMPLERATE_LONGTEXT N_("Samplerate information of the transcoded stream." )
 
 #define CHANNELS_TEXT N_("Number of channels")
-#define CHANNELS_LONGTEXT N_("Number of channels information of the transcoded stream. " )
+#define CHANNELS_LONGTEXT N_("Number of channels information of the transcoded stream." )
 
 #define QUALITY_TEXT N_("Ogg Vorbis Quality")
-#define QUALITY_LONGTEXT N_("Ogg Vorbis Quality information of the transcoded stream. " )
+#define QUALITY_LONGTEXT N_("Ogg Vorbis Quality information of the transcoded stream." )
 
 #define PUBLIC_TEXT N_("Stream public")
 #define PUBLIC_LONGTEXT N_("Make the server publicly available on the 'Yellow Pages' " \
diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index 59bb9ee1f9..c9fec8f19a 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -80,7 +80,7 @@ static void     Close(vlc_object_t *);
 #define GOP_REF_DIST_LONGTEXT N_( \
     "Distance between I- or P- key frames; if it is zero, the GOP " \
     "structure is unspecified. Note: If GopRefDist = 1, there are no B- " \
-    "frames used. ")
+    "frames used.")
 
 #define TARGET_USAGE_TEXT N_("Target Usage")
 #define TARGET_USAGE_LONGTEXT N_("The target usage allow to choose between " \
@@ -95,7 +95,7 @@ static void     Close(vlc_object_t *);
     "For MPEG2, IdrInterval defines sequence header interval in terms " \
     "of I-frames. If IdrInterval=N, SDK inserts the sequence header " \
     "before every Nth I-frame. If IdrInterval=0 (default), SDK inserts " \
-    "the sequence header once at the beginning of the stream. ")
+    "the sequence header once at the beginning of the stream.")
 
 #define RATE_CONTROL_TEXT N_("Rate Control Method")
 #define RATE_CONTROL_LONGTEXT N_( \
@@ -134,7 +134,7 @@ static void     Close(vlc_object_t *);
 #define CONVERGENCE_TEXT N_("Convergence time of 'avbr' RateControl")
 #define CONVERGENCE_LONGTEXT N_("Number of 100 frames before the " \
     "'avbr' rate control method reaches the requested bitrate with " \
-    "the requested accuracy. See the accuracy parameter. ")
+    "the requested accuracy. See the accuracy parameter.")
 
 #define NUM_SLICE_TEXT N_("Number of slices per frame")
 #define NUM_SLICE_LONGTEXT N_("Number of slices in each video frame; "\
diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 27d9bc0319..a1f0f984a1 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -292,7 +292,7 @@ static void x264_log( void *, int i_level, const char *psz, va_list );
 #define WEIGHTB_LONGTEXT N_( "Weighted prediction for B-frames.")
 
 #define WEIGHTP_TEXT N_("Weighted prediction for P-frames")
-#define WEIGHTP_LONGTEXT N_(" Weighted prediction for P-frames: "\
+#define WEIGHTP_LONGTEXT N_("Weighted prediction for P-frames: "\
     " - 0: Disabled\n"\
     " - 1: Blind offset\n"\
     " - 2: Smart analysis\n" )
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 309f4f5cad..0b24ffd2ea 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -99,7 +99,7 @@ static void Close ( vlc_object_t * );
 #define CPKT_TEXT N_("Packet size in bytes to decrypt")
 #define CPKT_LONGTEXT N_("Specify the size of the TS packet to decrypt. " \
     "The decryption routines subtract the TS-header from the value before " \
-    "decrypting. " )
+    "decrypting." )
 
 #define SPLIT_ES_TEXT N_("Separate sub-streams")
 #define SPLIT_ES_LONGTEXT N_( \
diff --git a/modules/demux/rawaud.c b/modules/demux/rawaud.c
index 241900a1c3..375bdb1244 100644
--- a/modules/demux/rawaud.c
+++ b/modules/demux/rawaud.c
@@ -51,7 +51,7 @@ static void Close( vlc_object_t * );
     "FOURCC code of the raw input format. This is a four character string." )
 
 #define LANG_TEXT N_("Forces the audio language")
-#define LANG_LONGTEXT N_("Forces the audio language for the output mux. Three letter ISO639 code. Default is 'eng'. ")
+#define LANG_LONGTEXT N_("Forces the audio language for the output mux. Three letter ISO639 code. Default is 'eng'.")
 
 #ifdef WORDS_BIGENDIAN
 # define FOURCC_DEFAULT "s16b"
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 1c593f8871..6ed98558ec 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1052,8 +1052,8 @@ static int DrawStatus(intf_thread_t *intf, input_thread_t *p_input)
 
     y++; /* leave a blank line */
 
-    repeat = var_GetBool(p_playlist, "repeat") ? _("[Repeat] ") : "";
-    random = var_GetBool(p_playlist, "random") ? _("[Random] ") : "";
+    repeat = var_GetBool(p_playlist, "repeat") ? _("[Repeat]") : "";
+    random = var_GetBool(p_playlist, "random") ? _("[Random]") : "";
     loop   = var_GetBool(p_playlist, "loop")   ? _("[Loop]")    : "";
 
     if (p_input) {
diff --git a/modules/gui/qt/components/controller.cpp b/modules/gui/qt/components/controller.cpp
index 98c2754e2f..1f9de2386d 100644
--- a/modules/gui/qt/components/controller.cpp
+++ b/modules/gui/qt/components/controller.cpp
@@ -616,7 +616,7 @@ QFrame *AbstractController::telexFrame()
     QToolButton *telexTransparent = new QToolButton;
     setupButton( telexTransparent );
     BUTTON_SET_BAR2( telexTransparent, toolbar/tvtelx,
-                     qtr( "Toggle Transparency " ) );
+                     qtr( "Toggle Transparency" ) );
     telexTransparent->setEnabled( false );
     telexTransparent->setCheckable( true );
     telexLayout->addWidget( telexTransparent );
diff --git a/modules/gui/qt/dialogs/messages.cpp b/modules/gui/qt/dialogs/messages.cpp
index f550bfa23f..cb3836a939 100644
--- a/modules/gui/qt/dialogs/messages.cpp
+++ b/modules/gui/qt/dialogs/messages.cpp
@@ -258,7 +258,7 @@ bool MessagesDialog::save()
     QString saveLogFileName = QFileDialog::getSaveFileName(
             this, qtr( "Save log file as..." ),
             QVLCUserDir( VLC_DOCUMENTS_DIR ),
-            qtr( "Texts / Logs (*.log *.txt);; All (*.*) ") );
+            qtr( "Texts / Logs (*.log *.txt);; All (*.*)") );
 
     if( !saveLogFileName.isNull() )
     {
diff --git a/modules/gui/qt/qt.cpp b/modules/gui/qt/qt.cpp
index 834c137fc3..6dfa04e3ff 100644
--- a/modules/gui/qt/qt.cpp
+++ b/modules/gui/qt/qt.cpp
@@ -136,13 +136,13 @@ static void ShowDialog   ( intf_thread_t *, int, int, intf_dialog_args_t * );
 #define RECENTPLAY_FILTER_LONGTEXT N_( "Regular expression used to filter " \
         "the recent items played in the player" )
 
-#define SLIDERCOL_TEXT N_( "Define the colors of the volume slider " )
+#define SLIDERCOL_TEXT N_( "Define the colors of the volume slider" )
 #define SLIDERCOL_LONGTEXT N_( "Define the colors of the volume slider\n" \
                        "By specifying the 12 numbers separated by a ';'\n" \
             "Default is '255;255;255;20;226;20;255;176;15;235;30;20'\n" \
-            "An alternative can be '30;30;50;40;40;100;50;50;160;150;150;255' ")
+            "An alternative can be '30;30;50;40;40;100;50;50;160;150;150;255'")
 
-#define QT_MODE_TEXT N_( "Selection of the starting mode and look " )
+#define QT_MODE_TEXT N_( "Selection of the starting mode and look" )
 #define QT_MODE_LONGTEXT N_( "Start VLC with:\n" \
                              " - normal mode\n"  \
                              " - a zone always present to show information " \
diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 2e5b6e9f6b..1cca9c14a7 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -482,7 +482,7 @@ static int gnutls_ClientHandshake(vlc_tls_creds_t *creds, vlc_tls_t *tls,
             msg_Dbg(creds, "certificate keys mismatch for %s", host);
             msg = N_("However, the security certificate presented by the "
                 "server changed since the previous visit and was not "
-                "authenticated by any trusted Certificate Authority. ");
+                "authenticated by any trusted Certificate Authority.");
             break;
         default:
             msg_Err(creds, "certificate key match error for %s: %s", host,
diff --git a/modules/notify/notify.c b/modules/notify/notify.c
index bb8113852b..bd6bba6c32 100644
--- a/modules/notify/notify.c
+++ b/modules/notify/notify.c
@@ -53,7 +53,7 @@ static void Close   ( vlc_object_t * );
 #define APPLICATION_NAME "VLC media player"
 
 #define TIMEOUT_TEXT N_("Timeout (ms)")
-#define TIMEOUT_LONGTEXT N_("How long the notification will be displayed ")
+#define TIMEOUT_LONGTEXT N_("How long the notification will be displayed.")
 
 vlc_module_begin ()
     set_category( CAT_INTERFACE )
diff --git a/modules/spu/marq.c b/modules/spu/marq.c
index 1834e57f55..516838ef63 100644
--- a/modules/spu/marq.c
+++ b/modules/spu/marq.c
@@ -107,7 +107,7 @@ struct filter_sys_t
                             "or time format string sequences.")
 #define OPACITY_TEXT N_("Opacity")
 #define OPACITY_LONGTEXT N_("Opacity (inverse of transparency) of " \
-    "overlayed text. 0 = transparent, 255 = totally opaque. " )
+    "overlayed text. 0 = transparent, 255 = totally opaque." )
 #define SIZE_TEXT N_("Font size, pixels")
 #define SIZE_LONGTEXT N_("Font size, in pixels. Default is 0 (use default " \
     "font size)." )
diff --git a/modules/spu/remoteosd.c b/modules/spu/remoteosd.c
index c112de94ec..d01812c4b1 100644
--- a/modules/spu/remoteosd.c
+++ b/modules/spu/remoteosd.c
@@ -82,7 +82,7 @@
 
 #define RMTOSD_UPDATE_TEXT N_("VNC poll interval" )
 #define RMTOSD_UPDATE_LONGTEXT N_( \
-    "In this interval an update from VNC is requested, default every 300 ms. ")
+    "In this interval an update from VNC is requested, default every 300 ms.")
 
 #define RMTOSD_POLL_TEXT N_("VNC polling")
 #define RMTOSD_POLL_LONGTEXT N_( \
diff --git a/modules/stream_out/bridge.c b/modules/stream_out/bridge.c
index 31d745824a..a26c6685e0 100644
--- a/modules/stream_out/bridge.c
+++ b/modules/stream_out/bridge.c
@@ -67,7 +67,7 @@
     "If set to true, the bridge will discard all input elementary streams " \
     "except if it doesn't receive data from another bridge-in. This can " \
     "be used to configure a place holder stream when the real source " \
-    "breaks. Source and placeholder streams should have the same format. " )
+    "breaks. Source and placeholder streams should have the same format." )
 
 #define PLACEHOLDER_DELAY_TEXT N_( "Placeholder delay" )
 #define PLACEHOLDER_DELAY_LONGTEXT N_( \
diff --git a/modules/text_renderer/freetype/freetype.c b/modules/text_renderer/freetype/freetype.c
index f5339a569c..b8245e2d55 100644
--- a/modules/text_renderer/freetype/freetype.c
+++ b/modules/text_renderer/freetype/freetype.c
@@ -91,7 +91,7 @@ static void Destroy( vlc_object_t * );
 #define OPACITY_TEXT N_("Text opacity")
 #define OPACITY_LONGTEXT N_("The opacity (inverse of transparency) of the " \
     "text that will be rendered on the video. 0 = transparent, " \
-    "255 = totally opaque. " )
+    "255 = totally opaque." )
 #define COLOR_TEXT N_("Text default color")
 #define COLOR_LONGTEXT N_("The color of the text that will be rendered on "\
     "the video. This must be an hexadecimal (like HTML colors). The first two "\
diff --git a/modules/visualization/visual/visual.c b/modules/visualization/visual/visual.c
index e3239789c1..e830efba67 100644
--- a/modules/visualization/visual/visual.c
+++ b/modules/visualization/visual/visual.c
@@ -65,7 +65,7 @@
 #define KAISER_PARAMETER_TEXT N_( "Kaiser window parameter" )
 #define KAISER_PARAMETER_LONGTEXT N_( \
       "The parameter alpha for the Kaiser window. Increasing alpha " \
-      "increases the main-lobe width and decreases the side-lobe amplitude. " )
+      "increases the main-lobe width and decreases the side-lobe amplitude." )
 
 #define NBBANDS_TEXT N_( "Show 80 bands instead of 20" )
 #define SPNBBANDS_LONGTEXT N_( \
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 4b24445da8..a482bdca80 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -316,7 +316,7 @@ static const char *const ppsz_align_descriptions[] =
 #define VIDEO_ON_TOP_LONGTEXT N_( \
     "Always place the video window on top of other windows." )
 
-#define WALLPAPER_TEXT N_("Enable wallpaper mode ")
+#define WALLPAPER_TEXT N_("Enable wallpaper mode")
 #define WALLPAPER_LONGTEXT N_( \
     "The wallpaper mode allows you to display the video as the desktop " \
     "background." )
@@ -1002,11 +1002,11 @@ static const char *const ppsz_prefres[] = {
 
 #define STREAM_FILTER_TEXT N_("Stream filter module")
 #define STREAM_FILTER_LONGTEXT N_( \
-    "Stream filters are used to modify the stream that is being read. " )
+    "Stream filters are used to modify the stream that is being read." )
 
 #define DEMUX_FILTER_TEXT N_("Demux filter module")
 #define DEMUX_FILTER_LONGTEXT N_( \
-    "Demux filters are used to modify/control the stream that is being read. " )
+    "Demux filters are used to modify/control the stream that is being read." )
 
 #define DEMUX_TEXT N_("Demux module")
 #define DEMUX_LONGTEXT N_( \



More information about the vlc-commits mailing list