-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
14,024 additions
and
22,410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /bin/bash | ||
|
||
#copy potFile | ||
cp en_GB.pot en_GB.po | ||
echo "en_GB.po created" | ||
#remove header | ||
sed -i '' -e '1,17d' en_GB.po | ||
#remove msgctxt | ||
sed -i '' -e 's/msgctxt.*//g' en_GB.po | ||
#remove msgstr | ||
sed -i '' -e 's/msgstr.*//g' en_GB.po | ||
#remove comments | ||
sed -i '' -e 's/#.*//g' en_GB.po | ||
#remove empty lines | ||
sed -i '' -e '/^$/d' en_GB.po | ||
#create array of file names | ||
files=($(ls -1 *.po)) | ||
#for each file in files | ||
for file in "${files[@]}" | ||
do | ||
#copy file to temp-file | ||
cp $file temp.po | ||
#remove header | ||
sed -i '' -e '1,17d' temp.po | ||
#remove msgctxt | ||
sed -i '' -e 's/msgctxt.*//g' temp.po | ||
#remove msgstr | ||
sed -i '' -e 's/msgstr.*//g' temp.po | ||
#remove comments | ||
sed -i '' -e 's/#.*//g' temp.po | ||
#remove empty lines | ||
sed -i '' -e '/^$/d' temp.po | ||
#diff en_GB.po with all other files | ||
diff en_GB.po temp.po > $file.diff | ||
#remove temp-file | ||
rm temp.po | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.