git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/4] i18n: credential-cache--daemon: mark advice for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Oct 17, 2016, 13:15 UTC
Message-ID
<20161017131529.27856-3-vascomalmeida@sapo.pt>
In-Reply-To
<20161017131529.27856-1-vascomalmeida@sapo.pt>
Mark permissions_advice for translation.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 credential-cache--daemon.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/credential-cache--daemon.c b/credential-cache--daemon.c
index 1e5f16a..46c5937 100644
--- a/credential-cache--daemon.c
+++ b/credential-cache--daemon.c
@@ -219,11 +219,11 @@ static void serve_cache(const char *socket_path, int debug)
 	close(fd);
 }
 
-static const char permissions_advice[] =
+static const char permissions_advice[] = N_(
 "The permissions on your socket directory are too loose; other\n"
 "users may be able to read your cached credentials. Consider running:\n"
 "\n"
-"	chmod 0700 %s";
+"	chmod 0700 %s");
 static void init_socket_directory(const char *path)
 {
 	struct stat st;
@@ -232,7 +232,7 @@ static void init_socket_directory(const char *path)
 
 	if (!stat(dir, &st)) {
 		if (st.st_mode & 077)
-			die(permissions_advice, dir);
+			die(_(permissions_advice), dir);
 	} else {
 		/*
 		 * We must be sure to create the directory with the correct mode,
-- 
2.10.1.459.g5fd885d
Previous: Vasco Almeida
Message 4 of 4 in “i18n: apply: mark error message for translation”
  1. 1/4 i18n: apply: mark error message for translationVasco Almeida, Oct 17, 2016
  2. 4/4 i18n: diff: mark warnings for translationVasco Almeida, Oct 17, 2016
  3. 2/4 i18n: convert mark error messages for translationVasco Almeida, Oct 17, 2016
  4. 3/4 i18n: credential-cache--daemon: mark advice for translationVasco Almeida, Oct 17, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.