File: StaticMessages.sh

package info (click to toggle)
plasma-browser-integration 5.14.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 960 kB
  • sloc: cpp: 1,842; xml: 125; python: 74; sh: 17; makefile: 9
file content (24 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash

# We fill in the en "translations" manually. We extract this to the KDE system as pot as normal, then populate the other json files


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

function export_pot_file # First parameter will be the path of the pot file we have to create, includes $FILENAME
{
    potfile=$1
    python3 ./util/convertjsontopot.py $potfile
}

function import_po_files # First parameter will be a path that will contain several .po files with the format LANG.po
{
    podir=$1
    for file in `ls $podir`
    do
        lang=${file%.po} #remove .po from end of file
        python3 ./util/convertpottojson.py $podir/$file $lang
    done
}