This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Dutch translation by Vistaus
- Loading branch information
1 parent
c636b4b
commit e2f6778
Showing
3 changed files
with
367 additions
and
238 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 |
---|---|---|
|
@@ -14,3 +14,5 @@ release/*.run | |
.git | ||
.bzr | ||
*~ | ||
|
||
po-temp/ |
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,39 @@ | ||
#!/bin/bash | ||
|
||
backup=`pwd` | ||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
cd "$DIR" | ||
|
||
. ./BUILD_CONFIG | ||
|
||
languages="am ar az bg ca cs da de el en_GB es et eu fi fr he hi hr hu ia id is it ko lt nb ne nl pl pt pt_BR ro ru sk sr sv tr uk vi zh_CN" | ||
|
||
echo "" | ||
echo "==========================================================================" | ||
echo " Update PO files in po/ with translations placed in po-temp/" | ||
echo "==========================================================================" | ||
echo "" | ||
|
||
for lang in $languages; do | ||
if [ -e "po-temp/${app_name}-$lang.po" ]; then | ||
# remove headers in po-temp/*.po so that msgcat does not create malformed headers | ||
sed -i '/^#/d' po-temp/${app_name}-$lang.po | ||
msgcat -o po/${app_name}-$lang.po po-temp/${app_name}-$lang.po po/${app_name}-$lang.po | ||
sed -i '/#-#-#-#-#/d' po/${app_name}-$lang.po | ||
sed -i '/#, fuzzy/d' po/${app_name}-$lang.po | ||
fi | ||
done | ||
|
||
echo "" | ||
echo "==========================================================================" | ||
echo " Update PO files in po/ with latest POT file" | ||
echo "==========================================================================" | ||
echo "" | ||
|
||
for lang in $languages; do | ||
if [ -e "po-temp/${app_name}-$lang.po" ]; then | ||
msgmerge --update -v po/${app_name}-$lang.po ${app_name}.pot | ||
fi | ||
done | ||
|
||
cd "$backup" |
Oops, something went wrong.