File: StaticMessages.sh

package info (click to toggle)
plasma-browser-integration 6.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,044 kB
  • sloc: cpp: 2,989; javascript: 2,444; xml: 142; python: 77; sh: 46; makefile: 16
file content (24 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (5)
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
}