Our project uses gettext to allow for multiple languages. Further, there is a *.bat and *.sh file, which generates the current POT file both from the PHP files and Smarty templates.
Is there a way to configure PHPStorm to execute an external tool (for example the bat file), before doing a GIT commit? In the commit window, there is only the possibility to execute a tool after commit. However, after doing changes in the code, I would like to update the POT first, then commit the code.