i18n: credential-cache--daemon: mark advice for translation
Mark permissions_advice for translation. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Vasco Almeida committed
Oct 17, 2016 at 13:15 UTC
af64f20b1e753f9ede6004e8f15e28888097b874
1 file changed
+3
-3
credential-cache--daemon.c
+3
-3
@@ -219,11 +219,11 @@ static void serve_cache(const char *socket_path, int debug)
219
close(fd);
220
}
221
222
-static const char permissions_advice[] =
222
+static const char permissions_advice[] = N_(
223
"The permissions on your socket directory are too loose; other\n"
224
"users may be able to read your cached credentials. Consider running:\n"
225
"\n"
226
-" chmod 0700 %s";
226
+" chmod 0700 %s");
227
static void init_socket_directory(const char *path)
228
{
229
struct stat st;
@@ -232,7 +232,7 @@ static void init_socket_directory(const char *path)
232
233
if (!stat(dir, &st)) {
234
if (st.st_mode & 077)
235
- die(permissions_advice, dir);
235
+ die(_(permissions_advice), dir);
236
} else {
237
/*
238
* We must be sure to create the directory with the correct mode,