mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-06 07:43:37 +08:00
Use better translation
This commit is contained in:
parent
452dbf81e8
commit
5f8c0a6ff3
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
@ -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,7 +838,7 @@ 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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user