Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Talk:Pootle
(view source)
Revision as of 16:59, 3 February 2008
170 bytes added
,
16:59, 3 February 2008
→newpo
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
0
]
+
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
Snoble
Administrators
2,569
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search