forked from playsms/playsms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAJOR: added 4th step in language translation that is to merge all po…
… files and put them in storage then compile new mo files, seems to fix most translation issues
- Loading branch information
1 parent
c4eead1
commit e5d8948
Showing
70 changed files
with
39,177 additions
and
181 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
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
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,41 @@ | ||
#!/bin/bash | ||
|
||
PLAYSMS=$1 | ||
|
||
if [ -z "$PLAYSMS" ]; then | ||
echo "Usage: $0 <playSMS installation path>" | ||
exit 1 | ||
fi | ||
|
||
CWD=$(pwd) | ||
|
||
cd $PLAYSMS/plugin | ||
|
||
for j in `ls -1 "$PLAYSMS/plugin/language/" | grep '_'` ; do | ||
mkdir -p "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES" | ||
touch "$PLAYSMS/storage/plugin/index.html" | ||
touch "$PLAYSMS/storage/plugin/language/index.html" | ||
touch "$PLAYSMS/storage/plugin/language/$j/index.html" | ||
touch "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/index.html" | ||
touch "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/messages.po" | ||
rm "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/.po_files" >/dev/null 2>&1 | ||
touch "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/.po_files" | ||
done | ||
|
||
find . -type d -name "language" | sed -e "s/\/[^\/]*$//" > /tmp/.lang_folders | ||
for i in `cat /tmp/.lang_folders` ; do | ||
for j in `ls -1 "$i/language/" | grep '_'` ; do | ||
echo "$i/language/$j/LC_MESSAGES/messages.po " >> "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/.po_files" | ||
done | ||
done | ||
|
||
for j in `ls -1 "$PLAYSMS/plugin/language/" | grep '_'` ; do | ||
PO_FILES=`cat "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/.po_files"` | ||
msgcat --force-po --use-first --lang $j -t UTF-8 -s -o "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/messages.po" $PO_FILES | ||
msgfmt -vv "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/messages.po" -o "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/messages.mo" | ||
rm -f "$PLAYSMS/storage/plugin/language/$j/LC_MESSAGES/.po_files" >/dev/null 2>&1 | ||
done | ||
|
||
cd $CWD | ||
|
||
exit 0 |
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
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
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
75 changes: 0 additions & 75 deletions
75
web/plugin/core/gateway/language/nb_NO/en_US/LC_MESSAGES/messages.po
This file was deleted.
Oops, something went wrong.
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
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
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.