mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-24 11:45:27 +01:00
1ec5de9534
ebuild.sh/buildme update
17 lines
520 B
Bash
Executable File
17 lines
520 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ ! -d "po" ]];then
|
|
echo "There no 'po' directory in the current directory !" >&2
|
|
exit 1
|
|
fi
|
|
|
|
for pofile in po/*.po; do
|
|
echo $pofile
|
|
lang=${pofile##*/}
|
|
lang=${lang%.*}
|
|
gsed -i 's/; charset=CHARSET/; charset=UTF-8/g' $pofile
|
|
gsed -i 's/^\"Project-Id-Version: PACKAGE VERSION/\"Project-Id-Version: Clover 2.5/' $pofile
|
|
gsed -i "s/^\"Language:.*\"/\"Language: $lang\\\n\"/" $pofile
|
|
gsed -i "s/^\"Language-Team:.*\"/\"Language-Team: $lang <$lang@li.org>\\\n\"/" $pofile
|
|
done
|