Changeset 145
- Timestamp:
- 03/31/2009 09:18:47 AM (3 years ago)
- Location:
- trunk/WordPress/plugin/transposh
- Files:
-
- 2 edited
-
build.sh (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/build.sh
r111 r145 15 15 fi 16 16 17 TMP_DIR="tmp" 18 TRANSPOSH_DIR=$TMP_DIR/transposh 17 TRANSPOSH_DIR=/tmp/transposh 19 18 20 19 echo "Building package for WordPress plugin version: $VERSION"; 21 20 22 21 #Cleanup tmp dir 23 rm -r $TMP_DIR 2>/dev/null 24 mkdir $TMP_DIR 22 rm -r $TRANSPOSH_DIR 2>/dev/null 25 23 mkdir $TRANSPOSH_DIR 26 echo "cleaned up $T MP_DIR directory"24 echo "cleaned up $TRANSPOSH_DIR directory" 27 25 echo 28 26 … … 30 28 #Add sub directories 31 29 # 32 for DIR in flags js; do30 for DIR in js css img; do 33 31 cp -r $DIR $TRANSPOSH_DIR 34 32 echo "added sub-directory $DIR" … … 37 35 38 36 # 37 #Create core directory 38 # 39 mkdir $TRANSPOSH_DIR/core 40 41 # 39 42 #Add non-php files 40 43 # 41 for FTYPE in csspng txt; do44 for FTYPE in png txt; do 42 45 cp *.$FTYPE $TRANSPOSH_DIR 43 46 echo "added $FTYPE files" … … 50 53 if [ "$DEBUG" != 'debug' ]; then 51 54 echo "Adding .php files (without logging)" 52 for file in `find . -maxdepth 1 -iname '*.php' -printf "%p "`; do53 sed "s/logger.*;//;s/require_once(\"logging.*//;s/<%VERSION%>/$VERSION/;" $file > $TRANSPOSH_DIR/$file54 echo "added $file"55 for file in `find . -maxdepth 2 -iname '*.php'`; do 56 sed "s/logger.*;//;s/require_once(\"core.logging.*//;s/require_once(\"logging.*//;s/<%VERSION%>/$VERSION/;" $file > $TRANSPOSH_DIR/$file 57 echo "added $file" 55 58 done; 56 59 else 57 60 echo "Adding .php files (with logging)" 58 cp *.php $TRANSPOSH_DIR 61 for file in `find . -maxdepth 2 -iname '*.php'`; do 62 cp $file > $TRANSPOSH_DIR/$file 63 echo "added $file" 64 done; 59 65 fi 60 66 echo … … 70 76 # 71 77 if [ "$DEBUG" != 'debug' ]; then 72 rm $TRANSPOSH_DIR/ logging.php78 rm $TRANSPOSH_DIR/core/logging.php 73 79 echo "removed logging.php" 74 80 else … … 78 84 79 85 # Remove .svn dirs 80 find tmp-name "*.svn*" -exec rm -rf {} 2>/dev/null \;86 find $TRANSPOSH_DIR -name "*.svn*" -exec rm -rf {} 2>/dev/null \; 81 87 echo "removed .svn dirs" 82 88 -
trunk/WordPress/plugin/transposh/readme.txt
r105 r145 71 71 harnessed to get your message out to more people. Future versions will give more focus on preventing spammers from defacing sites 72 72 73 = I have installed the plugin - automatic translation is on butnothing happens =73 = I have installed the plugin - nothing happens = 74 74 75 The current implementation of automatic translation only works for people that have a privilege for translation, if you have 76 enabled it for everyone (allowed anonymous translation) it will always work, Do remember that the results of translations 77 that were made in a higher privilege level will be shown to lower priviledge levels. 75 By default, automatic translation is on and it should be kicking in. If its off, and you don't have enough privileges 76 to translate, nothing will happen. 78 77 79 This comes from our view that auto-translation serves as a helper for real translation, at the future we might change this 80 behavior 78 If everything is setup correctly and still nothing happens, please contact us. 81 79 82 80 == Screenshots == … … 90 88 == Release notes == 91 89 92 * 2009/03/ 26- 0.1.290 * 2009/03/31 - 0.1.2 93 91 * Made sure our code passes w3c validation 94 92 * Added missing flags for two languages 93 * Auto translation should always work if set (even to non translators) 95 94 * 2009/03/24 - 0.1.1 96 95 * Fixed compatibility issues with other scripts (thanks [Eike](http://spotterblog.de/))
Note: See TracChangeset
for help on using the changeset viewer.
