Skip to content

Commit 2ff30e6

Browse files
vascoolgitster
authored andcommitted
i18n: setup: mark error messages for translation
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 768eded commit 2ff30e6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

setup.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,9 @@ static const char *setup_bare_git_dir(struct strbuf *cwd, int offset,
759759
static const char *setup_nongit(const char *cwd, int *nongit_ok)
760760
{
761761
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);
763763
if (chdir(cwd))
764-
die_errno("Cannot come back to cwd");
764+
die_errno(_("Cannot come back to cwd"));
765765
*nongit_ok = 1;
766766
return NULL;
767767
}
@@ -842,7 +842,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
842842
*nongit_ok = 0;
843843

844844
if (strbuf_getcwd(&cwd))
845-
die_errno("Unable to read current working directory");
845+
die_errno(_("Unable to read current working directory"));
846846
offset = cwd.len;
847847

848848
/*
@@ -912,19 +912,19 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
912912
if (parent_device != current_device) {
913913
if (nongit_ok) {
914914
if (chdir(cwd.buf))
915-
die_errno("Cannot come back to cwd");
915+
die_errno(_("Cannot come back to cwd"));
916916
*nongit_ok = 1;
917917
return NULL;
918918
}
919919
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)."),
922922
cwd.buf);
923923
}
924924
}
925925
if (chdir("..")) {
926926
strbuf_setlen(&cwd, offset);
927-
die_errno("Cannot change to '%s/..'", cwd.buf);
927+
die_errno(_("Cannot change to '%s/..'"), cwd.buf);
928928
}
929929
offset = offset_parent;
930930
}
@@ -986,9 +986,9 @@ int git_config_perm(const char *var, const char *value)
986986
/* A filemode value was given: 0xxx */
987987

988988
if ((i & 0600) != 0600)
989-
die("Problem with core.sharedRepository filemode value "
989+
die(_("Problem with core.sharedRepository filemode value "
990990
"(0%.3o).\nThe owner of files must always have "
991-
"read and write permissions.", i);
991+
"read and write permissions."), i);
992992

993993
/*
994994
* Mask filemode value. Others can not get write permission.

0 commit comments

Comments
 (0)