i18n: git-commit whence_s "merge/cherry-pick" message
PATCH 1/1 i18n: git-commit whence_s "merge/cherry-pick" message
Mark the "merge/cherry-pick" messages in whence_s for translation. These messages returned from whence_s function are used as argument to build other messages.
Signed-off-by Jiang Xin <[email protected]>
--- builtin/commit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
builtin/commit.c +2 -2
@@ -202,10 +202,10 @@ static const char *whence_s(void)case FROM_COMMIT :break ;case FROM_MERGE : - s ="merge" ; + s =_ ("merge" );break ;case FROM_CHERRY_PICK : - s ="cherry-pick" ; + s =_ ("cherry-pick" );break ; }
Signature · 1 line
1.7.9.3.g1fbd7
Quoted 15 lines · Jiang Xin
Mark the "merge/cherry-pick" messages in
whence_sfor translation. These messages returned fromwhence_sfunction are used as argument to build other messages.Signed-off-by Jiang Xin <[email protected]>--- builtin/commit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)builtin/commit.c +0
-0@@ -202,10 +202,10 @@ static const char *whence_s(void)case FROM_COMMIT :
builtin/commit.c static const char *whence_s(void) · line 210
Quoted 10 lines
builtin/commit.c +2
-2break ;case FROM_MERGE : - s ="merge" ; + s =_ ("merge" );break ;case FROM_CHERRY_PICK : - s ="cherry-pick" ; + s =_ ("cherry-pick" );break ; }
builtin/commit.c: In function 'whence_s':builtin/commit.c:206: error: assignment discards qualifiers from pointer target type builtin/commit.c:209: error: assignment discards qualifiers from pointer target type
I'll squash the following in. Thanks.
builtin/commit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
builtin/commit.c +1 -1
@@ -196,7 +196,7 @@ static void determine_whence(struct wt_status *s)static const char *whence_s (void ) { -char *s ="" ; +const char *s ="" ;switch (whence) {case FROM_COMMIT :