]> git.ipfire.org Git - thirdparty/git.git/commitdiff
i18n: index-pack: use plural string instead of normal one
authorVasco Almeida <vascomalmeida@sapo.pt>
Fri, 8 Apr 2016 20:02:39 +0000 (20:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Apr 2016 22:15:54 +0000 (15:15 -0700)
Git could output "completed with 1 local objects", but in this
case using "object" instead of "objects" is the correct form.

Use Q_() instead of _().

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c

index 45245199aebafc7fdb8eb96197dacd86c422c413..ec6a530159ba916696cf95acbbfcb089ce90bd7f 100644 (file)
@@ -1250,7 +1250,9 @@ static void conclude_pack(int fix_thin_pack, const char *curr_pack, unsigned cha
                       nr_unresolved * sizeof(*objects));
                f = sha1fd(output_fd, curr_pack);
                fix_unresolved_deltas(f);
-               strbuf_addf(&msg, _("completed with %d local objects"),
+               strbuf_addf(&msg, Q_("completed with %d local object",
+                                    "completed with %d local objects",
+                                    nr_objects - nr_objects_initial),
                            nr_objects - nr_objects_initial);
                stop_progress_msg(&progress, msg.buf);
                strbuf_release(&msg);