mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
fix convertpo2mo
This commit is contained in:
parent
0efbb8a87d
commit
ffb044b0bf
@ -13,7 +13,7 @@ export TOKEN="${1}"
|
||||
function convertpo2mo() {
|
||||
echo "Convert po2mo begin"
|
||||
local DEST_PATH="${1:-lang}"
|
||||
for P in $(ls ${DEST_PATH}/*.po 2>/dev/null); do
|
||||
for P in $(ls ${DEST_PATH}/*/LC_MESSAGES/rr.po 2>/dev/null); do
|
||||
# Use msgfmt command to compile the .po file into a binary .mo file
|
||||
echo "msgfmt ${P} to ${P/.po/.mo}"
|
||||
msgfmt ${P} -o ${P/.po/.mo}
|
||||
|
Loading…
x
Reference in New Issue
Block a user