~resolve/anki/master

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ ! -d "anki" ]
then
    echo "Please run this from the anki-i18n project root directory"
    exit
fi

if [ "$1" = "" ]; then
    echo "provide lang name to update po file (eg 'ja')"
    exit 1
fi

echo "updating $1.po"
msgmerge --no-wrap -U --backup off "anki/$1.po" anki/anki.pot