mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-20 18:05:08 +08:00
Use more intimate terms
This commit is contained in:
@@ -25,7 +25,7 @@ pl_clojure_setsrc (char *option)
|
||||
{
|
||||
chsrc_yield_source_and_confirm (pl_clojure);
|
||||
|
||||
chsrc_note2 ("抱歉,Clojure换源较复杂,您可手动查阅并换源:");
|
||||
chsrc_note2 ("抱歉,Clojure换源较复杂,可手动查阅并换源:");
|
||||
p(source.url);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Manual);
|
||||
|
@@ -82,7 +82,7 @@ pl_java_setsrc (char *option)
|
||||
"</mirror>");
|
||||
|
||||
char *maven_config = pl_java_find_maven_config ();
|
||||
chsrc_note2 (xy_strjoin (3, "请在您的 maven 配置文件 ", maven_config, " 中添加:"));
|
||||
chsrc_note2 (xy_strjoin (3, "请在 maven 配置文件 ", maven_config, " 中添加:"));
|
||||
println (file);
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ pl_java_setsrc (char *option)
|
||||
" }\n"
|
||||
"}");
|
||||
|
||||
chsrc_note2 ("请在您的 build.gradle 中添加:");
|
||||
chsrc_note2 ("请在 build.gradle 中添加:");
|
||||
p(file);
|
||||
}
|
||||
|
||||
|
@@ -35,11 +35,11 @@ pl_nodejs_bun_setsrc (char *option)
|
||||
|
||||
if (chsrc_in_local_mode())
|
||||
{
|
||||
chsrc_note2 ("请您手动写入以下内容到本项目根目录的 bunfig.toml 文件中");
|
||||
chsrc_note2 ("请手动写入以下内容到本项目根目录的 bunfig.toml 文件中");
|
||||
}
|
||||
else
|
||||
{
|
||||
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_normalize_path ("~/.bunfig.toml"), " 文件中"));
|
||||
chsrc_note2 (xy_strjoin (3, "请手动写入以下内容到 ", xy_normalize_path ("~/.bunfig.toml"), " 文件中"));
|
||||
}
|
||||
|
||||
p(file);
|
||||
|
@@ -67,7 +67,7 @@ pl_nodejs_group_setsrc (char *option)
|
||||
char *msg = ENGLISH ? "Three package managers will be replaced for you at the same time: "
|
||||
"npm, pnpm, yarn. If you need to change the source independently, "
|
||||
"please run independently `chsrc set <pkg-manager>`"
|
||||
: "将同时为您更换3个包管理器 npm, pnpm, Yarn 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
|
||||
: "将同时更换3个包管理器 npm, pnpm, Yarn 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
|
||||
chsrc_note2 (msg);
|
||||
}
|
||||
|
||||
|
@@ -32,7 +32,7 @@ def_sources_n(pl_nuget);
|
||||
void
|
||||
pl_nuget_getsrc (char *option)
|
||||
{
|
||||
chsrc_error ("暂时无法查看NuGet源,若有需求,请您提交issue");
|
||||
chsrc_error ("暂时无法查看NuGet源,若有需求,请提交issue");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ pl_nuget_getsrc (char *option)
|
||||
void
|
||||
pl_nuget_setsrc (char *option)
|
||||
{
|
||||
chsrc_error ("暂时无法为NuGet换源,若有需求,请您提交issue");
|
||||
chsrc_error ("暂时无法为NuGet换源,若有需求,请提交issue");
|
||||
}
|
||||
|
||||
|
||||
|
@@ -60,7 +60,7 @@ pl_perl_setsrc (char *option)
|
||||
"perl -MCPAN -e \"CPAN::HandleConfig->load(); CPAN::HandleConfig->edit('urllist', 'unshift', '", source.url, "'); CPAN::HandleConfig->commit()\"");
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
||||
chsrc_note2 ("请您使用 perl -v 以及 cpan -v,若 Perl >= v5.36 或 CPAN >= 2.29,请额外手动调用下面的命令");
|
||||
chsrc_note2 ("请使用 perl -v 以及 cpan -v,若 Perl >= v5.36 或 CPAN >= 2.29,请额外手动调用下面的命令");
|
||||
p("perl -MCPAN -e \"CPAN::HandleConfig->load(); CPAN::HandleConfig->edit('pushy_https', 0);; CPAN::HandleConfig->commit()\"");
|
||||
|
||||
chsrc_determine_chgtype (ChgType_SemiAuto);
|
||||
|
@@ -47,7 +47,7 @@ pl_python_setsrc (char *option)
|
||||
char *msg = ENGLISH ? "Three package managers will be replaced for you at the same time: "
|
||||
"pip, Poetry, PDM. If you need to change the source independently, "
|
||||
"please run independently `chsrc set <pkg-manager>`"
|
||||
: "将同时为您更换4个包管理器 pip, Poetry, PDM, uv 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
|
||||
: "将同时更换4个包管理器 pip, Poetry, PDM, uv 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
|
||||
chsrc_note2 (msg);
|
||||
}
|
||||
|
||||
|
@@ -47,7 +47,7 @@ pl_python_rye_setsrc (char *option)
|
||||
"url = \"", source.url, "\"");
|
||||
|
||||
char *rye_config = pl_python_find_rye_config ();
|
||||
chsrc_note2 (xy_strjoin (3, "请在您的 Rye 配置文件 ", rye_config, " 中添加:"));
|
||||
chsrc_note2 (xy_strjoin (3, "请在配置文件 ", rye_config, " 中添加:"));
|
||||
println (file);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Manual);
|
||||
|
@@ -91,7 +91,7 @@ pl_rust_cargo_setsrc (char *option)
|
||||
"[source.mirror]\n"
|
||||
"registry = \"sparse+", source.url, "\"");
|
||||
|
||||
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_normalize_path ("~/.cargo/config.toml"), " 文件中:"));
|
||||
chsrc_note2 (xy_strjoin (3, "请手动写入以下内容到 ", xy_normalize_path ("~/.cargo/config.toml"), " 文件中:"));
|
||||
p(file);
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Auto);
|
||||
|
@@ -96,7 +96,7 @@ pl_rust_rustup_setsrc (char *option)
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Auto);
|
||||
chsrc_conclude (&source);
|
||||
chsrc_note2 ("请您重启终端使rustup环境变量生效");
|
||||
chsrc_note2 ("请重启终端使rustup环境变量生效");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user