[vlc-commits] logger/file: Use defines for logfile text and longtext

Marvin Scholz git at videolan.org
Fri Oct 13 00:59:58 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Sep  8 21:49:34 2017 +0200| [e597583b00f6327cb31bb14d0705526376363ebb] | committer: Jean-Baptiste Kempf

logger/file: Use defines for logfile text and longtext

Make it consistent with the rest of the options text and longtexts

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/logger/file.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/logger/file.c b/modules/logger/file.c
index ff7962497b..89058d95bd 100644
--- a/modules/logger/file.c
+++ b/modules/logger/file.c
@@ -205,6 +205,9 @@ static const char *const verbosity_text[] = { N_("Default"), N_("Info"), N_("Err
 #define FILE_LOG_TEXT N_("Log to file")
 #define FILE_LOG_LONGTEXT N_("Log all VLC messages to a text file.")
 
+#define LOGFILE_NAME_TEXT N_("Log filename")
+#define LOGFILE_NAME_LONGTEXT N_("Specify the log filename.")
+
 #define LOGMODE_TEXT N_("Log format")
 #define LOGMODE_LONGTEXT N_("Specify the logging format.")
 
@@ -222,7 +225,7 @@ vlc_module_begin()
 
     add_bool("file-logging", false, FILE_LOG_TEXT, FILE_LOG_LONGTEXT, false)
     add_savefile("logfile", NULL,
-                 N_("Log filename"), N_("Specify the log filename."), false)
+                 LOGFILE_NAME_TEXT, LOGFILE_NAME_LONGTEXT, false)
     add_string("logmode", "text", LOGMODE_TEXT, LOGMODE_LONGTEXT, false)
         change_string_list(mode_list, mode_list_text)
     add_integer("log-verbose", -1, LOGVERBOSE_TEXT, LOGVERBOSE_LONGTEXT, false)



More information about the vlc-commits mailing list