Changeset 145


Ignore:
Timestamp:
03/31/2009 09:18:47 AM (3 years ago)
Author:
ofer
Message:

Updated build for new structure, prepping 0.1.2

Location:
trunk/WordPress/plugin/transposh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/build.sh

    r111 r145  
    1515fi 
    1616 
    17 TMP_DIR="tmp" 
    18 TRANSPOSH_DIR=$TMP_DIR/transposh 
     17TRANSPOSH_DIR=/tmp/transposh 
    1918 
    2019echo "Building package for WordPress plugin version: $VERSION"; 
    2120  
    2221#Cleanup tmp dir  
    23 rm -r $TMP_DIR 2>/dev/null 
    24 mkdir $TMP_DIR 
     22rm -r $TRANSPOSH_DIR 2>/dev/null 
    2523mkdir $TRANSPOSH_DIR 
    26 echo "cleaned up $TMP_DIR directory" 
     24echo "cleaned up $TRANSPOSH_DIR directory" 
    2725echo 
    2826 
     
    3028#Add sub directories 
    3129# 
    32 for DIR in flags js; do 
     30for DIR in js css img; do 
    3331  cp -r $DIR $TRANSPOSH_DIR 
    3432  echo "added sub-directory $DIR" 
     
    3735 
    3836# 
     37#Create core directory 
     38# 
     39mkdir $TRANSPOSH_DIR/core 
     40 
     41# 
    3942#Add non-php files  
    4043# 
    41 for FTYPE in css png txt; do 
     44for FTYPE in png txt; do 
    4245  cp *.$FTYPE $TRANSPOSH_DIR 
    4346  echo "added $FTYPE files" 
     
    5053if [ "$DEBUG" != 'debug' ]; then 
    5154  echo "Adding .php files (without logging)" 
    52   for file in `find . -maxdepth 1 -iname '*.php' -printf "%p "`; do  
    53   sed "s/logger.*;//;s/require_once(\"logging.*//;s/<%VERSION%>/$VERSION/;" $file > $TRANSPOSH_DIR/$file 
    54   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" 
    5558  done; 
    5659else 
    5760  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; 
    5965fi 
    6066echo 
     
    7076# 
    7177if [ "$DEBUG" != 'debug' ]; then 
    72   rm $TRANSPOSH_DIR/logging.php 
     78  rm $TRANSPOSH_DIR/core/logging.php 
    7379  echo "removed logging.php" 
    7480else 
     
    7884 
    7985# Remove .svn dirs 
    80 find tmp -name "*.svn*" -exec rm -rf {} 2>/dev/null \; 
     86find $TRANSPOSH_DIR -name "*.svn*" -exec rm -rf {} 2>/dev/null \; 
    8187echo "removed .svn dirs" 
    8288 
  • trunk/WordPress/plugin/transposh/readme.txt

    r105 r145  
    7171harnessed to get your message out to more people. Future versions will give more focus on preventing spammers from defacing sites 
    7272 
    73 = I have installed the plugin - automatic translation is on but nothing happens = 
     73= I have installed the plugin - nothing happens = 
    7474 
    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. 
     75By default, automatic translation is on and it should be kicking in. If its off, and you don't have enough privileges 
     76to translate, nothing will happen. 
    7877 
    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  
     78If everything is setup correctly and still nothing happens, please contact us. 
    8179 
    8280== Screenshots == 
     
    9088== Release notes == 
    9189 
    92 * 2009/03/26 - 0.1.2 
     90* 2009/03/31 - 0.1.2 
    9391 * Made sure our code passes w3c validation 
    9492 * Added missing flags for two languages 
     93 * Auto translation should always work if set (even to non translators) 
    9594* 2009/03/24 - 0.1.1 
    9695 * Fixed compatibility issues with other scripts (thanks [Eike](http://spotterblog.de/)) 
Note: See TracChangeset for help on using the changeset viewer.