i18n: setup: mark error messages for translation
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Vasco Almeida committed
Aug 8, 2016 at 11:15 UTC
2ff30e67d996b89fe16517a2ba4b55b417172389
1 file changed
+9
-9
setup.c
+9
-9
@@ -759,9 +759,9 @@ static const char *setup_bare_git_dir(struct strbuf *cwd, int offset,
759
static const char *setup_nongit(const char *cwd, int *nongit_ok)
760
{
761
if (!nongit_ok)
762
- die("Not a git repository (or any of the parent directories): %s", DEFAULT_GIT_DIR_ENVIRONMENT);
762
+ die(_("Not a git repository (or any of the parent directories): %s"), DEFAULT_GIT_DIR_ENVIRONMENT);
763
if (chdir(cwd))
764
- die_errno("Cannot come back to cwd");
764
+ die_errno(_("Cannot come back to cwd"));
765
*nongit_ok = 1;
766
return NULL;
767
}
@@ -842,7 +842,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
842
*nongit_ok = 0;
843
844
if (strbuf_getcwd(&cwd))
845
- die_errno("Unable to read current working directory");
845
+ die_errno(_("Unable to read current working directory"));
846
offset = cwd.len;
847
848
/*
@@ -912,19 +912,19 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
912
if (parent_device != current_device) {
913
if (nongit_ok) {
914
if (chdir(cwd.buf))
915
- die_errno("Cannot come back to cwd");
915
+ die_errno(_("Cannot come back to cwd"));
916
*nongit_ok = 1;
917
return NULL;
918
}
919
strbuf_setlen(&cwd, offset);
920
- die("Not a git repository (or any parent up to mount point %s)\n"
921
- "Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).",
920
+ die(_("Not a git repository (or any parent up to mount point %s)\n"
921
+ "Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."),
922
cwd.buf);
923
}
924
}
925
if (chdir("..")) {
926
strbuf_setlen(&cwd, offset);
927
- die_errno("Cannot change to '%s/..'", cwd.buf);
927
+ die_errno(_("Cannot change to '%s/..'"), cwd.buf);
928
}
929
offset = offset_parent;
930
}
@@ -986,9 +986,9 @@ int git_config_perm(const char *var, const char *value)
986
/* A filemode value was given: 0xxx */
987
988
if ((i & 0600) != 0600)
989
- die("Problem with core.sharedRepository filemode value "
989
+ die(_("Problem with core.sharedRepository filemode value "
990
"(0%.3o).\nThe owner of files must always have "
991
- "read and write permissions.", i);
991
+ "read and write permissions."), i);
992
993
/*
994
* Mask filemode value. Others can not get write permission.