[recipes] Extract strings from help files
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Extract strings from help files
- Date: Sat, 18 Mar 2017 13:22:45 +0000 (UTC)
commit a136dc11486635a4579f838b575830333a569fb0
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 18 09:21:23 2017 -0400
Extract strings from help files
This is the first step of making translations for
documentation work: Extract the string into the
pot file that damn-lies hands out to translators.
The next step will be to merge the translations
back from .mo files into the documentation.
make-pot | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/make-pot b/make-pot
index 2501ffd..916d029 100755
--- a/make-pot
+++ b/make-pot
@@ -44,6 +44,9 @@ $SED -e 's/^\(.*\)$/ N_("\1"),/' $top_srcdir/data/ingredients.list > $top_sr
$SED -e 's/^\(.*\)$/ N_("no \1"),/' $top_srcdir/data/ingredients.list >
$top_srcdir/src/no-ingredients.inc
$SED -e 's/^\(.*\)$/ N_("\1"),/' $top_srcdir/data/segments.list > $top_srcdir/src/segments.inc
+# extract strings from help files
+itstool --out help.pot help/C/*.page
+
$XGETTEXT --default-domain="$GETTEXT_PACKAGE" \
--directory="$top_srcdir" \
--add-comments \
@@ -69,7 +72,7 @@ $XGETTEXT --default-domain="$GETTEXT_PACKAGE" \
--flag=gtk_message_dialog_format_secondary_text:2:c-format \
--flag=gtk_message_dialog_new:5:c-format \
--flag=gtk_message_dialog_new_with_markup:5:c-format \
- --files-from="$srcdir/POTFILES.in" \
+ --files-from="$srcdir/POTFILES.in" help.pot \
&& test ! -f "$GETTEXT_PACKAGE.po" \
|| ( rm -f "$srcdir/$GETTEXT_PACKAGE.pot" \
&& mv "$GETTEXT_PACKAGE.po" "$srcdir/$GETTEXT_PACKAGE.pot" )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]