919
}
920
if (at_time) {
921
if (!(flags & GET_OID_QUIETLY)) {
922
- warning("Log for '%.*s' only goes "
923
- "back to %s.", len, str,
922
+ warning(_("log for '%.*s' only goes back to %s"),
923
+ len, str,
924
show_date(co_time, co_tz, DATE_MODE(RFC2822)));
925
}
926
} else {
927
if (flags & GET_OID_QUIETLY) {
928
exit(128);
929
}
930
- die("Log for '%.*s' only has %d entries.",
930
+ die(_("log for '%.*s' only has %d entries"),
931
len, str, co_cnt);
932
}
933
}
1692
prefix = "";
1693
1694
if (file_exists(filename))
1695
- die("Path '%s' exists on disk, but not in '%.*s'.",
1695
+ die(_("path '%s' exists on disk, but not in '%.*s'"),
1696
filename, object_name_len, object_name);
1697
if (is_missing_file_error(errno)) {
1698
char *fullname = xstrfmt("%s%s", prefix, filename);
1699
1700
if (!get_tree_entry(r, tree_oid, fullname, &oid, &mode)) {
1701
- die("Path '%s' exists, but not '%s'.\n"
1702
- "Did you mean '%.*s:%s' aka '%.*s:./%s'?",
1701
+ die(_("path '%s' exists, but not '%s'\n"
1702
+ "hint: Did you mean '%.*s:%s' aka '%.*s:./%s'?"),
1703
fullname,
1704
filename,
1705
object_name_len, object_name,
1707
object_name_len, object_name,
1708
filename);
1709
}
1710
- die("Path '%s' does not exist in '%.*s'",
1710
+ die(_("path '%s' does not exist in '%.*s'"),
1711
filename, object_name_len, object_name);
1712
}
1713
}
1735
ce = istate->cache[pos];
1736
if (ce_namelen(ce) == namelen &&
1737
!memcmp(ce->name, filename, namelen))
1738
- die("Path '%s' is in the index, but not at stage %d.\n"
1739
- "Did you mean ':%d:%s'?",
1738
+ die(_("path '%s' is in the index, but not at stage %d\n"
1739
+ "hint: Did you mean ':%d:%s'?"),
1740
filename, stage,
1741
ce_stage(ce), filename);
1742
}
1751
ce = istate->cache[pos];
1752
if (ce_namelen(ce) == fullname.len &&
1753
!memcmp(ce->name, fullname.buf, fullname.len))
1754
- die("Path '%s' is in the index, but not '%s'.\n"
1755
- "Did you mean ':%d:%s' aka ':%d:./%s'?",
1754
+ die(_("path '%s' is in the index, but not '%s'\n"
1755
+ "hint: Did you mean ':%d:%s' aka ':%d:./%s'?"),
1756
fullname.buf, filename,
1757
ce_stage(ce), fullname.buf,
1758
ce_stage(ce), filename);
1759
}
1760
1761
if (repo_file_exists(r, filename))
1762
- die("Path '%s' exists on disk, but not in the index.", filename);
1762
+ die(_("path '%s' exists on disk, but not in the index"), filename);
1763
if (is_missing_file_error(errno))
1764
- die("Path '%s' does not exist (neither on disk nor in the index).",
1764
+ die(_("path '%s' does not exist (neither on disk nor in the index)"),
1765
filename);
1766
1767
strbuf_release(&fullname);
1774
return NULL;
1775
1776
if (r != the_repository || !is_inside_work_tree())
1777
- die("relative path syntax can't be used outside working tree.");
1777
+ die(_("relative path syntax can't be used outside working tree"));
1778
1779
/* die() inside prefix_path() if resolved path is outside worktree */
1780
return prefix_path(startup_info->prefix,
1912
return ret;
1913
} else {
1914
if (only_to_die)
1915
- die("Invalid object name '%.*s'.", len, name);
1915
+ die(_("invalid object name '%.*s'."), len, name);
1916
}
1917
}
1918
return ret;