Use new ProgMode

This commit is contained in:
Aoran Zeng
2025-07-11 11:24:29 +08:00
parent 5f8da597ff
commit 4b5aff7862
18 changed files with 158 additions and 156 deletions

View File

@@ -35,7 +35,7 @@ os_armbian_getsrc (char *option)
return;
}
char *msg = CliOpt_InEnglish ? "Source list config file missing! Path: " OS_Armbian_SourceList
char *msg = ENGLISH ? "Source list config file missing! Path: " OS_Armbian_SourceList
: "缺少源配置文件!路径:" OS_Armbian_SourceList;
chsrc_error2 (msg);
}

View File

@@ -53,7 +53,7 @@ os_debian_getsrc (char *option)
return;
}
char *msg = CliOpt_InEnglish ? "Source list file missing! However, you can still run `chsrc set debian` to add and use new sources"
char *msg = ENGLISH ? "Source list file missing! However, you can still run `chsrc set debian` to add and use new sources"
: "缺少源配置文件!但仍可直接通过 chsrc set debian 来添加使用新的源";
chsrc_error2 (msg);
return;

View File

@@ -52,7 +52,7 @@ os_ubuntu_getsrc (char *option)
return;
}
char *msg = CliOpt_InEnglish ? "Source list file missing! However, you can still run `chsrc set ubuntu` to add and use new sources"
char *msg = ENGLISH ? "Source list file missing! However, you can still run `chsrc set ubuntu` to add and use new sources"
: "缺少源配置文件!但仍可直接通过 chsrc set ubuntu 来添加使用新的源";
chsrc_error2 (msg);
return;
@@ -97,7 +97,7 @@ os_ubuntu_setsrc (char *option)
if (chsrc_check_file (OS_Ubuntu_SourceList_DEB822))
{
char *msg = CliOpt_InEnglish ? "Will change source based on new format"
char *msg = ENGLISH ? "Will change source based on new format"
: "将基于新格式(DEB822)换源";
chsrc_note2 (msg);
os_ubuntu_setsrc_for_deb822 (option);

View File

@@ -62,7 +62,7 @@ ensure_debian_or_ubuntu_old_sourcelist (int debian_type)
}
else
{
char *msg = CliOpt_InEnglish ? "Will generate a new source list file"
char *msg = ENGLISH ? "Will generate a new source list file"
: "将生成新的源配置文件";
chsrc_note2 (msg);
}
@@ -123,7 +123,7 @@ ensure_debian_or_ubuntu_old_sourcelist (int debian_type)
}
else
{
char *msg = CliOpt_InEnglish ? "Your Debian version is too low (<10) for chsrc to support"
char *msg = ENGLISH ? "Your Debian version is too low (<10) for chsrc to support"
: "您的 Debian 版本过低 (<10),暂不支持换源";
chsrc_error (msg);
exit (Exit_Unsupported);