i18n/mki18n.py
changeset 1754 63f4af6bf6d9
parent 1749 d73b64672238
child 1756 08e4394ff4fb
equal deleted inserted replaced
1753:19f19c66b67e 1754:63f4af6bf6d9
    86 # -----------------------------------------------------------------------------
    86 # -----------------------------------------------------------------------------
    87 # Global variables
    87 # Global variables
    88 # ----------------
    88 # ----------------
    89 #
    89 #
    90 
    90 
    91 __author__  = "Pierre Rouleau"
    91 __author__ =  "Pierre Rouleau"
    92 __version__ = "$Revision: 1.5 $"
    92 __version__ = "$Revision: 1.5 $"
    93 
    93 
    94 # -----------------------------------------------------------------------------
    94 # -----------------------------------------------------------------------------
    95 
    95 
    96 
    96 
   434     argc = len(sys.argv)
   434     argc = len(sys.argv)
   435     if argc == 1:
   435     if argc == 1:
   436         printUsage('Missing argument: specify at least one of -m or -p (or both).')
   436         printUsage('Missing argument: specify at least one of -m or -p (or both).')
   437         sys.exit(1)
   437         sys.exit(1)
   438     # If there is some arguments, parse the command line
   438     # If there is some arguments, parse the command line
   439     validOptions     = "ehmpv"
   439     validOptions = "ehmpv"
   440     validLongOptions = ['domain=', 'moTarget=']
   440     validLongOptions = ['domain=', 'moTarget=']
   441     option = {}
   441     option = {}
   442     option['forceEnglish'] = 0
   442     option['forceEnglish'] = 0
   443     option['mo'] = 0
   443     option['mo'] = 0
   444     option['po'] = 0
   444     option['po'] = 0