mod readme

This commit is contained in:
Ing 2023-04-30 04:01:42 +08:00
parent a63bd3f3f5
commit 98bb7626a2
3 changed files with 28 additions and 26 deletions

View File

@ -17,55 +17,57 @@
* other. * other.
## 说明 ## 说明 - Instructions
* ### [命令输入方法演示](https://www.bilibili.com/video/BV1T84y1P7Kq) https://www.bilibili.com/video/BV1T84y1P7Kq * ### [命令输入方法演示](https://www.bilibili.com/video/BV1T84y1P7Kq) https://www.bilibili.com/video/BV1T84y1P7Kq
* arpl各版本间切换(菜单更新, 增量): * arpl各版本间切换(菜单更新, 增量):
```shell ```shell
# shell 下输入以下命令修改更新 repo. # shell 下输入以下命令修改更新 repo.
# 如果要切换原版修改第二条命令中的 wjz304/arpl-i18n 为 fbelavenuto/arpl # 如果要切换原版修改第二条命令中的 wjz304/arpl-i18n 为 fbelavenuto/arpl
# 如果切换中文版修改第二条命令中的 wjz304/arpl-i18n 为 wjz304/arpl-zh_CN # 如果切换中文版修改第二条命令中的 wjz304/arpl-i18n 为 wjz304/arpl-zh_CN
# Enter the following command under the shell to modify and update repo
# If you want to switch the original version and modify wjz304/arpl-i18n to fbelavenuto/arpl in the second command.
# If you switch to the Chinese version and modify the wjz304/arpl-i18n to wjz304/arpl_zh_CN in the second command.
CURREPO=`grep "github.com.*update" menu.sh | sed -r 's/.*com\/(.*)\/releases.*/\1/'` CURREPO=`grep "github.com.*update" menu.sh | sed -r 's/.*com\/(.*)\/releases.*/\1/'`
sed -i "s|${CURREPO}|wjz304/arpl-i18n|g" /opt/arpl/menu.sh sed -i "s|${CURREPO}|wjz304/arpl-i18n|g" /opt/arpl/menu.sh
# 进入设置菜单执行更新arpl操作即可. # 进入设置菜单执行更新arpl操作即可. 更新后请重启.
# 更新后请重启. # Simply enter the main menu and perform the update arpl operation. Please restart after the update.
``` ```
* arpl各版本间切换(手动方式, 全量): * arpl各版本间切换(手动方式, 全量):
```shell ```shell
# shell 下下载需要的版本或者手动上传到/opt/arpl/下 # 在 shell 中下载需要的版本或者手动上传到/opt/arpl/下
curl -kL https://github.com/fbelavenuto/arpl/releases/download/v1.1-beta2a/arpl-1.1-beta2a.img.zip -o /opt/arpl/arpl.zip # Download the required version in the shell or manually upload it to/opt/arpl/
# 解压 curl -kL -o /opt/arpl/arpl.zip https://github.com/wjz304/arpl-i18n/releases/download/23.4.5/arpl-i18n-23.4.5.img.zip
unzip /opt/arpl/arpl.zip # 卸载挂载的引导盘
# 挂载 img # Uninstalling the mounted boot disk
LOOPX=`sudo losetup -f` umount /mnt/p1 /mnt/p2 /mnt/p3
losetup ${LOOPX} /opt/arpl/arpl.img # 解压 并写入到引导盘
# 复制 p1 p3 分区 # Decompress and write to the boot disk
mkdir -p /mnt/loop0p1; mount ${LOOPX}p1 /mnt/loop0p1; cp -rf /mnt/loop0p1/* /mnt/p1/; umount /mnt/loop0p1 unzip -p arpl.zip | dd of=`blkid | grep 'LABEL="ARPL3"' | cut -d3 -f1` bs=1M conv=fsync
mkdir -p /mnt/loop0p3; mount ${LOOPX}p3 /mnt/loop0p2; cp -rf /mnt/loop0p3/* /mnt/p3/; umount /mnt/loop0p3 # 重启 reboot
# 卸载 img
losetup -d ${LOOPX}
# 如果安装的版本中无你当前安装的DSM请尽量删除 /mnt/p1/user-config.yml, /mnt/p3/*-dsm, /mnt/p2/*
rm -rf /mnt/p1/user-config.yml /mnt/p3/*-dsm /mnt/p2/*
# 重启
reboot reboot
``` ```
## 翻译 ## 翻译 - Translation
* 其他语言的翻译: * 其他语言的翻译 - Language translation work:
```shell ```shell
# If it does not involve adding or deleting, the following process is not required.
sudo apt install gettext sudo apt install gettext
git clone https://github.com/wjz304/arpl-i18n.git git clone https://github.com/wjz304/arpl-i18n.git
cd arpl-i18n/files/board/arpl/overlayfs/opt/arpl cd arpl-i18n/files/board/arpl/overlayfs/opt/arpl
xgettext -L Shell --keyword=TEXT *.sh -o lang/arpl.pot xgettext -L Shell --keyword=TEXT *.sh -o lang/arpl.pot
sed -i 's/charset=CHARSET/charset=UTF-8/' lang/arpl.pot # The above process has been completed. sed -i 's/charset=CHARSET/charset=UTF-8/' lang/arpl.pot
msginit -i lang/arpl.pot -l zh_CN.UTF-8 -o lang/zh_CN.po # Replace the language you need. # You need to replace the language you need and translate the po file.
# translate the lang/zh_CN.po. msginit -i lang/arpl.pot -l zh_CN.UTF-8 -o lang/zh_CN.po
msgfmt lang/zh_CN.po -o lang/zh_CN.mo # This process will be automatically processed during packaging. # This process will be automatically processed during packaging.
msgfmt lang/zh_CN.po -o lang/zh_CN.mo
``` ```
## 一些使用教程 ## 教程 - Usage
* 中文: https://www.bilibili.com/video/BV1jk4y1Y7B7 * 中文: https://www.bilibili.com/video/BV1jk4y1Y7B7
##### `(From: http://mi-d.cn)` ##### `(From: http://mi-d.cn)`
* English: https://www.youtube.com/watch?v=mmwKCOiHGWA
##### `(From: @markstar6449)`
## 打赏一下 ## 打赏一下

View File

@ -577,7 +577,7 @@ msgstr "\\nDiskIdxMap:"
#: menu.sh:821 menu.sh:826 menu.sh:833 #: menu.sh:821 menu.sh:826 menu.sh:833
msgid "Format disk" msgid "Format disk"
msgstr "格式磁盘" msgstr "格式磁盘"
#: menu.sh:827 #: menu.sh:827
msgid "" msgid ""