StaticMessages.sh 563 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

# The name of catalog we create (without the.pot extension), sourced from the scripty scripts
FILENAME="kdeconnect-android"

function export_pot_file # First parameter will be the path of the pot file we have to create, includes $FILENAME
{
	potfile=$1
	mkdir outdir
10
	a2po export --android res/ --gettext outdir
11
12
13
14
15
16
17
	mv outdir/template.pot $potfile
	rm -rf outdir
}

function import_po_files # First parameter will be a path that will contain several .po files with the format LANG.po
{
	podir=$1
18
	a2po import --android res/ --gettext $podir
19
20
21
}