Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F222854
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/bin/transifexpull.sh b/bin/transifexpull.sh
index d1497eaf4..45ef089a7 100755
--- a/bin/transifexpull.sh
+++ b/bin/transifexpull.sh
@@ -1,35 +1,35 @@
#!/bin/sh
# In 'translator' mode files will contain empty translated texts
# where translation is not available, we'll remove these later
-tx --debug pull -a --mode translator
+#tx --debug pull -a --mode translator
PWD=`dirname "$0"`
do_clean()
{
# do not cleanup en_US files
echo "$1" | grep -v en_US > /dev/null || return
echo "Cleaning $1"
# remove untranslated/empty texts
perl -pi -e "s/^\\\$labels\[[^]]+\]\s+=\s+'';\n//g" $1
perl -pi -e "s/^\\\$messages\[[^]]+\]\s+=\s+'';\n//g" $1
# remove (one-line) comments
- perl -pi -e "s/^\\/\\/[a-zA-Z0-9\s]+//g" $1
+ perl -pi -e "s/^\\/\\/.*//g" $1
# remove empty lines (but not in file header)
perl -ne 'print if ($. < 21 || length($_) > 1)' $1 > $1.tmp
mv $1.tmp $1
}
# clean up translation files
for file in $PWD/../program/localization/*/*.inc; do
do_clean $file
done
exit
for file in $PWD/../plugins/*/localization/*.inc; do
do_clean $file
done
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Feb 28, 11:46 PM (22 m, 13 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
165159
Default Alt Text
(1 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment