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