mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
fix syntax in Loops 'FOR' into func.sh and .bashrc
This commit is contained in:
parent
baf0646523
commit
21cf5ef9bc
@ -26,7 +26,7 @@ if [ -f ${BOOTLOADER_PATH}/.locale ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /opt/arpl/lang ]; then
|
if [ -d /opt/arpl/lang ]; then
|
||||||
for F in "`ls /opt/arpl/lang/*.mo`"
|
for F in `ls /opt/arpl/lang/*.mo`
|
||||||
do
|
do
|
||||||
install "${F}" "/usr/share/locale/$(basename $F .mo)/LC_MESSAGES/arpl.mo"
|
install "${F}" "/usr/share/locale/$(basename $F .mo)/LC_MESSAGES/arpl.mo"
|
||||||
done
|
done
|
||||||
|
@ -13,7 +13,7 @@ function convertpo2mo() {
|
|||||||
echo "Convert po2mo begin"
|
echo "Convert po2mo begin"
|
||||||
local DEST_PATH="${1:-lang}"
|
local DEST_PATH="${1:-lang}"
|
||||||
if [ `find ${DEST_PATH}/ -name "*.po" | wc -l` -gt 0 ]; then
|
if [ `find ${DEST_PATH}/ -name "*.po" | wc -l` -gt 0 ]; then
|
||||||
for P in "`ls ${DEST_PATH}/*.po`"
|
for P in `ls ${DEST_PATH}/*.po`
|
||||||
do
|
do
|
||||||
# Use msgfmt command to compile the .po file into a binary .mo file
|
# Use msgfmt command to compile the .po file into a binary .mo file
|
||||||
echo "msgfmt ${P} to ${P/.po/.mo}"
|
echo "msgfmt ${P} to ${P/.po/.mo}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user