From: Junio C Hamano Date: Thu, 20 Jul 2017 18:24:06 GMT Subject: Re: [PATCH] PRItime: wrap PRItime for better l10n compatibility Message-ID: In-Reply-To: Junio C Hamano writes: > The use of "make pot" from the top-level is already described in > po/README, so the only thing that we need is something like this > change. I'll follow up this message with a sample output from the > updated process to ask others to sanity check the result (they are > tiny) in a separate message. Without the Makefile patch in the previous message, I ran "make pot" and saved the resulting po/git.pot to git.pot-old. And then after "git reset --hard", I applied the Makefile patch and ran "make pot" again, which gave me an updated po/git.pot file. The difference is shown below. As expected, these look sensible to me. All the hits from git grep '_(.*PRItime' are included in the difference. --- git.pot-old 2017-07-20 11:17:29.608343390 -0700 +++ po/git.pot 2017-07-20 11:18:14.744342564 -0700 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: Git Mailing List \n" -"POT-Creation-Date: 2017-07-20 11:17-0700\n" +"POT-Creation-Date: 2017-07-20 11:18-0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1388,17 +1388,67 @@ msgid "in the future" msgstr "" -#: date.c:122 date.c:129 date.c:136 date.c:143 date.c:149 date.c:156 -#: date.c:167 date.c:175 date.c:180 -msgid "%" -msgid_plural "%" +#: date.c:122 +#, c-format +msgid "% second ago" +msgid_plural "% seconds ago" +msgstr[0] "" +msgstr[1] "" + +#: date.c:129 +#, c-format +msgid "% minute ago" +msgid_plural "% minutes ago" +msgstr[0] "" +msgstr[1] "" + +#: date.c:136 +#, c-format +msgid "% hour ago" +msgid_plural "% hours ago" +msgstr[0] "" +msgstr[1] "" + +#: date.c:143 +#, c-format +msgid "% day ago" +msgid_plural "% days ago" +msgstr[0] "" +msgstr[1] "" + +#: date.c:149 +#, c-format +msgid "% week ago" +msgid_plural "% weeks ago" +msgstr[0] "" +msgstr[1] "" + +#: date.c:156 +#, c-format +msgid "% month ago" +msgid_plural "% months ago" +msgstr[0] "" +msgstr[1] "" + +#: date.c:167 +#, c-format +msgid "% year" +msgid_plural "% years" msgstr[0] "" msgstr[1] "" #. TRANSLATORS: "%s" is " years" #: date.c:170 -msgid "%s, %" -msgid_plural "%s, %" +#, c-format +msgid "%s, % month ago" +msgid_plural "%s, % months ago" +msgstr[0] "" +msgstr[1] "" + +#: date.c:175 date.c:180 +#, c-format +msgid "% year ago" +msgid_plural "% years ago" msgstr[0] "" msgstr[1] ""