i18n: fix uncatchable comments for translators in date.c

Comment for l10n translators can not be extracted by xgettext if it
is not right above the l10n tag.  Moving the comment right before
the l10n tag will fix this issue.

Reported-by: Brian Gesiak <modocache@gmail.com>
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jiang Xin 2014-04-17 13:37:17 +08:00 committed by Junio C Hamano
parent 3f0c02a1c0
commit fcaed04df6

2
date.c
View File

@ -144,8 +144,8 @@ void show_date_relative(unsigned long time, int tz,
if (months) { if (months) {
struct strbuf sb = STRBUF_INIT; struct strbuf sb = STRBUF_INIT;
strbuf_addf(&sb, Q_("%lu year", "%lu years", years), years); strbuf_addf(&sb, Q_("%lu year", "%lu years", years), years);
/* TRANSLATORS: "%s" is "<n> years" */
strbuf_addf(timebuf, strbuf_addf(timebuf,
/* TRANSLATORS: "%s" is "<n> years" */
Q_("%s, %lu month ago", "%s, %lu months ago", months), Q_("%s, %lu month ago", "%s, %lu months ago", months),
sb.buf, months); sb.buf, months);
strbuf_release(&sb); strbuf_release(&sb);