Skip to content

Commit 5b623a2

Browse files
committed
Upload file
1 parent fd9985c commit 5b623a2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pio/src/main/assets/home/etc/tool-tree.rc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ fi
6161

6262
# Tạo ngôn ngữ tự động
6363
if [ "$(glog language_kkts)" == 'auto' ];then
64-
sum_md5_kk="$(checksum $ETC/lang/vi.sh)"
64+
[ -f $ETC/lang/$LANGUAGE.sh ] && texgg="$LANGUAGE.sh" || texgg=vi.sh
65+
sum_md5_kk="$(checksum $ETC/lang/$texgg)"
6566
if [[ "$sum_md5_kk" != "$(glog sum_md5_kk)" ]] || [[ "$(grep -cm1 '=""' $ETC/lang/auto.sh)" == 1 ]] || [[ ! -f $ETC/lang/auto.sh ]];then
66-
source $ETC/lang/vi.sh
67+
source $ETC/lang/$texgg
6768
[ -f $ETC/lang/auto.sh ] && rm -fr $ETC/lang/auto.sh
68-
for vc in $(grep "=" $ETC/lang/vi.sh | cut -d= -f1); do
69+
for vc in $(grep "=" $ETC/lang/$texgg | cut -d= -f1); do
6970
(
7071
xfhtfvgf="$(echo "${!vc}" | trans $LANGUAGE-$COUNTRY)"
7172
echo "${vc}=\"${xfhtfvgf^}\" # ${!vc}" >>$ETC/lang/auto.sh

0 commit comments

Comments
 (0)