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

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

echo "Insert your locale:";
read locale;

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

mkdir -p $locale/LC_MESSAGES
msginit --locale=$locale --input=gnomepie.pot --output=$locale/LC_MESSAGES/$locale.po