Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: merge: mark messages for translation
author
Vasco Almeida
<vascomalmeida@sapo.pt>
Fri, 17 Jun 2016 20:21:17 +0000
(20:21 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 17 Jun 2016 22:46:10 +0000
(15:46 -0700)
Mark messages shown to the user for translation.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
b34c77e
)
diff --git
a/builtin/merge.c
b/builtin/merge.c
index b555a1bf9cd46ea57bcbe1c8d8b7ac146fe9f81c..961def55bb0414d8c65deac1b8ae06c181f4a251 100644
(file)
--- a/
builtin/merge.c
+++ b/
builtin/merge.c
@@
-1014,7
+1014,7
@@
static int default_edit_option(void)
if (e) {
int v = git_config_maybe_bool(name, e);
if (v < 0)
if (e) {
int v = git_config_maybe_bool(name, e);
if (v < 0)
- die(
"Bad value '%s' in environment '%s'"
, e, name);
+ die(
_("Bad value '%s' in environment '%s'")
, e, name);
return v;
}
return v;
}
@@
-1115,7
+1115,7
@@
static void handle_fetch_head(struct commit_list **remotes, struct strbuf *merge
if (!commit) {
if (ptr)
*ptr = '\0';
if (!commit) {
if (ptr)
*ptr = '\0';
- die(
"not something we can merge in %s: %s"
,
+ die(
_("not something we can merge in %s: %s")
,
filename, merge_names->buf + pos);
}
remotes = &commit_list_insert(commit, remotes)->next;
filename, merge_names->buf + pos);
}
remotes = &commit_list_insert(commit, remotes)->next;
@@
-1149,7
+1149,7
@@
static struct commit_list *collect_parents(struct commit *head_commit,
struct commit *commit = get_merge_parent(argv[i]);
if (!commit)
help_unknown_ref(argv[i], "merge",
struct commit *commit = get_merge_parent(argv[i]);
if (!commit)
help_unknown_ref(argv[i], "merge",
-
"not something we can merge"
);
+
_("not something we can merge")
);
remotes = &commit_list_insert(commit, remotes)->next;
}
remoteheads = reduce_parents(head_commit, head_subsumed, remoteheads);
remotes = &commit_list_insert(commit, remotes)->next;
}
remoteheads = reduce_parents(head_commit, head_subsumed, remoteheads);
@@
-1421,7
+1421,7
@@
int cmd_merge(int argc, const char **argv, const char *prefix)
* If head can reach all the merge then we are up to date.
* but first the most common case of merging one remote.
*/
* If head can reach all the merge then we are up to date.
* but first the most common case of merging one remote.
*/
- finish_up_to_date(
"Already up-to-date."
);
+ finish_up_to_date(
_("Already up-to-date.")
);
goto done;
} else if (fast_forward != FF_NO && !remoteheads->next &&
!common->next &&
goto done;
} else if (fast_forward != FF_NO && !remoteheads->next &&
!common->next &&
@@
-1506,7
+1506,7
@@
int cmd_merge(int argc, const char **argv, const char *prefix)
}
}
if (up_to_date) {
}
}
if (up_to_date) {
- finish_up_to_date(
"Already up-to-date. Yeeah!"
);
+ finish_up_to_date(
_("Already up-to-date. Yeeah!")
);
goto done;
}
}
goto done;
}
}