From 87e6f489a96f324ff5f5c22f90dfd0ca260412ae Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 9 Dec 2011 21:00:11 +0530 Subject: [PATCH] utils: Fixes for building without NLS --- src/utils/pacat.c | 2 ++ src/utils/pacmd.c | 2 ++ src/utils/pactl.c | 2 ++ src/utils/pasuspender.c | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/utils/pacat.c b/src/utils/pacat.c index 3c8e3c7c7..ec360f78f 100644 --- a/src/utils/pacat.c +++ b/src/utils/pacat.c @@ -752,7 +752,9 @@ int main(int argc, char *argv[]) { }; setlocale(LC_ALL, ""); +#ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR); +#endif bn = pa_path_get_filename(argv[0]); diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c index 4166964ea..6d4cc9bfd 100644 --- a/src/utils/pacmd.c +++ b/src/utils/pacmd.c @@ -57,7 +57,9 @@ int main(int argc, char*argv[]) { int stdin_type = 0, stdout_type = 0, fd_type = 0; setlocale(LC_ALL, ""); +#ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR); +#endif if (pa_pid_file_check_running(&pid, "pulseaudio") < 0) { pa_log(_("No PulseAudio daemon running, or not running as session daemon.")); diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 53017d66f..bf1653434 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -1361,7 +1361,9 @@ int main(int argc, char *argv[]) { }; setlocale(LC_ALL, ""); +#ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR); +#endif bn = pa_path_get_filename(argv[0]); diff --git a/src/utils/pasuspender.c b/src/utils/pasuspender.c index 90881b2a0..0a60923e0 100644 --- a/src/utils/pasuspender.c +++ b/src/utils/pasuspender.c @@ -231,7 +231,9 @@ int main(int argc, char *argv[]) { }; setlocale(LC_ALL, ""); +#ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR); +#endif bn = pa_path_get_filename(argv[0]);