File: Messages.sh

package info (click to toggle)
kst 2.0.8-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,844 kB
  • sloc: cpp: 97,086; ansic: 13,364; python: 2,970; sh: 761; yacc: 184; lex: 143; makefile: 141; javascript: 122; xml: 30; perl: 30
file content (10 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#! /bin/bash
# Adapted from the Messages.sh file in trojita
# xgettext-generated .po files use different context than QObject::tr.
# The generated files use something like a file name while QObject::tr expects
# class names. This approach works.
 
rm -f "${podir}/kst.ts"
lupdate -silent -recursive src/ -ts "${podir}/kst.ts"
lconvert "${podir}/kst.ts" --sort-contexts --output-format pot -o "${podir}/kst_common.pot"
rm "${podir}/kst.ts"