accident when merge. revert to r37405
[blender-staging.git] / po / update_pot.py
1 #!/usr/bin/python
2
3 #update the pot file according the POTFILES.in
4
5 import os
6
7 GETTEXT_XGETTEXT_EXECUTABLE="xgettext"
8 SOURCE_DIR=".."
9 DOMAIN="blender"
10
11 cmd = "%s --files-from=%s/po/POTFILES.in --keyword=_ --keyword=gettext --directory=%s --output=%s/po/%s.pot" % (
12     GETTEXT_XGETTEXT_EXECUTABLE, SOURCE_DIR, SOURCE_DIR, SOURCE_DIR, DOMAIN)
13
14 os.system( cmd )