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