Skip to content

Commit 60ea78b

Browse files
vascoolgitster
authored andcommitted
i18n: branch: move comment for translators
Move and split comment for translators (marked by TRANSLATORS) to be immediately above the strings marked for translation. As a result, the comment can now be extracted by xgettext. Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2010aab commit 60ea78b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

builtin/branch.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,14 @@ static char *get_head_description(void)
369369
strbuf_addf(&desc, _("(no branch, bisect started on %s)"),
370370
state.branch);
371371
else if (state.detached_from) {
372-
/* TRANSLATORS: make sure these match _("HEAD detached at ")
373-
and _("HEAD detached from ") in wt-status.c */
374372
if (state.detached_at)
373+
/* TRANSLATORS: make sure this matches
374+
"HEAD detached at " in wt-status.c */
375375
strbuf_addf(&desc, _("(HEAD detached at %s)"),
376376
state.detached_from);
377377
else
378+
/* TRANSLATORS: make sure this matches
379+
"HEAD detached from " in wt-status.c */
378380
strbuf_addf(&desc, _("(HEAD detached from %s)"),
379381
state.detached_from);
380382
}

0 commit comments

Comments
 (0)