summaryrefslogtreecommitdiff
path: root/m4macros
diff options
context:
space:
mode:
authorBenedikt Meurer <benny@xfce.org>2005-03-08 15:16:23 +0000
committerBenedikt Meurer <benny@xfce.org>2005-03-08 15:16:23 +0000
commit1300236b4b51e5d20c291911c2282ed785d67553 (patch)
tree5baea644bd3bddba0b06f681c0f330a0a8f7bac8 /m4macros
parent1a12985f60404e9eb08ce8ecbaa07a130dcfe4e8 (diff)
downloadxfce4-dev-tools-1300236b4b51e5d20c291911c2282ed785d67553.tar.gz
2005-03-08 Benedikt Meurer <benny@xfce.org>
* scripts/xdt-autogen.in, m4macros/xdt-i18n.m4: Add better handling of XGETTEXT_ARGS to automatically support the O_() translation keyword. (Old svn revision: 2277)
Diffstat (limited to 'm4macros')
-rw-r--r--m4macros/xdt-i18n.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/m4macros/xdt-i18n.m4 b/m4macros/xdt-i18n.m4
index 921c5e4..8a2ae96 100644
--- a/m4macros/xdt-i18n.m4
+++ b/m4macros/xdt-i18n.m4
@@ -49,6 +49,16 @@ AC_DEFUN([XDT_I18N],
])
AC_MSG_RESULT([$localedir])
AC_SUBST([localedir])
+
+ dnl Determine additional xgettext flags
+ AC_MSG_CHECKING([for additional xgettext flags])
+ if test x"$XGETTEXT_ARGS" = x""; then
+ XGETTEXT_ARGS="--keyword=O_";
+ else
+ XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=O_";
+ fi
+ AC_SUBST([XGETTEXT_ARGS])
+ AC_MSG_RESULT([$XGETTEXT_ARGS])
])