mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 13:47:13 -05:00
- translation files are now stored in a separate repo, and use a layout compatible with Pontoon - normalize the language code in aqt, so that old config settings and command line arguments are correctly handled - store Qt and gettext translations in separate subfolders - remove Crowdin scripts
17 lines
352 B
Bash
Executable file
17 lines
352 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# build mo files
|
|
#
|
|
|
|
targetDir="../aqt_data/locale/gettext"
|
|
mkdir -p $targetDir
|
|
|
|
echo "Compiling *.po..."
|
|
for file in po/desktop/*/anki.po
|
|
do
|
|
outdir=$(echo $file | \
|
|
perl -pe "s%po/desktop/(.*)/anki.po%$targetDir/\1/LC_MESSAGES%")
|
|
outfile="$outdir/anki.mo"
|
|
mkdir -p $outdir
|
|
msgfmt $file --output-file=$outfile
|
|
done
|