1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-15 13:55:09 -05:00
pacman/scripts/po/Makevars

27 lines
1004 B
Plaintext
Raw Normal View History

2006-06-28 01:37:15 -04:00
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = pacman-scripts
2006-06-28 01:37:15 -04:00
# These two variables depend on the location of this directory.
subdir = scripts/po
top_builddir = ../../
2006-06-28 01:37:15 -04:00
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --no-location \
xgettext : change pass-c-format flag to c-format. Currently xgettext apparently attempts to autodetect c format strings (eg a string with a %s) to decide whether to use c-format flag or not. If we use --flag=_:1:c-format instead of --flag=_:1:pass-c-format, the c-format will be applied everywhere. I couldn't find this documented anywhere though. But the pass prefix is mentioned here : http://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html#xgettext-Invocation "Specifies additional flags for strings occurring as part of the argth argument of the function word. The possible flags are the possible format string indicators, such as ‘c-format’, and their negations, such as ‘no-c-format’, possibly prefixed with ‘pass-’." And c-format is documented there : http://www.gnu.org/software/gettext/manual/html_node/c_002dformat-Flag.html#c_002dformat-Flag "This situation happens quite often. The printf function is often called with strings which do not contain a format specifier. Of course one would normally use fputs but it does happen. In this case xgettext does not recognize this as a format string but what happens if the translation introduces a valid format specifier? The printf function will try to access one of the parameters but none exists because the original code does not pass any parameters." And that's exactly what happened with FS#9658. So using c-format for every string will prevent this issue from happening again. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
2008-02-25 15:52:53 -05:00
--keyword=_ --flag=_:1:c-format \
--keyword=_n:1,2 --flag=_n:1:c-format --flag=_n:2:c-format
2006-06-28 01:37:15 -04:00
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
# package.
2009-07-27 22:40:43 -04:00
COPYRIGHT_HOLDER = Pacman Development Team <pacman-dev@archlinux.org>
2006-06-28 01:37:15 -04:00
# This is the email address or URL to which the translators shall report
# bugs in the untranslated strings.
MSGID_BUGS_ADDRESS = http://bugs.archlinux.org/index.php?project=3
2006-06-28 01:37:15 -04:00
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
EXTRA_LOCALE_CATEGORIES =