StaticMessages.sh 474 Bytes
Newer Older
Carl Schwan's avatar
Carl Schwan committed
1 2
#!/usr/bin/env bash

3 4
FILENAME="kate-editor-org"

Carl Schwan's avatar
Carl Schwan committed
5 6 7 8 9 10 11 12 13
function export_pot_file # First parameter will be the path of the pot file we have to create, includes $FILENAME
{
    potfile=$1
    python3 translations.py extract $potfile
}

function import_po_files # First parameter will be a path that will contain several .po files with the format LANG.po
{
    podir=$1
Carl Schwan's avatar
Carl Schwan committed
14
    python3 translations.py import $podir
Carl Schwan's avatar
Carl Schwan committed
15 16 17 18
    python3 translations.py generate-translations
    rm -rf locale
}