Importing languages the rough way.
Submitted by clemens on Tue, 2008/12/09 - 2:57pm
Guess it's not intended to do but this is how I import languages into Drupal 6.
- wget the language files needed
- run the script below which creates *_full.po files.
#!/usr/bin/env bash for FILE in *.tar.gz do DIR=`basename $FILE ".tar.gz"` OUT="../${DIR}_full.po" [ -f $OUT ] && rm $OUT && echo "File $OUT removed ... " [ -d $DIR ] && rm -r $DIR && echo "directory $DIR gemoved ..." [ ! -d $DIR ] && mkdir $DIR && echo "directory $DIR created ..." cd $DIR tar xzf ../$FILE find . -type f -name "*.txt" -exec rm {} \; rm $OUT find . -type f -exec cat {} >> $OUT \; cd - done
- Import the 'full' po files through the web interface
- Choose override existing string