xref: /aosp_15_r20/external/elfutils/po/Makevars (revision 7304104da70ce23c86437a01be71edd1a2d7f37e)
1*7304104dSAndroid Build Coastguard Worker# Makefile variables for PO directory in any package using GNU gettext.
2*7304104dSAndroid Build Coastguard Worker
3*7304104dSAndroid Build Coastguard Worker# Usually the message domain is the same as the package name.
4*7304104dSAndroid Build Coastguard WorkerDOMAIN = $(PACKAGE)
5*7304104dSAndroid Build Coastguard Worker
6*7304104dSAndroid Build Coastguard Worker# These two variables depend on the location of this directory.
7*7304104dSAndroid Build Coastguard Workersubdir = po
8*7304104dSAndroid Build Coastguard Workertop_builddir = ..
9*7304104dSAndroid Build Coastguard Worker
10*7304104dSAndroid Build Coastguard Worker# These options get passed to xgettext.
11*7304104dSAndroid Build Coastguard WorkerXGETTEXT_OPTIONS = --keyword=_ \
12*7304104dSAndroid Build Coastguard Worker		   --keyword=N_ \
13*7304104dSAndroid Build Coastguard Worker		   --keyword=sgettext:1g \
14*7304104dSAndroid Build Coastguard Worker		   --flag=_:1:pass-c-format \
15*7304104dSAndroid Build Coastguard Worker		   --flag=N_:1:pass-c-format \
16*7304104dSAndroid Build Coastguard Worker		   --flag=sgettext:1:pass-c-format \
17*7304104dSAndroid Build Coastguard Worker		   --flag=error:3:c-format \
18*7304104dSAndroid Build Coastguard Worker		   --flag=ERROR:1:c-format \
19*7304104dSAndroid Build Coastguard Worker		   --flag=argp_error:2:c-format \
20*7304104dSAndroid Build Coastguard Worker		   --add-comments
21*7304104dSAndroid Build Coastguard Worker
22*7304104dSAndroid Build Coastguard Worker# This is the copyright holder that gets inserted into the header of the
23*7304104dSAndroid Build Coastguard Worker# $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
24*7304104dSAndroid Build Coastguard Worker# package.  (Note that the msgstr strings, extracted from the package's
25*7304104dSAndroid Build Coastguard Worker# sources, belong to the copyright holder of the package.)  Translators are
26*7304104dSAndroid Build Coastguard Worker# expected to transfer the copyright for their translations to this person
27*7304104dSAndroid Build Coastguard Worker# or entity, or to disclaim their copyright.  The empty string stands for
28*7304104dSAndroid Build Coastguard Worker# the public domain; in this case the translators are expected to disclaim
29*7304104dSAndroid Build Coastguard Worker# their copyright.
30*7304104dSAndroid Build Coastguard WorkerCOPYRIGHT_HOLDER = The elfutils developers
31*7304104dSAndroid Build Coastguard Worker
32*7304104dSAndroid Build Coastguard Worker# This is the email address or URL to which the translators shall report
33*7304104dSAndroid Build Coastguard Worker# bugs in the untranslated strings:
34*7304104dSAndroid Build Coastguard Worker# - Strings which are not entire sentences, see the maintainer guidelines
35*7304104dSAndroid Build Coastguard Worker#   in the GNU gettext documentation, section 'Preparing Strings'.
36*7304104dSAndroid Build Coastguard Worker# - Strings which use unclear terms or require additional context to be
37*7304104dSAndroid Build Coastguard Worker#   understood.
38*7304104dSAndroid Build Coastguard Worker# - Strings which make invalid assumptions about notation of date, time or
39*7304104dSAndroid Build Coastguard Worker#   money.
40*7304104dSAndroid Build Coastguard Worker# - Pluralisation problems.
41*7304104dSAndroid Build Coastguard Worker# - Incorrect English spelling.
42*7304104dSAndroid Build Coastguard Worker# - Incorrect formatting.
43*7304104dSAndroid Build Coastguard Worker# It can be your email address, or a mailing list address where translators
44*7304104dSAndroid Build Coastguard Worker# can write to without being subscribed, or the URL of a web page through
45*7304104dSAndroid Build Coastguard Worker# which the translators can contact you.
46*7304104dSAndroid Build Coastguard WorkerMSGID_BUGS_ADDRESS = https://sourceware.org/bugzilla/
47*7304104dSAndroid Build Coastguard Worker
48*7304104dSAndroid Build Coastguard Worker# This is the list of locale categories, beyond LC_MESSAGES, for which the
49*7304104dSAndroid Build Coastguard Worker# message catalogs shall be used.  It is usually empty.
50*7304104dSAndroid Build Coastguard WorkerEXTRA_LOCALE_CATEGORIES =
51*7304104dSAndroid Build Coastguard Worker
52*7304104dSAndroid Build Coastguard Worker# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
53*7304104dSAndroid Build Coastguard Worker# context.  Possible values are "yes" and "no".  Set this to yes if the
54*7304104dSAndroid Build Coastguard Worker# package uses functions taking also a message context, like pgettext(), or
55*7304104dSAndroid Build Coastguard Worker# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
56*7304104dSAndroid Build Coastguard WorkerUSE_MSGCTXT = no
57*7304104dSAndroid Build Coastguard Worker
58*7304104dSAndroid Build Coastguard Worker# These options get passed to msgmerge.
59*7304104dSAndroid Build Coastguard Worker# Useful options are in particular:
60*7304104dSAndroid Build Coastguard Worker#   --previous            to keep previous msgids of translated messages,
61*7304104dSAndroid Build Coastguard Worker#   --quiet               to reduce the verbosity.
62*7304104dSAndroid Build Coastguard WorkerMSGMERGE_OPTIONS =
63*7304104dSAndroid Build Coastguard Worker
64*7304104dSAndroid Build Coastguard Worker# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
65*7304104dSAndroid Build Coastguard Worker# has changed.  Possible values are "yes" and "no".  Set this to no if
66*7304104dSAndroid Build Coastguard Worker# the POT file is checked in the repository and the version control
67*7304104dSAndroid Build Coastguard Worker# program ignores timestamps.
68*7304104dSAndroid Build Coastguard WorkerPO_DEPENDS_ON_POT = yes
69*7304104dSAndroid Build Coastguard Worker
70*7304104dSAndroid Build Coastguard Worker# This tells whether or not to forcibly update $(DOMAIN).pot and
71*7304104dSAndroid Build Coastguard Worker# regenerate PO files on "make dist".  Possible values are "yes" and
72*7304104dSAndroid Build Coastguard Worker# "no".  Set this to no if the POT file and PO files are maintained
73*7304104dSAndroid Build Coastguard Worker# externally.
74*7304104dSAndroid Build Coastguard WorkerDIST_DEPENDS_ON_UPDATE_PO = yes
75