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

[PATCH 46/66] i18n: remote: mark parseopt strings for translation

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Aug 20, 2012, 12:32 UTC
Message-ID
<1345465975-16927-47-git-send-email-pclouds@gmail.com>
In-Reply-To
<1345465975-16927-1-git-send-email-pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 builtin/remote.c | 84 ++++++++++++++++++++++++++++----------------------------
 1 file changed, 42 insertions(+), 42 deletions(-)
diff --git a/builtin/remote.c b/builtin/remote.c
index 920262d..8a670d8 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -8,66 +8,66 @@
 #include "refs.h"
 
 static const char * const builtin_remote_usage[] = {
-	"git remote [-v | --verbose]",
-	"git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>",
-	"git remote rename <old> <new>",
-	"git remote rm <name>",
-	"git remote set-head <name> (-a | -d | <branch>)",
-	"git remote [-v | --verbose] show [-n] <name>",
-	"git remote prune [-n | --dry-run] <name>",
-	"git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]",
-	"git remote set-branches [--add] <name> <branch>...",
-	"git remote set-url [--push] <name> <newurl> [<oldurl>]",
-	"git remote set-url --add <name> <newurl>",
-	"git remote set-url --delete <name> <url>",
+	N_("git remote [-v | --verbose]"),
+	N_("git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>"),
+	N_("git remote rename <old> <new>"),
+	N_("git remote rm <name>"),
+	N_("git remote set-head <name> (-a | -d | <branch>)"),
+	N_("git remote [-v | --verbose] show [-n] <name>"),
+	N_("git remote prune [-n | --dry-run] <name>"),
+	N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
+	N_("git remote set-branches [--add] <name> <branch>..."),
+	N_("git remote set-url [--push] <name> <newurl> [<oldurl>]"),
+	N_("git remote set-url --add <name> <newurl>"),
+	N_("git remote set-url --delete <name> <url>"),
 	NULL
 };
 
 static const char * const builtin_remote_add_usage[] = {
-	"git remote add [<options>] <name> <url>",
+	N_("git remote add [<options>] <name> <url>"),
 	NULL
 };
 
 static const char * const builtin_remote_rename_usage[] = {
-	"git remote rename <old> <new>",
+	N_("git remote rename <old> <new>"),
 	NULL
 };
 
 static const char * const builtin_remote_rm_usage[] = {
-	"git remote rm <name>",
+	N_("git remote rm <name>"),
 	NULL
 };
 
 static const char * const builtin_remote_sethead_usage[] = {
-	"git remote set-head <name> (-a | -d | <branch>])",
+	N_("git remote set-head <name> (-a | -d | <branch>])"),
 	NULL
 };
 
 static const char * const builtin_remote_setbranches_usage[] = {
-	"git remote set-branches <name> <branch>...",
-	"git remote set-branches --add <name> <branch>...",
+	N_("git remote set-branches <name> <branch>..."),
+	N_("git remote set-branches --add <name> <branch>..."),
 	NULL
 };
 
 static const char * const builtin_remote_show_usage[] = {
-	"git remote show [<options>] <name>",
+	N_("git remote show [<options>] <name>"),
 	NULL
 };
 
 static const char * const builtin_remote_prune_usage[] = {
-	"git remote prune [<options>] <name>",
+	N_("git remote prune [<options>] <name>"),
 	NULL
 };
 
 static const char * const builtin_remote_update_usage[] = {
-	"git remote update [<options>] [<group> | <remote>]...",
+	N_("git remote update [<options>] [<group> | <remote>]..."),
 	NULL
 };
 
 static const char * const builtin_remote_seturl_usage[] = {
-	"git remote set-url [--push] <name> <newurl> [<oldurl>]",
-	"git remote set-url --add <name> <newurl>",
-	"git remote set-url --delete <name> <url>",
+	N_("git remote set-url [--push] <name> <newurl> [<oldurl>]"),
+	N_("git remote set-url --add <name> <newurl>"),
+	N_("git remote set-url --delete <name> <url>"),
 	NULL
 };
 
@@ -160,17 +160,17 @@ static int add(int argc, const char **argv)
 	int i;
 
 	struct option options[] = {
-		OPT_BOOLEAN('f', "fetch", &fetch, "fetch the remote branches"),
+		OPT_BOOLEAN('f', "fetch", &fetch, N_("fetch the remote branches")),
 		OPT_SET_INT(0, "tags", &fetch_tags,
-			    "import all tags and associated objects when fetching",
+			    N_("import all tags and associated objects when fetching"),
 			    TAGS_SET),
 		OPT_SET_INT(0, NULL, &fetch_tags,
-			    "or do not fetch any tag at all (--no-tags)", TAGS_UNSET),
-		OPT_STRING_LIST('t', "track", &track, "branch",
-				"branch(es) to track"),
-		OPT_STRING('m', "master", &master, "branch", "master branch"),
-		{ OPTION_CALLBACK, 0, "mirror", &mirror, "push|fetch",
-			"set up remote as a mirror to push to or fetch from",
+			    N_("or do not fetch any tag at all (--no-tags)"), TAGS_UNSET),
+		OPT_STRING_LIST('t', "track", &track, N_("branch"),
+				N_("branch(es) to track")),
+		OPT_STRING('m', "master", &master, N_("branch"), N_("master branch")),
+		{ OPTION_CALLBACK, 0, "mirror", &mirror, N_("push|fetch"),
+			N_("set up remote as a mirror to push to or fetch from"),
 			PARSE_OPT_OPTARG, parse_mirror_opt },
 		OPT_END()
 	};
@@ -1088,7 +1088,7 @@ static int show(int argc, const char **argv)
 {
 	int no_query = 0, result = 0, query_flag = 0;
 	struct option options[] = {
-		OPT_BOOLEAN('n', NULL, &no_query, "do not query remotes"),
+		OPT_BOOLEAN('n', NULL, &no_query, N_("do not query remotes")),
 		OPT_END()
 	};
 	struct ref_states states;
@@ -1196,9 +1196,9 @@ static int set_head(int argc, const char **argv)
 
 	struct option options[] = {
 		OPT_BOOLEAN('a', "auto", &opt_a,
-			    "set refs/remotes/<name>/HEAD according to remote"),
+			    N_("set refs/remotes/<name>/HEAD according to remote")),
 		OPT_BOOLEAN('d', "delete", &opt_d,
-			    "delete refs/remotes/<name>/HEAD"),
+			    N_("delete refs/remotes/<name>/HEAD")),
 		OPT_END()
 	};
 	argc = parse_options(argc, argv, NULL, options, builtin_remote_sethead_usage,
@@ -1250,7 +1250,7 @@ static int prune(int argc, const char **argv)
 {
 	int dry_run = 0, result = 0;
 	struct option options[] = {
-		OPT__DRY_RUN(&dry_run, "dry run"),
+		OPT__DRY_RUN(&dry_run, N_("dry run")),
 		OPT_END()
 	};
 
@@ -1318,7 +1318,7 @@ static int update(int argc, const char **argv)
 	int i, prune = 0;
 	struct option options[] = {
 		OPT_BOOLEAN('p', "prune", &prune,
-			    "prune remotes after fetching"),
+			    N_("prune remotes after fetching")),
 		OPT_END()
 	};
 	const char **fetch_argv;
@@ -1404,7 +1404,7 @@ static int set_branches(int argc, const char **argv)
 {
 	int add_mode = 0;
 	struct option options[] = {
-		OPT_BOOLEAN('\0', "add", &add_mode, "add branch"),
+		OPT_BOOLEAN('\0', "add", &add_mode, N_("add branch")),
 		OPT_END()
 	};
 
@@ -1433,11 +1433,11 @@ static int set_url(int argc, const char **argv)
 	struct strbuf name_buf = STRBUF_INIT;
 	struct option options[] = {
 		OPT_BOOLEAN('\0', "push", &push_mode,
-			    "manipulate push URLs"),
+			    N_("manipulate push URLs")),
 		OPT_BOOLEAN('\0', "add", &add_mode,
-			    "add URL"),
+			    N_("add URL")),
 		OPT_BOOLEAN('\0', "delete", &delete_mode,
-			    "delete URLs"),
+			    N_("delete URLs")),
 		OPT_END()
 	};
 	argc = parse_options(argc, argv, NULL, options, builtin_remote_seturl_usage,
@@ -1566,7 +1566,7 @@ static int show_all(void)
 int cmd_remote(int argc, const char **argv, const char *prefix)
 {
 	struct option options[] = {
-		OPT__VERBOSE(&verbose, "be verbose; must be placed before a subcommand"),
+		OPT__VERBOSE(&verbose, N_("be verbose; must be placed before a subcommand")),
 		OPT_END()
 	};
 	int result;
-- 
1.7.12.rc2.18.g61b472e
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 47 of 69 in “parseopt i18n marking (again)”
  1. 00/66 parseopt i18n marking (again)Nguyễn Thái Ngọc Duy, Aug 20, 2012
  2. 01/66 i18n: mark "style" in OPT_COLUMN() for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  3. 02/66 i18n: archive: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  4. 03/66 i18n: add: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  5. 04/66 i18n: bisect--helper: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  6. 05/66 i18n: blame: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  7. 06/66 i18n: branch: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  8. 07/66 i18n: cat-file: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  9. 08/66 i18n: check-attr: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  10. 09/66 i18n: checkout-index: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  11. 10/66 i18n: checkout: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  12. 11/66 i18n: cherry: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  13. 12/66 i18n: clean: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  14. 13/66 i18n: clone: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  15. 14/66 i18n: column: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  16. 15/66 i18n: commit: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  17. 16/66 i18n: config: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  18. 17/66 i18n: count-objects: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  19. 18/66 i18n: describe: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  20. 19/66 i18n: fast-export: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  21. 20/66 i18n: fetch: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  22. 21/66 i18n: fmt-merge-msg: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  23. 22/66 i18n: for-each-ref: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  24. 23/66 i18n: format-patch: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  25. 24/66 i18n: fsck: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  26. 25/66 i18n: gc: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  27. 26/66 i18n: grep: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  28. 27/66 i18n: hash-object: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  29. 28/66 i18n: help: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  30. 29/66 i18n: init-db: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  31. 30/66 i18n: log: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  32. 31/66 i18n: ls-files: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  33. 32/66 i18n: ls-tree: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  34. 33/66 i18n: merge-base: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  35. 34/66 i18n: merge-file: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  36. 35/66 i18n: merge: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  37. 36/66 i18n: mktree: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  38. 37/66 i18n: mv: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  39. 38/66 i18n: name-rev: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  40. 39/66 i18n: notes: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  41. 40/66 i18n: pack-objects: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  42. 41/66 i18n: pack-refs: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  43. 42/66 i18n: prune-packed: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  44. 43/66 i18n: prune: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  45. 44/66 i18n: push: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  46. 45/66 i18n: read-tree: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  47. 46/66 i18n: remote: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  48. 47/66 i18n: replace: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  49. 48/66 i18n: status: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  50. 49/66 i18n: rerere: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  51. 50/66 i18n: reset: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  52. 51/66 i18n: rev-parse: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  53. 52/66 i18n: revert, cherry-pick: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  54. 53/66 i18n: rm: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  55. 54/66 i18n: shortlog: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  56. 55/66 i18n: show-branch: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  57. 56/66 i18n: show-ref: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  58. 57/66 i18n: symbolic-ref: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  59. 58/66 i18n: tag: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  60. 59/66 i18n: update-index: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  61. 60/66 i18n: update-ref: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  62. 61/66 i18n: update-server-info: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  63. 62/66 i18n: verify-pack: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  64. 63/66 i18n: verify-tag: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  65. 64/66 i18n: write-tree: mark parseopt strings for translationNguyễn Thái Ngọc Duy, Aug 20, 2012
  66. 65/66 Reduce translations by using same terminologiesNguyễn Thái Ngọc Duy, Aug 20, 2012
  67. 66/66 Use imperative form in help usage to describe an actionNguyễn Thái Ngọc Duy, Aug 20, 2012
  68. Drew NorthupAug 22, 2012
  69. Junio C HamanoAug 20, 2012

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.