1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 08:18:51 -05:00
pacman/po
Chantry Xavier 7eaad2f2a9 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 20:25:57 -06:00
..
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
cs.po Merge branch 'translations' into maint 2008-02-14 21:22:27 -06:00
de.po More small updates to German translation 2008-02-15 16:07:28 -06:00
en_GB.po Updated English translation for 3.1.2 release 2008-02-12 12:18:46 +01:00
es.po More small updates to Spanish translation 2008-02-19 22:05:37 -06:00
fr.po Update french translation. 2008-02-12 12:17:20 +01:00
hu.po Updated Hungarian translation for 3.1.2 release 2008-02-12 23:26:43 +01:00
it.po Updated Italian translation for 3.1.2 release 2008-02-12 12:15:36 +01:00
LINGUAS Add new Simplified Chinese translation 2008-02-22 08:24:08 -06:00
Makefile.in.in First step of moving translations from src/pacman/po to po/ 2007-07-06 17:59:08 -04:00
Makevars xgettext : change pass-c-format flag to c-format. 2008-02-25 20:25:57 -06:00
pacman.pot Update translation files in prep for 3.1.2 release 2008-02-11 20:52:50 -06:00
pl.po Final updates to Polish translation 2008-02-19 08:41:05 -06:00
POTFILES.in Remove abs from the pacman repository 2007-12-21 11:05:38 -06:00
pt_BR.po Updated Brazilian Portuguese translation for 3.1.2 release 2008-02-15 01:27:15 +01:00
remove-potcdate.sin First step of moving translations from src/pacman/po to po/ 2007-07-06 17:59:08 -04:00
ru.po Update Russian translation 2008-02-24 00:44:35 -06:00
zh_CN.po Add new Simplified Chinese translation 2008-02-22 08:24:08 -06:00