• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile variables for PO directory in any package using GNU gettext.
2#
3# Copyright (C) 2003-2019 Free Software Foundation, Inc.
4# This file, Makevars, is free software; the Free Software Foundation
5# gives unlimited permission to use, copy, distribute, and modify it.
6
7# Usually the message domain is the same as the package name.
8DOMAIN = $(PACKAGE)
9
10# These two variables depend on the location of this directory.
11subdir = po
12top_builddir = ..
13
14# These options get passed to xgettext.
15XGETTEXT_OPTIONS = \
16  --package-name='GNU gettext' \
17  --keyword=_ --flag=_:1:pass-c-format \
18  --keyword=N_ --flag=N_:1:pass-c-format \
19  --flag=error:3:c-format --flag=error_at_line:5:c-format \
20  --flag=asprintf:2:c-format --flag=vasprintf:2:c-format \
21  --flag=xasprintf:1:c-format --flag=error_logger:1:c-format \
22  --flag=po_error:3:c-format --flag=po_error_at_line:5:c-format \
23  --flag=po_gram_error:1:c-format --flag=po_gram_error_at_line:2:c-format
24
25# This is the copyright holder that gets inserted into the header of the
26# $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
27# package.  (Note that the msgstr strings, extracted from the package's
28# sources, belong to the copyright holder of the package.)  Translators are
29# expected to transfer the copyright for their translations to this person
30# or entity, or to disclaim their copyright.  The empty string stands for
31# the public domain; in this case the translators are expected to disclaim
32# their copyright.
33COPYRIGHT_HOLDER = Free Software Foundation, Inc.
34
35# This tells whether or not to prepend "GNU " prefix to the package
36# name that gets inserted into the header of the $(DOMAIN).pot file.
37# Possible values are "yes", "no", or empty.  If it is empty, try to
38# detect it automatically by scanning the files in $(top_srcdir) for
39# "GNU packagename" string.
40PACKAGE_GNU =
41
42# This is the email address or URL to which the translators shall report
43# bugs in the untranslated strings:
44# - Strings which are not entire sentences, see the maintainer guidelines
45#   in the GNU gettext documentation, section 'Preparing Strings'.
46# - Strings which use unclear terms or require additional context to be
47#   understood.
48# - Strings which make invalid assumptions about notation of date, time or
49#   money.
50# - Pluralisation problems.
51# - Incorrect English spelling.
52# - Incorrect formatting.
53# It can be your email address, or a mailing list address where translators
54# can write to without being subscribed, or the URL of a web page through
55# which the translators can contact you.
56MSGID_BUGS_ADDRESS = bug-gettext@gnu.org
57
58# This is the list of locale categories, beyond LC_MESSAGES, for which the
59# message catalogs shall be used.  It is usually empty.
60EXTRA_LOCALE_CATEGORIES =
61
62# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
63# context.  Possible values are "yes" and "no".  Set this to yes if the
64# package uses functions taking also a message context, like pgettext(), or
65# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
66USE_MSGCTXT = no
67
68# These options get passed to msgmerge.
69# Useful options are in particular:
70#   --previous            to keep previous msgids of translated messages,
71#   --quiet               to reduce the verbosity.
72MSGMERGE_OPTIONS =
73
74# These options get passed to msginit.
75# If you want to disable line wrapping when writing PO files, add
76# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and
77# MSGINIT_OPTIONS.
78MSGINIT_OPTIONS =
79
80# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
81# has changed.  Possible values are "yes" and "no".  Set this to no if
82# the POT file is checked in the repository and the version control
83# program ignores timestamps.
84PO_DEPENDS_ON_POT = yes
85
86# This tells whether or not to forcibly update $(DOMAIN).pot and
87# regenerate PO files on "make dist".  Possible values are "yes" and
88# "no".  Set this to no if the POT file and PO files are maintained
89# externally.
90DIST_DEPENDS_ON_UPDATE_PO = yes
91