mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
6c63c36677
* build-aux/xgettext.scm: New script. * po/guix/Makevars (XGETTEXT): Set it. (XGETTEXT_OPTIONS): Add --xgettext option to `real' xgettext. * po/packages/Makevars (XGETTEXT): Set it. (XGETTEXT_OPTIONS): Add --xgettext option to `real' xgettext. Change-Id: I71b6b843970090f765f46ac346b92a346560e3f0
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# Makefile variables for PO directory in any package using GNU gettext.
|
|
|
|
# This domain contains only translations of package synopses and descriptions.
|
|
DOMAIN = guix-packages
|
|
|
|
subdir = po/packages
|
|
top_builddir = ../..
|
|
|
|
# We use our xgettext.scm wrapper to produce .PO files reproducibly using a
|
|
# timestamp from Git. The `real' xgettext is passed as an option to
|
|
# xgettext.scm
|
|
XGETTEXT:=$(top_srcdir)/build-aux/xgettext.scm
|
|
|
|
# These options get passed to xgettext. We want to catch exclusively package
|
|
# synopses and descriptions.
|
|
XGETTEXT_OPTIONS = \
|
|
--language=Scheme --from-code=UTF-8 \
|
|
--keyword=synopsis --keyword=description \
|
|
--keyword=output-synopsis:2 \
|
|
--xgettext=$(XGETTEXT_)
|
|
|
|
COPYRIGHT_HOLDER = the authors of Guix (msgids)
|
|
|
|
MSGID_BUGS_ADDRESS = bug-guix@gnu.org
|
|
|
|
EXTRA_LOCALE_CATEGORIES =
|
|
|
|
# Disable PO update upon "make dist", which sometimes fails when doing
|
|
# "make distcheck -j4".
|
|
# See <https://lists.gnu.org/archive/html/bug-gettext/2014-08/msg00005.html>.
|
|
DIST_DEPENDS_ON_UPDATE_PO = no
|
|
|
|
# Ignore the timestamp of the .pot file, as .po files are updated by
|
|
# `make download-po` only. This ensures po files are not modified on the
|
|
# first `make` invocation.
|
|
PO_DEPENDS_ON_POT = no
|