File: install_translation.sh

package info (click to toggle)
rabbitvcs 0.19-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,016 kB
  • sloc: python: 22,825; xml: 11,999; objc: 414; sh: 66; makefile: 3
file content (15 lines) | stat: -rwxr-xr-x 333 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

LOCALE=$1
POFILE=$2

if [ -z "$POFILE" -o -z "$LOCALE" ]
then
    echo "usage: ./install_translation.sh LOCALE POFILE"
    exit 1
fi

mkdir -p ../locale/$LOCALE/LC_MESSAGES
msgfmt --output-file=../locale/$LOCALE/LC_MESSAGES/RabbitVCS.mo $POFILE

echo "Translations installed to ../locale/$LOCALE/LC_MESSAGES/RabbitVCS.mo"