-# try to generate po files when someone add a new language
-.SECONDARY: # do not delete generated intermediate file
-proxmox-widget-toolkit-%.po: proxmox-widget-toolkit.pot
- msginit -i proxmox-widget-toolkit.pot -l $* -o proxmox-widget-toolkit-$*.po
+.PHONY: update update_pot
+update_pot: submodule
+ git submodule foreach 'git pull --ff-only origin master'
+ $(call potupdate,proxmox-widget-toolkit,proxmox-widget-toolkit/)
+ $(call potupdate,pve-manager,pve-manager/www/manager6/)
+ $(call potupdate,proxmox-mailgateway,pmg-gui/js/)