summaryrefslogtreecommitdiff
path: root/recipes/pulseaudio/pulseaudio-0.9.15/gettext.patch
blob: 8727b9819bb96d5694c2bbb75dad650e778e4d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
Index: pulseaudio-0.9.15/configure.ac
===================================================================
--- pulseaudio-0.9.15.orig/configure.ac	2009-07-11 20:20:45.430959569 +0200
+++ pulseaudio-0.9.15/configure.ac	2009-07-11 20:22:47.488992720 +0200
@@ -460,15 +460,15 @@
 # Check for open64 to know if the current system does have open64() and similar functions
 AC_CHECK_FUNCS([open64])
 
-#### [lib]iconv ####
+#### localization support ####
 
 AM_ICONV
-
-IT_PROG_INTLTOOL([0.35.0])
-GETTEXT_PACKAGE=pulseaudio
+IT_PROG_INTLTOOL([0.37.0])
+GETTEXT_PACKAGE=$PACKAGE
 AC_SUBST([GETTEXT_PACKAGE])
 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
-AM_GLIB_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.17])
 
 pulselocaledir='${prefix}/${DATADIRNAME}/locale'
 AC_SUBST(pulselocaledir)
Index: pulseaudio-0.9.15/src/pulse/i18n.h
===================================================================
--- pulseaudio-0.9.15.orig/src/pulse/i18n.h	2009-07-11 20:20:45.437631408 +0200
+++ pulseaudio-0.9.15/src/pulse/i18n.h	2009-07-11 20:20:50.116383023 +0200
@@ -28,15 +28,13 @@
 
 PA_C_DECL_BEGIN
 
-#if !defined(GETTEXT_PACKAGE)
-#error "Something is very wrong here, config.h needs to be included first"
-#endif
+
 
 #ifdef ENABLE_NLS
 
 #include <libintl.h>
 
-#define _(String) dgettext(GETTEXT_PACKAGE, String)
+#define _(String) dgettext(PACKAGE, String)
 #ifdef gettext_noop
 #define N_(String) gettext_noop(String)
 #else
Index: pulseaudio-0.9.15/src/pulse/i18n.c
===================================================================
--- pulseaudio-0.9.15.orig/src/pulse/i18n.c	2009-07-11 20:20:45.444294874 +0200
+++ pulseaudio-0.9.15/src/pulse/i18n.c	2009-07-11 20:20:50.116383023 +0200
@@ -31,8 +31,8 @@
 
     PA_ONCE_BEGIN {
 
-        bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
-        bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+        bindtextdomain(PACKAGE, PULSE_LOCALEDIR);
+        bind_textdomain_codeset(PACKAGE, "UTF-8");
 
     } PA_ONCE_END;
 }
Index: pulseaudio-0.9.15/src/utils/pacat.c
===================================================================
--- pulseaudio-0.9.15.orig/src/utils/pacat.c	2009-07-11 20:20:45.450959436 +0200
+++ pulseaudio-0.9.15/src/utils/pacat.c	2009-07-11 20:20:50.116383023 +0200
@@ -588,7 +588,7 @@
     };
 
     setlocale(LC_ALL, "");
-    bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
+    bindtextdomain(PACKAGE, PULSE_LOCALEDIR);
 
     if (!(bn = strrchr(argv[0], '/')))
         bn = argv[0];
Index: pulseaudio-0.9.15/src/utils/pacmd.c
===================================================================
--- pulseaudio-0.9.15.orig/src/utils/pacmd.c	2009-07-11 20:20:45.457628031 +0200
+++ pulseaudio-0.9.15/src/utils/pacmd.c	2009-07-11 20:20:50.116383023 +0200
@@ -53,7 +53,7 @@
     pa_bool_t ibuf_eof, obuf_eof, ibuf_closed, obuf_closed;
 
     setlocale(LC_ALL, "");
-    bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
+    bindtextdomain(PACKAGE, PULSE_LOCALEDIR);
 
     if (pa_pid_file_check_running(&pid, "pulseaudio") < 0) {
         pa_log("No PulseAudio daemon running, or not running as session daemon.");
Index: pulseaudio-0.9.15/src/utils/pactl.c
===================================================================
--- pulseaudio-0.9.15.orig/src/utils/pactl.c	2009-07-11 20:20:45.464297385 +0200
+++ pulseaudio-0.9.15/src/utils/pactl.c	2009-07-11 20:20:50.116383023 +0200
@@ -808,7 +808,7 @@
     };
 
     setlocale(LC_ALL, "");
-    bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
+    bindtextdomain(PACKAGE, PULSE_LOCALEDIR);
 
     if (!(bn = strrchr(argv[0], '/')))
         bn = argv[0];
Index: pulseaudio-0.9.15/src/utils/paplay.c
===================================================================
--- pulseaudio-0.9.15.orig/src/utils/paplay.c	2009-07-11 20:20:45.470968508 +0200
+++ pulseaudio-0.9.15/src/utils/paplay.c	2009-07-11 20:20:50.116383023 +0200
@@ -236,7 +236,7 @@
     };
 
     setlocale(LC_ALL, "");
-    bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
+    bindtextdomain(PACKAGE, PULSE_LOCALEDIR);
 
     if (!(bn = strrchr(argv[0], '/')))
         bn = argv[0];
Index: pulseaudio-0.9.15/src/utils/pasuspender.c
===================================================================
--- pulseaudio-0.9.15.orig/src/utils/pasuspender.c	2009-07-11 20:20:45.477632683 +0200
+++ pulseaudio-0.9.15/src/utils/pasuspender.c	2009-07-11 20:20:50.116383023 +0200
@@ -233,7 +233,7 @@
     };
 
     setlocale(LC_ALL, "");
-    bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
+    bindtextdomain(PACKAGE, PULSE_LOCALEDIR);
 
     if (!(bn = strrchr(argv[0], '/')))
         bn = argv[0];
Index: pulseaudio-0.9.15/src/utils/pax11publish.c
===================================================================
--- pulseaudio-0.9.15.orig/src/utils/pax11publish.c	2009-07-11 20:20:45.487631479 +0200
+++ pulseaudio-0.9.15/src/utils/pax11publish.c	2009-07-11 20:20:50.116383023 +0200
@@ -50,7 +50,7 @@
     enum { DUMP, EXPORT, IMPORT, REMOVE } mode = DUMP;
 
     setlocale(LC_ALL, "");
-    bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
+    bindtextdomain(PACKAGE, PULSE_LOCALEDIR);
 
     while ((c = getopt(argc, argv, "deiD:S:O:I:c:hr")) != -1) {
         switch (c) {