Skip to contentSkip to conversation

merge: don't translate literal commands

PATCH In review Alex Henrie 3 participants 3 messages May 15, 2021 – May 17, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 merge: don't translate literal commands

These strings have not been modified in any translation, nor should they be.

---
 builtin/merge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/merge.c +2 -2
index eddb8ae70d..a8a843b1f5 100644
@@ -56,8 +56,8 @@ struct strategy {
 
 static const char * const builtin_merge_usage[] = {
 	N_("git merge [<options>] [<commit>...]"),
-	N_("git merge --abort"),
-	N_("git merge --continue"),
+	"git merge --abort",
+	"git merge --continue",
 	NULL
 };
 
Signature · 1 line
2.31.1
#1 lore raw
Quoted 7 lines · Alex Henrie

These strings have not been modified in any translation, nor should they be.

---
 builtin/merge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Looks correct.

I wish we could mark only parts of a single string for translation, so that we can just ask translaters to translate "options" and "commit", without having to teach them that "<>", "[]" and "..." must be left intact because they have specific meanings as notation (namely, "<>" are used to mark the words as placeholders, "[]" are used to mark optional parts, and "..." means zero or more repetitions).

Thanks.

Quoted 14 lines
builtin/merge.c +2 -2
index eddb8ae70d..a8a843b1f5 100644
@@ -56,8 +56,8 @@ struct strategy {
 
 static const char * const builtin_merge_usage[] = {
 	N_("git merge [<options>] [<commit>...]"),
-	N_("git merge --abort"),
-	N_("git merge --continue"),
+	"git merge --abort",
+	"git merge --continue",
 	NULL
 };
#2 lore raw
In reply to Alex Henrie
Quoted 13 lines · Alex Henrie

These strings have not been modified in any translation, nor should they be.

---
 builtin/merge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/merge.c +0 -0
index eddb8ae70d..a8a843b1f5 100644

builtin/merge.c struct strategy { · line 60

Quoted 7 lines
builtin/merge.c +2 -2
@@ -56,8 +56,8 @@ struct strategy {
 
 static const char * const builtin_merge_usage[] = {
 	N_("git merge [<options>] [<commit>...]"),
-	N_("git merge --abort"),
-	N_("git merge --continue"),
+	"git merge --abort",
+	"git merge --continue",

I just commented on your other patch wondering if there were other examples that needed update. I think these would be better suited to be grouped as a patch series that describes the effort to remove unnecessary translation as a unified whole.

Thanks,
-Stolee