1a32e9e42Smrg# Makefile variables for PO directory in any package using GNU gettext.
2a32e9e42Smrg
3a32e9e42Smrg# Usually the message domain is the same as the package name.
4a32e9e42SmrgDOMAIN = $(PACKAGE)-conf
5a32e9e42Smrg
6a32e9e42Smrg# These two variables depend on the location of this directory.
7a32e9e42Smrgsubdir = po-conf
8a32e9e42Smrgtop_builddir = ..
9a32e9e42Smrg
10a32e9e42Smrg# These options get passed to xgettext.
11a32e9e42SmrgXGETTEXT_OPTIONS = --keyword=_ --keyword=N_
12a32e9e42Smrg
13a32e9e42Smrg# This is the copyright holder that gets inserted into the header of the
14a32e9e42Smrg# $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
15a32e9e42Smrg# package.  (Note that the msgstr strings, extracted from the package's
16a32e9e42Smrg# sources, belong to the copyright holder of the package.)  Translators are
17a32e9e42Smrg# expected to transfer the copyright for their translations to this person
18a32e9e42Smrg# or entity, or to disclaim their copyright.  The empty string stands for
19a32e9e42Smrg# the public domain; in this case the translators are expected to disclaim
20a32e9e42Smrg# their copyright.
21a32e9e42SmrgCOPYRIGHT_HOLDER = Fontconfig Author(s)
22a32e9e42Smrg
23a32e9e42Smrg# This tells whether or not to prepend "GNU " prefix to the package
24a32e9e42Smrg# name that gets inserted into the header of the $(DOMAIN).pot file.
25a32e9e42Smrg# Possible values are "yes", "no", or empty.  If it is empty, try to
26a32e9e42Smrg# detect it automatically by scanning the files in $(top_srcdir) for
27a32e9e42Smrg# "GNU packagename" string.
28a32e9e42SmrgPACKAGE_GNU = no
29a32e9e42Smrg
30a32e9e42Smrg# This is the email address or URL to which the translators shall report
31a32e9e42Smrg# bugs in the untranslated strings:
32a32e9e42Smrg# - Strings which are not entire sentences, see the maintainer guidelines
33a32e9e42Smrg#   in the GNU gettext documentation, section 'Preparing Strings'.
34a32e9e42Smrg# - Strings which use unclear terms or require additional context to be
35a32e9e42Smrg#   understood.
36a32e9e42Smrg# - Strings which make invalid assumptions about notation of date, time or
37a32e9e42Smrg#   money.
38a32e9e42Smrg# - Pluralisation problems.
39a32e9e42Smrg# - Incorrect English spelling.
40a32e9e42Smrg# - Incorrect formatting.
41a32e9e42Smrg# It can be your email address, or a mailing list address where translators
42a32e9e42Smrg# can write to without being subscribed, or the URL of a web page through
43a32e9e42Smrg# which the translators can contact you.
44a4e54154SmrgMSGID_BUGS_ADDRESS = https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
45a32e9e42Smrg
46a32e9e42Smrg# This is the list of locale categories, beyond LC_MESSAGES, for which the
47a32e9e42Smrg# message catalogs shall be used.  It is usually empty.
48a32e9e42SmrgEXTRA_LOCALE_CATEGORIES =
49a32e9e42Smrg
50a32e9e42Smrg# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
51a32e9e42Smrg# context.  Possible values are "yes" and "no".  Set this to yes if the
52a32e9e42Smrg# package uses functions taking also a message context, like pgettext(), or
53a32e9e42Smrg# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
54a32e9e42SmrgUSE_MSGCTXT = no
55a32e9e42Smrg
56a32e9e42Smrg# These options get passed to msgmerge.
57a32e9e42Smrg# Useful options are in particular:
58a32e9e42Smrg#   --previous            to keep previous msgids of translated messages,
59a32e9e42Smrg#   --quiet               to reduce the verbosity.
60a32e9e42SmrgMSGMERGE_OPTIONS =
61a32e9e42Smrg
62a32e9e42Smrg# These options get passed to msginit.
63a32e9e42Smrg# If you want to disable line wrapping when writing PO files, add
64a32e9e42Smrg# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and
65a32e9e42Smrg# MSGINIT_OPTIONS.
66a32e9e42SmrgMSGINIT_OPTIONS =
67a32e9e42Smrg
68a32e9e42Smrg# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
69a32e9e42Smrg# has changed.  Possible values are "yes" and "no".  Set this to no if
70a32e9e42Smrg# the POT file is checked in the repository and the version control
71a32e9e42Smrg# program ignores timestamps.
72a32e9e42SmrgPO_DEPENDS_ON_POT = yes
73a32e9e42Smrg
74a32e9e42Smrg# This tells whether or not to forcibly update $(DOMAIN).pot and
75a32e9e42Smrg# regenerate PO files on "make dist".  Possible values are "yes" and
76a32e9e42Smrg# "no".  Set this to no if the POT file and PO files are maintained
77a32e9e42Smrg# externally.
78a32e9e42SmrgDIST_DEPENDS_ON_UPDATE_PO = yes
79a32e9e42Smrg
80a32e9e42Smrg$(DOMAIN).pot-update: export GETTEXTDATADIR = $(top_srcdir)
81