Don’t extract QML strings as Java printf strings

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 6811816ac0)
This commit is contained in:
Karl Ove Hufthammer 2021-04-06 21:01:25 +02:00
parent eb5bd219f2
commit 903f4ec92a

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#.qml #.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