~nskaggs/help-app/functional-test-template

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python3

# We need this script to help us generate a .pot file, which does not
# contain the meta-data strings at the top of the markdown files.

import sys

from translations.build import Translations


def main():
    translations = Translations()
    if not translations.generate_pot_file():
        sys.exit(1)

if __name__ == '__main__':
    try:
        main()
    except KeyboardInterrupt:
        print('Aborted.', file=sys.stderr)
        sys.exit(1)