update readme.md

This commit is contained in:
Ing 2023-04-17 03:25:29 +08:00
parent 6c821bfe14
commit a0c88a2dc6

View File

@ -50,19 +50,22 @@
## 翻译 ## 翻译
```shell * 其他语言的翻译:
sudo apt install gettext ```shell
git clone https://github.com/wjz304/arpl-i18n.git sudo apt install gettext
cd arpl-i18n/files/board/arpl/overlayfs/opt/arpl git clone https://github.com/wjz304/arpl-i18n.git
xgettext -L Shell --keyword=TEXT *.sh -o lang/arpl.pot cd arpl-i18n/files/board/arpl/overlayfs/opt/arpl
sed -i 's/charset=CHARSET/charset=UTF-8/' lang/arpl.pot # The above process has been completed. xgettext -L Shell --keyword=TEXT *.sh -o lang/arpl.pot
msginit -i lang/arpl.pot -l zh_CN.UTF-8 -o lang/zh_CN.po # Replace the language you need. sed -i 's/charset=CHARSET/charset=UTF-8/' lang/arpl.pot # The above process has been completed.
# translate the lang/zh_CN.po. msginit -i lang/arpl.pot -l zh_CN.UTF-8 -o lang/zh_CN.po # Replace the language you need.
msgfmt lang/zh_CN.po -o lang/zh_CN.mo # This process will be automatically processed during packaging. # translate the lang/zh_CN.po.
``` msgfmt lang/zh_CN.po -o lang/zh_CN.mo # This process will be automatically processed during packaging.
```
## 打赏一下 ## 打赏一下
<img src="https://raw.githubusercontent.com/wjz304/wjz304/master/my/20220908134226.jpg" width="400"> * > ### 作者: Ing QQ群: 21609194 QQ频道: 0pg8m22666
* <img src="https://raw.githubusercontent.com/wjz304/wjz304/master/my/20220908134226.jpg" width="400">