summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
authorJiang Xin <worldhello.net@gmail.com>2014-04-17 05:37:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-17 18:03:28 (GMT)
commitfcaed04df693685dfece4a48cc8780c9a5adde0b (patch)
tree8d200b72c207cf75d25adee8f28bed37228e26bf /date.c
parent3f0c02a1c018ddaced5c97b58f550b2ad17dd0a9 (diff)
downloadgit-fcaed04df693685dfece4a48cc8780c9a5adde0b.zip
git-fcaed04df693685dfece4a48cc8780c9a5adde0b.tar.gz
git-fcaed04df693685dfece4a48cc8780c9a5adde0b.tar.bz2
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>
Diffstat (limited to 'date.c')
-rw-r--r--date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/date.c b/date.c
index e1a2cee..782de95 100644
--- a/date.c
+++ b/date.c
@@ -144,8 +144,8 @@ void show_date_relative(unsigned long time, int tz,
if (months) {
struct strbuf sb = STRBUF_INIT;
strbuf_addf(&sb, Q_("%lu year", "%lu years", years), years);
- /* TRANSLATORS: "%s" is "<n> years" */
strbuf_addf(timebuf,
+ /* TRANSLATORS: "%s" is "<n> years" */
Q_("%s, %lu month ago", "%s, %lu months ago", months),
sb.buf, months);
strbuf_release(&sb);