mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
17 lines
350 B
Bash
Executable file
17 lines
350 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# build mo files
|
|
#
|
|
|
|
targetDir="../aqt_data/locale"
|
|
mkdir -p $targetDir
|
|
|
|
echo "Compiling *.po..."
|
|
for file in translations/anki.pot/*
|
|
do
|
|
outdir=$(echo $file | \
|
|
perl -pe "s%translations/anki.pot/(.*)%$targetDir/\1/LC_MESSAGES%")
|
|
outfile="$outdir/anki.mo"
|
|
mkdir -p $outdir
|
|
msgfmt $file --output-file=$outfile
|
|
done
|