#!/usr/bin/env python import pystitch # generate fake python code containing the descriptions of pystitch formats # as gettext calls so that pybabel will extract them into messages.po for format in pystitch.supported_formats(): print("# L10N description for pystitch file format: %s" % format['extension']) print("_(%s)" % repr(format['description']))