Commit 7b82e090 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

extra qml strings correctly

since our l10n scripts run with the assumption that the code is c++ we'd
not correctly support all javascripty strings that qml can do. notably
template literals, but also ""+\n"" multi-line strings
parent 3d10fed3
#!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2020 Harald Sitter <sitter@kde.org>
# SPDX-FileCopyrightText: 2020-2021 Harald Sitter <sitter@kde.org>
$XGETTEXT `find -name \*.cpp -o -name \*.qml -o -name \*.js` -o $podir/plasma_disks.pot
$XGETTEXT `find . -name \*.cpp -o -name \*.h` -o $podir/plasma_disks.pot
# Extract JavaScripty files as what they are, otherwise for example template literals won't work correctly (by default we extract as C++).
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
$XGETTEXT --join-existing --language=JavaScript `find . -name \*.qml -o -name \*.js` -o $podir/plasma_disks.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