Ejemplo n.º 1
0
    def handle(self, *args, **options):
        verbosity = int(options['verbosity'])

        missing = tuple(check_files(
            self.generate_filenames(verbosity),
            skip_keys=options['skip'] or tuple()
        ))

        if missing:
            for key in missing:
                print 'The key is not fully translated: "%s"' % key
            sys.exit(ERROR_MISSING_FILES)
Ejemplo n.º 2
0
    def handle(self, *args, **options):
        verbosity = int(options['verbosity'])

        missing = tuple(check_files(
            self.generate_filenames(verbosity),
            skip_keys=options['skip'] or tuple()
        ))

        if missing:
            for key in missing:
                print 'The key is not fully translated: "%s"' % key
            sys.exit(ERROR_MISSING_FILES)
Ejemplo n.º 3
0
#!/usr/bin/env python
# coding: utf-8

import sys
from po_file_checker.base import check_files

if __name__ == '__main__':
    missing = tuple(check_files(sys.argv[1:]))
    if missing:
        sys.stderr.write("\n".join(missing))
        sys.exit(1)

    sys.exit(0)
Ejemplo n.º 4
0
#!/usr/bin/env python
# coding: utf-8

import sys
from po_file_checker.base import check_files

if __name__ == '__main__':
    missing = tuple(check_files(sys.argv[1:]))
    if missing:
        sys.stderr.write(
            "\n".join(missing)
        )
        sys.exit(1)

    sys.exit(0)