6 Commits

Author SHA1 Message Date
TheWhiteDog9487 8ad6c731ff debian软件包名都不一样怎么能用呢? 2023-01-17 12:09:06 +08:00
TheWhiteDog9487 76c5a2712f 搞定 2023-01-17 12:04:58 +08:00
TheWhiteDog9487 c771f6a63f 搞定 2023-01-17 12:03:30 +08:00
TheWhiteDog9487 94aa2f68b9 继续修复Bug,换个新方法 2023-01-17 11:55:19 +08:00
TheWhiteDog9487 749efe4f69 修复22.04不工作的问题 2022-09-22 09:48:41 +08:00
TheWhiteDog9487 f8b56f1d0d 在Ubuntu 20.04 LTS上采用静态编译 2022-03-19 19:09:47 +08:00
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# 一键切换Ubuntu系统到简体中文 # 一键切换Ubuntu系统到简体中文
## 这个程序有且仅在Ubuntu系统上测试过,18.04及以上应该都不会有问题,非Debian系列应该都用不了 ## 这个程序有且仅在Ubuntu系统上测试过,18.04及以上应该都不会有问题
*** ***
BIN
View File
Binary file not shown.
+3 -2
View File
@@ -22,8 +22,9 @@ int main(){
system("apt install -y language-pack-zh-hans"); system("apt install -y language-pack-zh-hans");
system("locale-gen zh_CN.UTF-8"); system("locale-gen zh_CN.UTF-8");
system("mv /etc/default/locale /etc/default/locale.backup"); system("mv /etc/default/locale /etc/default/locale.backup");
system("touch /etc/default/locale"); system("wget https://raw.githubusercontent.com/TheWhiteDog9487/ubuntu-language-onekey-zh_cn/main/locale");
system("echo LANG=\"zh_CN.UTF-8\" > /etc/default/locale"); system("mv locale /etc/default/locale");
system("chmod 644 /etc/default/locale");
cout << "原/etc/default/locale已经备份为/etc/default/locale.backup" << endl; cout << "原/etc/default/locale已经备份为/etc/default/locale.backup" << endl;
cout << "即将重启以应用语言设置,请保存您未完成的工作以防数据丢失" << endl; cout << "即将重启以应用语言设置,请保存您未完成的工作以防数据丢失" << endl;
cout << "输入y或者yes重启或者按Ctrl+C终止本程序" << endl; cout << "输入y或者yes重启或者按Ctrl+C终止本程序" << endl;
+12
View File
@@ -0,0 +1,12 @@
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8