]> git.ipfire.org Git - thirdparty/git.git/commitdiff
i18n: apply: mark plural string for translation
authorVasco Almeida <vascomalmeida@sapo.pt>
Fri, 14 Oct 2016 11:43:35 +0000 (11:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Oct 2016 17:53:49 +0000 (10:53 -0700)
Mark plural string for translation using Q_().

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

diff --git a/apply.c b/apply.c
index b03d274b522b87e8666bc3703bf0c5f1c9fc9e5b..201d3a73586bdd52131439a8d259345e5f188d19 100644 (file)
--- a/apply.c
+++ b/apply.c
@@ -4869,10 +4869,12 @@ int apply_all_patches(struct apply_state *state,
                        goto end;
                }
                if (state->applied_after_fixing_ws && state->apply)
-                       warning("%d line%s applied after"
-                               " fixing whitespace errors.",
-                               state->applied_after_fixing_ws,
-                               state->applied_after_fixing_ws == 1 ? "" : "s");
+                       warning(Q_("%d line applied after"
+                                  " fixing whitespace errors.",
+                                  "%d lines applied after"
+                                  " fixing whitespace errors.",
+                                  state->applied_after_fixing_ws),
+                               state->applied_after_fixing_ws);
                else if (state->whitespace_error)
                        warning(Q_("%d line adds whitespace errors.",
                                   "%d lines add whitespace errors.",