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

[PATCH v4 35/38] i18n: submodule: join strings marked for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Jun 7, 2016, 12:55 UTC
Message-ID
<1465304141-9392-6-git-send-email-vascomalmeida@sapo.pt>
In-Reply-To
<1465300357-7557-1-git-send-email-vascomalmeida@sapo.pt>

Join strings marked for translation since that would facilitate and improve translations result.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 git-submodule.sh | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/git-submodule.sh b/git-submodule.sh
index 5b9674a..f72b237 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -239,14 +239,15 @@ Use -f if you really want to add it." >&2
 		then
 			if test -z "$force"
 			then
-				echo >&2 "$(eval_gettext "A git directory for '\$sm_name' is found locally with remote(s):")"
+				eval_gettextln >&2 "A git directory for '\$sm_name' is found locally with remote(s):"
 				GIT_DIR=".git/modules/$sm_name" GIT_WORK_TREE=. git remote -v | grep '(fetch)' | sed -e s,^,"  ", -e s,' (fetch)',, >&2
-				echo >&2 "$(eval_gettext "If you want to reuse this local git directory instead of cloning again from")"
-				echo >&2 "  $realrepo"
-				echo >&2 "$(eval_gettext "use the '--force' option. If the local git directory is not the correct repo")"
-				die "$(eval_gettext "or you are unsure what this means choose another name with the '--name' option.")"
+				die "$(eval_gettextln "\
+If you want to reuse this local git directory instead of cloning again from
+  \$realrepo
+use the '--force' option. If the local git directory is not the correct repo
+or you are unsure what this means choose another name with the '--name' option.")"
 			else
-				echo "$(eval_gettext "Reactivating local git directory for submodule '\$sm_name'.")"
+				eval_gettextln "Reactivating local git directory for submodule '\$sm_name'."
 			fi
 		fi
 		git submodule--helper clone ${GIT_QUIET:+--quiet} --prefix "$wt_prefix" --path "$sm_path" --name "$sm_name" --url "$realrepo" ${reference:+"$reference"} ${depth:+"$depth"} || exit
@@ -437,8 +438,9 @@ cmd_deinit()
 			# Protect submodules containing a .git directory
 			if test -d "$sm_path/.git"
 			then
-				echo >&2 "$(eval_gettext "Submodule work tree '\$displaypath' contains a .git directory")"
-				die "$(eval_gettext "(use 'rm -rf' if you really want to remove it including all of its history)")"
+				die "$(eval_gettext "\
+Submodule work tree '\$displaypath' contains a .git directory
+(use 'rm -rf' if you really want to remove it including all of its history)")"
 			fi
 
 			if test -z "$force"
-- 
2.7.3
Previous: Vasco AlmeidaNext: Vasco Almeida
Message 38 of 43 in “i18n and test updates”
  1. 00/38 i18n and test updatesVasco Almeida, Jun 7, 2016
  2. 01/38 i18n: builtin/remote.c: fix mark for translationVasco Almeida, Jun 7, 2016
  3. 02/38 i18n: advice: mark string about detached head for translationVasco Almeida, Jun 7, 2016
  4. 03/38 i18n: advice: internationalize message for conflictsVasco Almeida, Jun 7, 2016
  5. 04/38 i18n: transport: mark strings for translationVasco Almeida, Jun 7, 2016
  6. 05/38 i18n: sequencer: mark entire sentences for translationVasco Almeida, Jun 7, 2016
  7. 06/38 i18n: sequencer: mark string for translationVasco Almeida, Jun 7, 2016
  8. 07/38 i18n: merge-octopus: mark messages for translationVasco Almeida, Jun 7, 2016
  9. 08/38 merge-octupus: use die shell function from git-sh-setup.shVasco Almeida, Jun 7, 2016
  10. 09/38 i18n: rebase: fix marked string to use eval_gettext variantVasco Almeida, Jun 7, 2016
  11. 10/38 i18n: rebase: mark placeholder for translationVasco Almeida, Jun 7, 2016
  12. 11/38 i18n: bisect: simplify error message for i18nVasco Almeida, Jun 7, 2016
  13. 12/38 t6030: update to use test_i18ncmpVasco Almeida, Jun 7, 2016
  14. 13/38 i18n: git-sh-setup.sh: mark strings for translationVasco Almeida, Jun 7, 2016
  15. 14/38 i18n: rebase-interactive: mark strings for translationVasco Almeida, Jun 7, 2016
  16. 15/38 i18n: rebase-interactive: mark here-doc strings for translationVasco Almeida, Jun 7, 2016
  17. 16/38 i18n: rebase-interactive: mark comments of squash for translationVasco Almeida, Jun 7, 2016
  18. 17/38 i18n: setup: mark strings for translationVasco Almeida, Jun 7, 2016
  19. 18/38 tests: use test_i18n* functions to suppress false positivesVasco Almeida, Jun 7, 2016
  20. 19/38 tests: unpack-trees: update to use test_i18n* functionsVasco Almeida, Jun 7, 2016
  21. 20/38 t9003: become resilient to GETTEXT_POISONVasco Almeida, Jun 7, 2016
  22. 21/38 t4153: fix negated test_i18ngrep callVasco Almeida, Jun 7, 2016
  23. 22/38 t5523: use test_i18ngrep for negationVasco Almeida, Jun 7, 2016
  24. 23/38 i18n: bisect: mark strings for translationVasco Almeida, Jun 7, 2016
  25. 24/38 i18n: transport-helper.c: change N_() call to _()Vasco Almeida, Jun 7, 2016
  26. 25/38 i18n: notes: mark strings for translationVasco Almeida, Jun 7, 2016
  27. 26/38 i18n: notes: mark options for translationVasco Almeida, Jun 7, 2016
  28. 27/38 i18n: config: unfold error messages marked for translationVasco Almeida, Jun 7, 2016
  29. Junio C HamanoJun 7, 2016
  30. 28/38 i18n: merge: mark messages for translationVasco Almeida, Jun 7, 2016
  31. 29/38 i18n: merge: change command option help to lowercaseVasco Almeida, Jun 7, 2016
  32. 30/38 i18n: sequencer: add period to error messageVasco Almeida, Jun 7, 2016
  33. 31/38 i18n: standardise messagesVasco Almeida, Jun 7, 2016
  34. 32/38 i18n: remote: mark URL fallback text for translationVasco Almeida, Jun 7, 2016
  35. 33/38 i18n: remote: allow translations to reorder messageVasco Almeida, Jun 7, 2016
  36. 34/38 i18n: init-db: join message piecesVasco Almeida, Jun 7, 2016
  37. Vasco AlmeidaJun 17, 2016
  38. 35/38 i18n: submodule: join strings marked for translationVasco Almeida, Jun 7, 2016
  39. 36/38 i18n: submodule: escape shell variables inside eval_gettextVasco Almeida, Jun 7, 2016
  40. 37/38 i18n: unmark die messages for translationVasco Almeida, Jun 7, 2016
  41. Junio C HamanoJun 7, 2016
  42. Pranit BauvaJun 8, 2016
  43. 38/38 i18n: branch: mark comment when editing branch description for translationVasco Almeida, Jun 7, 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.