import os
import sys
+import langdefs
+import buildlib
+
verbose = 0
lang = 'C'
C = lang
def usage ():
sys.stdout.write (r'''
Usage:
-check-translation [--language=LANG] [--verbose] [--update] BUILDSCRIPT-DIR FILE...
+check-translation [--language=LANG] [--verbose] [--update] FILE...
This script is licensed under the GNU GPL.
''')
lang = options.language
update_mode = options.update_mode
- return (files[0], files[1:])
+ return files
def main ():
global update_mode, text_editor
- import_path, files = do_options ()
+ files = do_options ()
if 'EDITOR' in os.environ:
text_editor = os.environ['EDITOR']
else:
update_mode = False
- sys.path.append (import_path)
- import langdefs
- import buildlib
buildlib.verbose = verbose
for i in files: