Use better translation

This commit is contained in:
Aoran Zeng 2024-11-21 08:01:01 +08:00
parent 452dbf81e8
commit 5f8c0a6ff3
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 9 additions and 10 deletions

View File

@ -8,7 +8,7 @@
* | Happy Game <happygame10124@gmail.com> * | Happy Game <happygame10124@gmail.com>
* | * |
* Created On : <2023-08-29> * Created On : <2023-08-29>
* Last Modified : <2024-11-08> * Last Modified : <2024-11-21>
* *
* chsrc framework * chsrc framework
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
@ -91,7 +91,7 @@ chsrc_note2 (const char* str)
#define YesMark "✓" #define YesMark "✓"
#define NoMark "x" #define NoMark "x"
#define SemiYesMark "⍻" #define HalfYesMark "⍻"
/** /**
* @translation Done * @translation Done

View File

@ -19,12 +19,12 @@
* | czyt <czyt.go@gmail.com> * | czyt <czyt.go@gmail.com>
* | * |
* Created On : <2023-08-28> * Created On : <2023-08-28>
* Last Modified : <2024-11-04> * Last Modified : <2024-11-21>
* *
* chsrc: Change Source * chsrc: Change Source
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
#define Chsrc_Version "0.1.9.3" #define Chsrc_Version "0.1.9.3-dev"
#define Chsrc_Release_Date "2024/11/04" #define Chsrc_Release_Date "2024/11/04"
#define Chsrc_Banner_Version "v" Chsrc_Version "-" Chsrc_Release_Date #define Chsrc_Banner_Version "v" Chsrc_Version "-" Chsrc_Release_Date
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc" #define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
@ -364,7 +364,7 @@ cli_print_target_features (FeatInfo f, const char *input_target_name)
printf (" %s%s\n", bdgreen(YesMark), purple(locally_msg));br(); printf (" %s%s\n", bdgreen(YesMark), purple(locally_msg));br();
break; break;
case PartiallyCan: case PartiallyCan:
printf (" %s%s\n\n %s\n", bdgreen(SemiYesMark), purple(locally_msg), f.cap_locally_explain);br(); printf (" %s%s\n\n %s\n", bdgreen(HalfYesMark), purple(locally_msg), f.cap_locally_explain);br();
break; break;
default: default:
xy_unreach; xy_unreach;
@ -817,7 +817,7 @@ main (int argc, char const *argv[])
return 0; return 0;
} }
/* chsrc issue */ /* chsrc issue */
else if ( xy_streql (command, "issue") else if ( xy_streql (command, "issue")
|| xy_streql (command, "issues") || xy_streql (command, "issues")
|| xy_streql (command, "isue") || xy_streql (command, "isue")
@ -827,10 +827,9 @@ main (int argc, char const *argv[])
return 0; return 0;
} }
/* 不支持的命令 */
else else
{ {
char *msg1 = CliOpt_InEnglish ? "Unsupported command `" : "不支持的命令 "; char *msg1 = CliOpt_InEnglish ? "Unknown command `" : "不支持的命令 ";
char *msg2 = CliOpt_InEnglish ? "`. Use `chsrc help` to view usage" : ". 请使用 chsrc help 查看使用方式"; char *msg2 = CliOpt_InEnglish ? "`. Use `chsrc help` to view usage" : ". 请使用 chsrc help 查看使用方式";
chsrc_error (xy_strjoin (3, msg1, command, msg2)); chsrc_error (xy_strjoin (3, msg1, command, msg2));
return 1; return 1;
@ -839,8 +838,8 @@ main (int argc, char const *argv[])
not_matched: not_matched:
if (!matched) if (!matched)
{ {
char *msg = CliOpt_InEnglish ? "Unsupported target. " MSG_EN_USE_LIST_TARGETS char *msg = CliOpt_InEnglish ? "Unknown target. " MSG_EN_USE_LIST_TARGETS
: "暂不支持的换源目标。" MSG_CN_USE_LIST_TARGETS; : "暂不支持的换源目标。" MSG_CN_USE_LIST_TARGETS;
chsrc_error (msg); chsrc_error (msg);
return 1; return 1;
} }