[recipes] Also extract ngettext and gettext calls
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Also extract ngettext and gettext calls
- Date: Mon, 20 Feb 2017 01:57:25 +0000 (UTC)
commit 46c6e27c142b661e66e5b44805eb5ddbd25d9f3a
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 19 19:51:57 2017 -0500
Also extract ngettext and gettext calls
We have some of those, we don't want to miss translations
for these strings.
make-pot | 2 +-
po/Makevars | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/make-pot b/make-pot
index e58d56f..f0c0229 100755
--- a/make-pot
+++ b/make-pot
@@ -30,7 +30,7 @@ top_srcdir="${top_srcdir:-.}"
srcdir="${srcdir:-$top_srcdir/po}"
GETTEXT_PACKAGE="${GETTEXT_PACKAGE:-gnome-recipes}"
-XGETTEXT_KEYWORDS="${XGETTEXT_KEYWORDS:- --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2
--keyword=g_dngettext:2,3 }"
+XGETTEXT_KEYWORDS="${XGETTEXT_KEYWORDS:- --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2
--keyword=gettext --keyword=ngettext:1,2 --keyword=g_dngettext:2,3 }"
$SED -e 's/^\(.*\)$/ N_("\1"),/' $top_srcdir/data/ingredients.list > $top_srcdir/src/ingredients.c
$SED -e 's/^\(.*\)$/ N_("no \1"),/' $top_srcdir/data/ingredients.list > $top_srcdir/src/no-ingredients.c
diff --git a/po/Makevars b/po/Makevars
index 72a6204..b6102f7 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -11,6 +11,8 @@ top_builddir = ..
XGETTEXT_OPTIONS = --from-code=UTF-8 \
--keyword=_ --keyword=N_ \
--keyword=C_:1c,2 --keyword=NC_:1c,2 \
+ --keyword=gettext \
+ --keyword=ngettext:1,2 \
--keyword=g_dngettext:2,3 \
--flag=g_dngettext:2:pass-c-format \
--flag=g_strdup_printf:1:c-format \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]