From: Darrick J. Wong <djwong@xxxxxxxxxx> Inject the package name and version ("xfsprogs") and the bug reporting URL into the generated gettext .pot file. This isn't strictly necessary, it's more just polish. Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx> --- configure.ac | 1 + include/builddefs.in | 1 + include/buildrules | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f039bc9128fa4b..71596711685a8a 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,7 @@ AC_CONFIG_AUX_DIR([.]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([include/libxfs.h]) AC_PREFIX_DEFAULT(/usr) +AC_SUBST(PACKAGE_BUGREPORT) # Default CFLAGS if nobody specifies anything else if test "${CFLAGS+set}" != "set"; then diff --git a/include/builddefs.in b/include/builddefs.in index fe2a7824a8653f..04b4e0880a84b8 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -42,6 +42,7 @@ PKG_GROUP = @pkg_group@ PKG_RELEASE = @pkg_release@ PKG_VERSION = @pkg_version@ PKG_DISTRIBUTION= @pkg_distribution@ +PKG_BUGREPORT = @PACKAGE_BUGREPORT@ prefix = @prefix@ exec_prefix = @exec_prefix@ diff --git a/include/buildrules b/include/buildrules index 6b76abced9ed0c..ae047ac41fe27c 100644 --- a/include/buildrules +++ b/include/buildrules @@ -85,9 +85,17 @@ endif endif ifdef POTHEAD +XGETTEXT_FLAGS=\ + --language=C \ + --keyword=_ \ + --keyword=N_ \ + --package-name=$(PKG_NAME) \ + --package-version=$(PKG_VERSION) \ + --msgid-bugs-address=$(PKG_BUGREPORT) + $(POTHEAD): $(XGETTEXTFILES) @echo " [GETTXT] $@" - $(Q)$(XGETTEXT) --language=C --keyword=_ --keyword=N_ -o $@ $(XGETTEXTFILES) + $(Q)$(XGETTEXT) $(XGETTEXT_FLAGS) -o $@ $(XGETTEXTFILES) # Update translations update-po: $(POTHEAD) $(wildcard $(TOPDIR)/po/*.po)