[recipes] Let make-pot gnerate gnome-recipes-data.pot as well
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Let make-pot gnerate gnome-recipes-data.pot as well
- Date: Sun, 26 Feb 2017 16:55:45 +0000 (UTC)
commit bdb4a35003389dcab6fb64b053b221e3b42ffdf2
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 26 11:45:04 2017 -0500
Let make-pot gnerate gnome-recipes-data.pot as well
This is just copied from what we do in gtk+.
make-pot | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/make-pot b/make-pot
index 427c2a3..2501ffd 100755
--- a/make-pot
+++ b/make-pot
@@ -9,7 +9,9 @@
#
# ./make-pot
#
-# to generate po/recipes.pot
+# to generate po/gnome-recipes.pot, and like this:
+#
+# ./make-pot data
#
# Various things can be passed in by environment variables, which
# are heavily inspired by the variables used in po/Makefile.in.in:
@@ -28,9 +30,15 @@ SED="${SED:-sed}"
XGETTEXT="${XGETTEXT:-xgettext}"
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=gettext --keyword=ngettext:1,2 --keyword=g_dngettext:2,3 }"
+if test "$1" = "data"; then
+ srcdir="${srcdir:-$top_srcdir/po-data}"
+ GETTEXT_PACKAGE="${GETTEXT_PACKAGE:-gnome-recipes-data}"
+ XGETTEXT_KEYWORDS="${XGETTEXT_KEYWORDS:- --keyword --keyword=N_ }"
+else
+ 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=gettext --keyword=ngettext:1,2 --keyword=g_dngettext:2,3 }"
+fi
$SED -e 's/^\(.*\)$/ N_("\1"),/' $top_srcdir/data/ingredients.list > $top_srcdir/src/ingredients.inc
$SED -e 's/^\(.*\)$/ N_("no \1"),/' $top_srcdir/data/ingredients.list >
$top_srcdir/src/no-ingredients.inc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]