From f4ddd7526b98a6754b9c5d610ba81da9cf662323 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 14 Jul 2019 20:57:51 -0400 Subject: [PATCH] po: add help text to e2fsprogs.pot explaining ix-nay on positional indicators Signed-off-by: Theodore Ts'o --- po/at-expand.pl | 9 ++++++++- po/e2fsprogs.pot | 11 +++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/po/at-expand.pl b/po/at-expand.pl index 47e4ebd..fe68556 100644 --- a/po/at-expand.pl +++ b/po/at-expand.pl @@ -25,7 +25,14 @@ my @translator_help = ( "#. it can expand to either the string \"indirect block\" (possibly preceded\n", "#. by the word \"double\" or \"triple\"), or the string \"block #\" immediately\n", "#. followed by an integer indicating a block sequence number.\n", - "#. \n", + "#.\n", + "#. Please note that the %-expansion for most e2fsck's problem.c should not\n", + "#. use positional indicators such as %1$c, since although they look like c-style\n", + "#. format strings, they are NOT c-style format strings, and the positional\n", + "#. indicators (which BTW are GNU extensions and so won't work on other Unix\n", + "#. gettext implementations) won't work with e2fsck's print_e2fsck_message()\n", + "#. function found in e2fsck/message.c\n", + "#.\n", "#. %b block number\n", "#. %B \"indirect block\" | \"block #\" string | string+integer\n", "#. %c block number\n", diff --git a/po/e2fsprogs.pot b/po/e2fsprogs.pot index 33f3a82..0dd457e 100644 --- a/po/e2fsprogs.pot +++ b/po/e2fsprogs.pot @@ -29,7 +29,14 @@ #. it can expand to either the string "indirect block" (possibly preceded #. by the word "double" or "triple"), or the string "block #" immediately #. followed by an integer indicating a block sequence number. -#. +#. +#. Please note that the %-expansion for most e2fsck's problem.c should not +#. use positional indicators such as %1, since although they look like c-style +#. format strings, they are NOT c-style format strings, and the positional +#. indicators (which BTW are GNU extensions and so won't work on other Unix +#. gettext implementations) won't work with e2fsck's print_e2fsck_message() +#. function found in e2fsck/message.c +#. #. %b block number #. %B "indirect block" | "block #" string | string+integer #. %c block number @@ -72,7 +79,7 @@ msgid "" msgstr "" "Project-Id-Version: e2fsprogs v1.45.3\n" "Report-Msgid-Bugs-To: tytso@alum.mit.edu\n" -"POT-Creation-Date: 2019-07-13 16:08-0400\n" +"POT-Creation-Date: 2019-07-14 20:56-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- 1.8.3.1