File: import_launchpad_translations.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 (31 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

# This script should be run from the scripts directory

LOCALE_TGZ=$1

if [ -z "$LOCALE_TGZ" ];
then
    echo "usage: ./import_launchpad_translations.sh LOCALE_TGZ"
    exit 1
fi

rm -rf translations
mkdir translations
cd translations
tar xzf $LOCALE_TGZ
rm -rf templates

for mo in `ls`;
do
    if [ -f ../../locale/$mo/LC_MESSAGES/RabbitVCS.mo ];
    then
        mv $mo/LC_MESSAGES/* ../../locale/$mo/LC_MESSAGES/RabbitVCS.mo
    else
        mkdir -p ../../locale/$mo/LC_MESSAGES
        mv $mo/LC_MESSAGES/rabbit-vcs.mo ../../locale/$mo/LC_MESSAGES/RabbitVCS.mo
    fi
done

cd ..
rm -rf translations