i18n: branch: move comment for translators
authorVasco Almeida <vascomalmeida@sapo.pt>
Wed, 13 Apr 2016 10:29:54 +0000 (10:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Apr 2016 20:23:27 +0000 (13:23 -0700)
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 <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
index cfb523205f873365a6ec23fa0d0c5d3a41bf4eb1..32be954cee1720f4f6264bbc5696cd17b8789f66 100644 (file)
@@ -369,12 +369,14 @@ static char *get_head_description(void)
                strbuf_addf(&desc, _("(no branch, bisect started on %s)"),
                            state.branch);
        else if (state.detached_from) {
-               /* TRANSLATORS: make sure these match _("HEAD detached at ")
-                  and _("HEAD detached from ") in wt-status.c */
                if (state.detached_at)
+                       /* TRANSLATORS: make sure this matches
+                          "HEAD detached at " in wt-status.c */
                        strbuf_addf(&desc, _("(HEAD detached at %s)"),
                                state.detached_from);
                else
+                       /* TRANSLATORS: make sure this matches
+                          "HEAD detached from " in wt-status.c */
                        strbuf_addf(&desc, _("(HEAD detached from %s)"),
                                state.detached_from);
        }