2006/12/19, F Wolff <[EMAIL PROTECTED]>:
> Hmm, the script is still not attached... Please let us know if the
> mailinglist is removing your attachment, but perhaps it was your error?
I did attach it the second time; I'll attach it inline this time.
> The gnome 2.16 project on the server was prepared by Vladimer Sichinava
> from the Georgian team.
Vladimer, would you please tell me how did you do that? Does that work with CVS?
Leonardo Fontenelle
#!/bin/sh
# Run this inside the Pootle project dir, i. e.
# /usr/lib/python2.4/site-packages/Pootle/po/gnome218,
# and make sure you've got write permissions!
# Configure the default version for something like "2.18"
DEFAULT_VERSION=2.18
# Uses $1 if provided; $LANG by default, without encoding information
lang=${1:-${LANG%%.*}}
# Uses $2 if provided; else, $DEFAULT_version (defined in the beginning)
version=${2:-$DEFAULT_VERSION}
# GNOME CVS anonymous access
export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/gnome
[[ -d $lang ]] || mkdir $lang
cd $lang
[[ -f desktop.html ]] && rm -f desktop.html
[[ -f developer-libs.html ]] && rm -f developer-libs.html
wget -O desktop.html
http://l10n-status.gnome.org/gnome-$version/$lang/desktop/index.html
wget -O developer-libs.html
http://l10n-status.gnome.org/gnome-$version/$lang/developer-libs/index.html
pofiles=$(grep ${lang}'\.po' desktop.html developer-libs.html | \
awk -F\" '{print $6}' | \
sort | uniq | \
awk -F\/ '{print $4}')
for pofile in ${pofiles}; do
module=$(echo $pofile | cut -d . -f 1)
branch=$(echo $pofile | cut -d . -f 2)
# gtk+ and gnome-applets have two PO files each
# gtk+-properties and gnome-applets-locations need specific rules
if [[ $module == "gtk+-properties" ]]; then
cvs -z3 co -r $branch gtk+/po-properties/$lang.po
continue
elif [[ $module == "gnome-applets-locations" ]]; then
cvs -z3 co -r $branch gnome-applets/po-locations/$lang.po
continue
fi
case $branch in
HEAD) cvs -z3 co $module/po/$lang.po;;
*) cvs -z3 co -r $branch $module/po/$lang.po;;
esac
done
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle