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