summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/po/Makefile b/po/Makefile
index af254db..004c14f 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -15,8 +15,11 @@ clean:
pot:
+ cat ../usr/share/applications/$(PACKAGE_NAME).desktop.in | grep _ | cut -d "=" --fields=2 | sed 's|^|_("|g' | sed 's|$$|")|g' > ../usr/share/applications/$(PACKAGE_NAME).desktop.tmp
xgettext --copyright-holder='Daniel Napora <napcok@gmail.com>' --package-name=mageiawelcome --from-code=UTF-8 \
--L Python --msgid-bugs-address=http://bugs.mageia.org -o $(PACKAGE_NAME).pot ../usr/share/mageiawelcome/mageiawelcome.py ../usr/share/mageiawelcome/helpers.py
+-L Python --msgid-bugs-address=http://bugs.mageia.org -o $(PACKAGE_NAME).pot ../usr/share/mageiawelcome/mageiawelcome.py ../usr/share/mageiawelcome/helpers.py ../usr/share/applications/$(PACKAGE_NAME).desktop.tmp
+ rm -f ../usr/share/applications/$(PACKAGE_NAME).desktop.tmp
+ sed -i "s|desktop.tmp|desktop.in|g" $(PACKAGE_NAME).pot
po:
@for lang in $(LANGUAGES); do \