You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.5 KiB

  1. '''
  2. Simple utlity to generate the Json English language file
  3. Created on Jan 25, 2014
  4. @author: Chris
  5. '''
  6. import json
  7. if __name__ == '__main__':
  8. english = { # Header Messages
  9. 'settings_title': 'Settings',
  10. 'running_title': 'Running',
  11. 'running_msg': 'Please wait while the application performs its tasks. ' +
  12. '\nThis may take a few moments',
  13. 'finished_title': 'Finished',
  14. 'finished_msg': 'All done! You may now safely close the program.', # Footer buttons
  15. 'cancel': 'Cancel',
  16. 'close': 'Close',
  17. 'start': 'Start', # simple config panel
  18. 'simple_config': 'Enter Command Line Arguments', # Advanced config panel
  19. 'required_args_msg': 'Required Arguments',
  20. 'optional_args_msg': 'Optional Arguments', # popup dialogs
  21. "sure_you_want_to_exit": "Are you sure you want to exit?",
  22. 'close_program': 'Close Program?',
  23. 'status': 'Status',
  24. 'uh_oh': '''
  25. Uh oh! Looks like there was a problem.
  26. Copy the below error to let your developer know what went wrong.
  27. {}
  28. ''',
  29. 'error_title': "Error",
  30. 'execution_finished': 'Execution Finished',
  31. 'success_message': 'Program completed Sucessfully!',
  32. }
  33. with open('english.json', 'wb') as f:
  34. f.write(json.dumps(english, indent=4, sort_keys=True))