Commit 46e6fe74 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

extract qml i18n as javascript

by default scripty extracts using --c++ which means JS `` template
literals aren't being extracted correctly. to deal with this we first
extract the c++ strings and then join the javscript/qml strings into the
same template
parent bca93f3a
#! /bin/sh
$XGETTEXT `find . -name '*.cpp' -o -name '*.h' -o -name '*.qml' -o -name '*.js'` -o $podir/kfileshare.pot
$XGETTEXT `find . -name '*.cpp' -o -name '*.h'` -o $podir/kfileshare.pot
# Extract JavaScripty files as what they are, otherwise for example template literals won't work correctly (by default we extract as C++).
$XGETTEXT --join-existing --language=JavaScript `find . -name '*.qml' -o -name '*.js'` -o $podir/kfileshare.pot
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment