From ad54a2d26f123e79077ec8a6a8d5f97f1f81344d Mon Sep 17 00:00:00 2001 From: lsy Date: Sat, 27 Jul 2024 16:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0,=E6=8D=A2=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Other.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Menus/Other.sh b/Menus/Other.sh index 7613f44..b83b723 100644 --- a/Menus/Other.sh +++ b/Menus/Other.sh @@ -42,19 +42,15 @@ case "$pick" in sudo sed -i 's/.*zh_CN.UTF-8.*/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen sudo sed -i "s/^LANG.*/LANG=zh_CN.UTF-8/g" /etc/default/locale sudo sed -i "s/^LC_ALL.*/LC_ALL=zh_CN.UTF-8/g" /etc/default/locale - source /etc/default/locale - sudo locale-gen - update-locale - echo "中文语言更换成功" ;; '2') sudo sed -i 's/.*en_US.UTF-8.*/en_US.UTF-8 UTF-8/g' /etc/locale.gen sudo sed -i "s/^LANG.*/LANG=en_US.UTF-8/g" /etc/default/locale sudo sed -i "s/^LC_ALL.*/LC_ALL=en_US.UTF-8/g" /etc/default/locale - source /etc/default/locale - sudo locale-gen - update-locale - echo "英文语言更换成功" ;; esac + sudo locale-gen + update-locale + source /etc/default/locale + echo "英文语言更换成功" esac \ No newline at end of file