Changes

From SME Server
Jump to navigationJump to search
170 bytes added ,  16:59, 3 February 2008
Line 93: Line 93:  
   echo "Not enough parameters provided."
 
   echo "Not enough parameters provided."
 
   echo "Usage: $0 LexiconFilename"
 
   echo "Usage: $0 LexiconFilename"
  echo ""
  −
  echo "Optional: tail end of file"
  −
  echo "Usage: $0 filename check"
  −
  echo ""
   
  }
 
  }
 
   
 
   
Line 121: Line 117:  
   
 
   
 
   mv $1.bak $1
 
   mv $1.bak $1
 +
 +
  A=`cat $1 |grep entry |wc -l`
 +
  C=`expr $A / 2`
 +
  B=`cat $1.po |grep msgid |wc -l`
 +
  D=`expr $B - 1`
 +
  E=`expr $B - $C`
 +
  echo "entries $C, msgid $D"
 
   
 
   
   if  [ ${#2} -gt ]
+
   if  [ $E -gt 1 ]
 
   then
 
   then
    #echo "#tail $1.po"
+
    echo "Errors in formatting"
    tail $1.po
+
    tail $1.po
 
   fi
 
   fi
 
   
 
   
 +
  if  [ $E -lt 1 ]
 +
  then
 +
    echo "Errors or duplicate <trans> value"
 +
    tail $1.po
 +
  fi
 +
 
 
   else
 
   else
 
   #print usage informamtion  
 
   #print usage informamtion  

Navigation menu