[kdeplasma-addons/frameworks] applets: fix Messages targets

Albert Astals Cid aacid at kde.org
Mon Sep 1 10:04:19 UTC 2014


Wrong branch, please use master.

Why the frameworks branch still exists, i have no clue.

Cheers,
  Albert



________________________________
De: Lukáš Tinkl <lukas at kde.org>
Para: kde-commits at kde.org 
CC: i18n-infrastructure at kde.org 
Enviado: Lunes 1 de septiembre de 2014 12:02
Asunto: [kdeplasma-addons/frameworks] applets: fix Messages targets


Git commit 3917d80b059c58edafe6d66a3c8f4c60c11eb9b7 by Lukáš Tinkl.
Committed on 01/09/2014 at 10:01.
Pushed by lukas into branch 'frameworks'.

fix Messages targets

we have to extract (also)from QML files if the applet
gets ported from CPP to QML

M  +3    -2    applets/notes/Messages.sh
M  +3    -3    applets/quickshare/Messages.sh
M  +3    -2    applets/timer/Messages.sh

http://commits.kde.org/kdeplasma-addons/3917d80b059c58edafe6d66a3c8f4c60c11eb9b7

diff --git a/applets/notes/Messages.sh b/applets/notes/Messages.sh
index fb068b7..4839223 100755
--- a/applets/notes/Messages.sh
+++ b/applets/notes/Messages.sh
@@ -1,3 +1,4 @@
#! /usr/bin/env bash
-$EXTRACTRC *.ui >> rc.cpp
-$XGETTEXT *.cpp -o $podir/plasma_applet_org.kde.plasma.notes.pot
+$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
+$XGETTEXT `find . -name \*.qml -o -name \*.cpp` -o $podir/plasma_applet_org.kde.plasma.notes.pot
+rm -f rc.cpp
diff --git a/applets/quickshare/Messages.sh b/applets/quickshare/Messages.sh
index 47625ab..4b705b5 100755
--- a/applets/quickshare/Messages.sh
+++ b/applets/quickshare/Messages.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
-$EXTRACTRC *.ui >> rc.cpp
-$XGETTEXT *.cpp *.h -o $podir/plasma_applet_org.kde.plasma.quickshare.pot
+#! /usr/bin/env bash
+$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
+$XGETTEXT `find . -name \*.qml -o -name \*.cpp` -o $podir/plasma_applet_org.kde.plasma.quickshare.pot
rm -f rc.cpp
diff --git a/applets/timer/Messages.sh b/applets/timer/Messages.sh
index eceb5db..64e4229 100755
--- a/applets/timer/Messages.sh
+++ b/applets/timer/Messages.sh
@@ -1,3 +1,4 @@
#! /usr/bin/env bash
-$EXTRACTRC *.ui >> rc.cpp
-$XGETTEXT *.cpp -o $podir/plasma_applet_org.kde.plasma.timer.pot
+$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
+$XGETTEXT `find . -name \*.qml -o -name \*.cpp` -o $podir/plasma_applet_org.kde.plasma.timer.pot
+rm -f rc.cpp


More information about the Plasma-devel mailing list