utils: Fixes for building without NLS
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 9 Dec 2011 15:30:11 +0000 (21:00 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 13 Dec 2011 03:40:08 +0000 (09:10 +0530)
src/utils/pacat.c
src/utils/pacmd.c
src/utils/pactl.c
src/utils/pasuspender.c

index 3c8e3c7..ec360f7 100644 (file)
@@ -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]);
 
index 4166964..6d4cc9b 100644 (file)
@@ -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."));
index 53017d6..bf16534 100644 (file)
@@ -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]);
 
index 90881b2..0a60923 100644 (file)
@@ -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]);