Skip to content

Commit ccf0378

Browse files
committed
Merge branch 'ah/setup-extensions-message-i18n-fix'
Message update. * ah/setup-extensions-message-i18n-fix: setup: split "extensions found" messages into singular and plural
2 parents 3153c83 + 8013d7d commit ccf0378

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,9 @@ int verify_repository_format(const struct repository_format *format,
666666
if (format->version >= 1 && format->unknown_extensions.nr) {
667667
int i;
668668

669-
strbuf_addstr(err, _("unknown repository extensions found:"));
669+
strbuf_addstr(err, Q_("unknown repository extension found:",
670+
"unknown repository extensions found:",
671+
format->unknown_extensions.nr));
670672

671673
for (i = 0; i < format->unknown_extensions.nr; i++)
672674
strbuf_addf(err, "\n\t%s",
@@ -678,7 +680,9 @@ int verify_repository_format(const struct repository_format *format,
678680
int i;
679681

680682
strbuf_addstr(err,
681-
_("repo version is 0, but v1-only extensions found:"));
683+
Q_("repo version is 0, but v1-only extension found:",
684+
"repo version is 0, but v1-only extensions found:",
685+
format->v1_only_extensions.nr));
682686

683687
for (i = 0; i < format->v1_only_extensions.nr; i++)
684688
strbuf_addf(err, "\n\t%s",

0 commit comments

Comments
 (0)