aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-25 04:18:34 +0100
committerMax Kellermann <max@duempel.org>2008-12-25 04:18:34 +0100
commit8b42b7cf6e77c610313fcaeb973f4d515b1b04f5 (patch)
treec75cee1ce8d0566c47d3c507d2ea19600d5844ce
parent1f8e9dc0236a0810e68e6017a9400a1e7a70491d (diff)
downloadmpd-8b42b7cf6e77c610313fcaeb973f4d515b1b04f5.tar.gz
mpd-8b42b7cf6e77c610313fcaeb973f4d515b1b04f5.tar.xz
mpd-8b42b7cf6e77c610313fcaeb973f4d515b1b04f5.zip
show translator credits
Print translator credits after the --version message.
-rw-r--r--po/POTFILES.in1
-rw-r--r--src/options.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ee07a18b4..687ad0d03 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -18,3 +18,4 @@ src/screen_song.c
src/command.c
src/colors.c
src/conf.c
+src/options.c
diff --git a/src/options.c b/src/options.c
index 8a2ced94a..7c82f7cef 100644
--- a/src/options.c
+++ b/src/options.c
@@ -22,6 +22,7 @@
#include "charset.h"
#include "command.h"
#include "conf.h"
+#include "i18n.h"
#include <stdlib.h>
#include <stdio.h>
@@ -208,6 +209,12 @@ handle_option(int c, const char *arg)
#endif
"\n");
+#ifndef NCMPC_MINI
+ if (strcmp("translator-credits", _("translator-credits")) != 0)
+ /* To translators: these credits are shown
+ when ncmpc is started with "--version" */
+ printf("\n%s\n", _("translator-credits"));
+#endif
exit(EXIT_SUCCESS);
case 'c': /* --colors */
#ifdef ENABLE_COLORS