|
@@ -23,6 +23,12 @@
|
|
|
|
|
|
|
|
#include <dpkg/macros.h>
|
|
#include <dpkg/macros.h>
|
|
|
|
|
|
|
|
|
|
+#include <gettext.h>
|
|
|
|
|
+
|
|
|
|
|
+/* We need to include this because pgettext() uses LC_MESSAGES, but libintl.h
|
|
|
|
|
+ * which gets pulled by gettext.h only includes it if building optimized. */
|
|
|
|
|
+#include <locale.h>
|
|
|
|
|
+
|
|
|
DPKG_BEGIN_DECLS
|
|
DPKG_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -31,12 +37,6 @@ DPKG_BEGIN_DECLS
|
|
|
* @{
|
|
* @{
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-#include <gettext.h>
|
|
|
|
|
-
|
|
|
|
|
-/* We need to include this because pgettext() uses LC_MESSAGES, but libintl.h
|
|
|
|
|
- * which gets pulled by gettext.h only includes it if building optimized. */
|
|
|
|
|
-#include <locale.h>
|
|
|
|
|
-
|
|
|
|
|
#define _(str) gettext(str)
|
|
#define _(str) gettext(str)
|
|
|
#define P_(str, str_plural, n) ngettext(str, str_plural, n)
|
|
#define P_(str, str_plural, n) ngettext(str, str_plural, n)
|
|
|
#define N_(str) gettext_noop(str)
|
|
#define N_(str) gettext_noop(str)
|