summaryrefslogtreecommitdiff
path: root/resources/locale/update-po.sh
blob: 4692d606f964a7224ecd78a4dfe8cccbad3a73c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# get directory of script and cd to it
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR

echo "Insert the locale which you want to update:";
read locale;

if [ "$locale" == "" ]
then
    echo "No locale inserted! Aborting...";
    exit 1
fi

msgmerge -U $locale/LC_MESSAGES/$locale.po gnomepie.pot