forked from I2P_Developers/i2p.i2p
make windoz msg bundling suck less
This commit is contained in:
@ -18,6 +18,17 @@ then
|
||||
POUPDATE=1
|
||||
fi
|
||||
|
||||
# on windows, one must specify the path of commnad find
|
||||
# since windows has its own retarded version of find.
|
||||
if which find|grep -q -i windows ; then
|
||||
export PATH=.:/bin:/usr/local/bin:$PATH
|
||||
fi
|
||||
# Fast mode - update ondemond
|
||||
echo Placing a file named messages_{LangCode}.only in locale folder,
|
||||
echo will limit .po file update to the language specified by {LangCode}.
|
||||
LG2=$(find ../locale -iname messages_*.only|tail -1)
|
||||
[ LG2 ] && LG2=${LG2#../locale/messages_} && LG2=${LG2%.only}
|
||||
|
||||
# add ../java/ so the refs will work in the po file
|
||||
JPATHS="../java/src ../jsp/WEB-INF"
|
||||
for i in ../locale/messages_*.po
|
||||
@ -26,6 +37,11 @@ do
|
||||
LG=${i#../locale/messages_}
|
||||
LG=${LG%.po}
|
||||
|
||||
# skip, if specified
|
||||
if [ $LG2 ]; then
|
||||
[ $LG != $LG2 ] && continue || echo INFO: Language update is set to [$LG2] only.
|
||||
fi
|
||||
|
||||
if [ "$POUPDATE" = "1" ]
|
||||
then
|
||||
# make list of java files newer than the .po file
|
||||
|
Reference in New Issue
Block a user