From 903f4ec92a0ea9bdf312954e3316db6c57d16b4c Mon Sep 17 00:00:00 2001 From: Karl Ove Hufthammer Date: Tue, 6 Apr 2021 21:01:25 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20extract=20QML=20strings=20as=20?= =?UTF-8?q?Java=20printf=20strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The percentage sign in strings like ‘%1% charging’ couldn’t be properly translated in the resulting POT file. For example, translating it to ‘%1 % charging’ (some languages use a space before the percentage sign) resulted in an invalid Java printf string (but a valid QML string), which was reject by msgfmt. (cherry picked from commit 6811816ac005175c67a2d0176616ded1ca83f2ea) --- plasmoid/Messages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plasmoid/Messages.sh b/plasmoid/Messages.sh index fc8f8ae0c..eebe409ed 100755 --- a/plasmoid/Messages.sh +++ b/plasmoid/Messages.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash #.qml -$XGETTEXT `find package -name '*.qml'` -L Java -o $podir/plasma_applet_org.kde.kdeconnect.pot +$XGETTEXT `find package -name '*.qml'` -o $podir/plasma_applet_org.kde.kdeconnect.pot