summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-13 23:41:38 +0100
committerwm4 <wm4@nowhere>2012-11-14 11:26:43 +0100
commit97efafee8aac2bcc1bb404fb774c4f8fdbf1b3c0 (patch)
tree7e9c727e8cd858a0cb4b60b8c217190bab132e45 /core
parenta2098326dac3587fb6f0869e515c07d1f9c762f8 (diff)
downloadmpv-97efafee8aac2bcc1bb404fb774c4f8fdbf1b3c0.tar.bz2
mpv-97efafee8aac2bcc1bb404fb774c4f8fdbf1b3c0.tar.xz
build: remove doc/locale language auto-detection, simplify
This removes the rather complicated configure and Makefile parts related to auto-detecting available languages for manpages and locales. We don't have non-English manpages or any locales, so this is pointless. It didn't even work: configure --language=all created an invalid config.mak that would cause "make install" to fail. Remove installation of locales. There are no translations at all which could be installed. Should there ever be someone who is interested in adding translations, this can be added back in a simpler way. Rename the --enable-translation configure option to --enable-gettext. This is what this option really does: enable gettext() use. This may be interesting for people who want to experiment with localizing mpv, but is entirely useless for normal use. Remove detection of the binary codecs directory in configure.
Diffstat (limited to 'core')
-rw-r--r--core/mp_msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/mp_msg.c b/core/mp_msg.c
index d0cce8e064..2e6f148438 100644
--- a/core/mp_msg.c
+++ b/core/mp_msg.c
@@ -26,7 +26,7 @@
#include "osdep/getch2.h"
#include "osdep/io.h"
-#ifdef CONFIG_TRANSLATION
+#ifdef CONFIG_GETTEXT
#include <locale.h>
#include <libintl.h>
#endif
@@ -86,7 +86,7 @@ void mp_msg_init(void){
for(i=0;i<MSGT_MAX;i++) mp_msg_levels[i] = -2;
mp_msg_cancolor = isatty(fileno(stdout));
mp_msg_levels[MSGT_IDENTIFY] = -1; // no -identify output by default
-#ifdef CONFIG_TRANSLATION
+#ifdef CONFIG_GETTEXT
textdomain("mpv");
char *localedir = getenv("MPV_LOCALEDIR");
if (localedir == NULL && strlen(MPLAYER_LOCALEDIR))
@@ -249,7 +249,7 @@ void mp_msg(int mod, int lev, const char *format, ...)
char *mp_gtext(const char *string)
{
-#ifdef CONFIG_TRANSLATION
+#ifdef CONFIG_GETTEXT
/* gettext expects the global locale to be set with
* setlocale(LC_ALL, ""). However doing that would suck for a
* couple of reasons (locale stuff is badly designed and sucks in