Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: git-mv basic messages
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Tue, 22 Feb 2011 23:42:03 +0000
(23:42 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 10 Mar 2011 07:52:55 +0000
(23:52 -0800)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mv.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
157efde
)
diff --git
a/builtin/mv.c
b/builtin/mv.c
index 93e8995d9e704faa041f97f92ba72dabe7839d81..18a2218bd079d73036aea920047c2f036d50e3c5 100644
(file)
--- a/
builtin/mv.c
+++ b/
builtin/mv.c
@@
-74,7
+74,7
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
newfd = hold_locked_index(&lock_file, 1);
if (read_cache() < 0)
newfd = hold_locked_index(&lock_file, 1);
if (read_cache() < 0)
- die(
"index file corrupt"
);
+ die(
_("index file corrupt")
);
source = copy_pathspec(prefix, argv, argc, 0);
modes = xcalloc(argc, sizeof(enum update_mode));
source = copy_pathspec(prefix, argv, argc, 0);
modes = xcalloc(argc, sizeof(enum update_mode));
@@
-100,7
+100,7
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
const char *bad = NULL;
if (show_only)
const char *bad = NULL;
if (show_only)
- printf(
"Checking rename of '%s' to '%s'\n"
, src, dst);
+ printf(
_("Checking rename of '%s' to '%s'\n")
, src, dst);
length = strlen(src);
if (lstat(src, &st) < 0)
length = strlen(src);
if (lstat(src, &st) < 0)
@@
-120,7
+120,7
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
first = cache_name_pos(src_w_slash, len_w_slash);
if (first >= 0)
first = cache_name_pos(src_w_slash, len_w_slash);
if (first >= 0)
- die (
"Huh? %.*s is in index?"
,
+ die (
_("Huh? %.*s is in index?")
,
len_w_slash, src_w_slash);
first = -1 - first;
len_w_slash, src_w_slash);
first = -1 - first;
@@
-172,7
+172,7
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
* check both source and destination
*/
if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
* check both source and destination
*/
if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
- warning(
"%s; will overwrite!"
, bad);
+ warning(
_("%s; will overwrite!")
, bad);
bad = NULL;
} else
bad = "Cannot overwrite";
bad = NULL;
} else
bad = "Cannot overwrite";
@@
-193,7
+193,7
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
i--;
}
} else
i--;
}
} else
- die (
"%s, source=%s, destination=%s"
,
+ die (
_("%s, source=%s, destination=%s")
,
bad, src, dst);
}
}
bad, src, dst);
}
}
@@
-203,10
+203,10
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
enum update_mode mode = modes[i];
int pos;
if (show_only || verbose)
enum update_mode mode = modes[i];
int pos;
if (show_only || verbose)
- printf(
"Renaming %s to %s\n"
, src, dst);
+ printf(
_("Renaming %s to %s\n")
, src, dst);
if (!show_only && mode != INDEX &&
rename(src, dst) < 0 && !ignore_errors)
if (!show_only && mode != INDEX &&
rename(src, dst) < 0 && !ignore_errors)
- die_errno (
"renaming '%s' failed"
, src);
+ die_errno (
_("renaming '%s' failed")
, src);
if (mode == WORKING_DIRECTORY)
continue;
if (mode == WORKING_DIRECTORY)
continue;
@@
-220,7
+220,7
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
if (active_cache_changed) {
if (write_cache(newfd, active_cache, active_nr) ||
commit_locked_index(&lock_file))
if (active_cache_changed) {
if (write_cache(newfd, active_cache, active_nr) ||
commit_locked_index(&lock_file))
- die(
"Unable to write new index file"
);
+ die(
_("Unable to write new index file")
);
}
return 0;
}
return 0;