From d7ec861a4f31ba7d565f666abd802a0e427b0bd3 Mon Sep 17 00:00:00 2001 From: gm10 <13855078+gm10@users.noreply.github.com> Date: Tue, 12 Feb 2019 14:12:04 +0100 Subject: [PATCH] Change makepot to parse .glade files (#210) --- makepot | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/makepot b/makepot index d80b2a3..5f9f759 100755 --- a/makepot +++ b/makepot @@ -1,4 +1,29 @@ #!/bin/bash -xgettext --language=Python --keyword=_ --output=mintmenu.pot usr/lib/linuxmint/mintMenu/mintMenu.py usr/lib/linuxmint/mintMenu/mintMenuConfig.py usr/lib/linuxmint/mintMenu/keybinding.py usr/lib/linuxmint/mintMenu/plugins/recent.py usr/lib/linuxmint/mintMenu/plugins/applications.py usr/lib/linuxmint/mintMenu/plugins/system_management.py usr/lib/linuxmint/mintMenu/plugins/places.py usr/lib/linuxmint/mintMenu/plugins/recentHelper.py +intltool-extract --type=gettext/glade usr/lib/linuxmint/mintMenu/mintMenu.glade +intltool-extract --type=gettext/glade usr/lib/linuxmint/mintMenu/mintMenuConfig.glade +intltool-extract --type=gettext/glade usr/lib/linuxmint/mintMenu/plugins/applications.glade +intltool-extract --type=gettext/glade usr/lib/linuxmint/mintMenu/plugins/places.glade +intltool-extract --type=gettext/glade usr/lib/linuxmint/mintMenu/plugins/recent.glade +intltool-extract --type=gettext/glade usr/lib/linuxmint/mintMenu/plugins/system_management.glade + +xgettext --language=Python --keyword=_ --keyword=N_ --output=mintmenu.pot \ + usr/lib/linuxmint/mintMenu/mintMenu.py \ + usr/lib/linuxmint/mintMenu/mintMenu.glade.h \ + usr/lib/linuxmint/mintMenu/mintMenuConfig.py \ + usr/lib/linuxmint/mintMenu/mintMenuConfig.glade.h \ + usr/lib/linuxmint/mintMenu/keybinding.py \ + usr/lib/linuxmint/mintMenu/plugins/applications.py \ + usr/lib/linuxmint/mintMenu/plugins/applications.glade.h \ + usr/lib/linuxmint/mintMenu/plugins/recent.py \ + usr/lib/linuxmint/mintMenu/plugins/recent.glade.h \ + usr/lib/linuxmint/mintMenu/plugins/recentHelper.py \ + usr/lib/linuxmint/mintMenu/plugins/places.py \ + usr/lib/linuxmint/mintMenu/plugins/places.glade.h \ + usr/lib/linuxmint/mintMenu/plugins/system_management.py \ + usr/lib/linuxmint/mintMenu/plugins/system_management.glade.h + +rm -rf usr/lib/linuxmint/mintMenu/*.glade.h +rm -rf usr/lib/linuxmint/mintMenu/plugins/*.glade.h +