File: 14_version_gettextcat.diff

package info (click to toggle)
gnutls28 3.7.9-2%2Bdeb12u5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 78,064 kB
  • sloc: ansic: 378,337; asm: 113,340; sh: 17,300; makefile: 6,698; yacc: 1,851; lisp: 1,593; python: 1,370; cpp: 1,362; perl: 995; sed: 16
file content (62 lines) | stat: -rw-r--r-- 1,740 bytes parent folder | download | duplicates (3)
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
Description: Version filename of locale data (gnutls30.mo instead of
 gnutls.mo) This is necessary to make e.g. libgnutls26 and libgnutls28
 co-installable.
Author: Andreas Metzler <ametzler@debian.org>
Last-Update: 2020-09-06

--- a/po/Makevars
+++ b/po/Makevars
@@ -5,7 +5,7 @@
 # unlimited permission to use, copy, distribute, and modify it.
 
 # Usually the message domain is the same as the package name.
-DOMAIN = $(PACKAGE)
+DOMAIN = $(PACKAGE)30
 
 # These two variables depend on the location of this directory.
 subdir = po
--- a/lib/global.c
+++ b/lib/global.c
@@ -262,7 +262,7 @@ static int _gnutls_global_init(unsigned
 	}
 
 #ifdef HAVE_DCGETTEXT
-	bindtextdomain(PACKAGE, LOCALEDIR);
+	bindtextdomain(GNUTLSDOMAIN, LOCALEDIR);
 #endif
 
 	res = gnutls_crypto_init();
--- a/configure.ac
+++ b/configure.ac
@@ -320,6 +320,9 @@ dnl Try the hooks.m4
 LIBGNUTLS_HOOKS
 LIBGNUTLS_EXTRA_HOOKS
 
+AC_DEFINE_UNQUOTED([GNUTLSDOMAIN], ["${PACKAGE}${DLL_VERSION}"],
+   [base filename for gettext message catalogue])
+
 AC_ARG_ENABLE(tests,
   AS_HELP_STRING([--disable-tests], [don't compile or run any tests]),
     enable_tests=$enableval, enable_tests=$enable_tools)
--- a/lib/str.h
+++ b/lib/str.h
@@ -33,7 +33,7 @@
 
 #ifdef HAVE_DCGETTEXT
 # include "gettext.h"
-# define _(String) dgettext (PACKAGE, String)
+# define _(String) dgettext (GNUTLSDOMAIN, String)
 # define N_(String) gettext_noop (String)
 #else
 # define _(String) String
--- a/libdane/errors.c
+++ b/libdane/errors.c
@@ -25,7 +25,7 @@
 
 /* I18n of error codes. */
 #include "gettext.h"
-#define _(String) dgettext (PACKAGE, String)
+#define _(String) dgettext (GNUTLSDOMAIN, String)
 #define N_(String) gettext_noop (String)
 
 #define ERROR_ENTRY(desc, name) \