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.

43 lines
1.7 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. 'sure_you_want_to_stop': 'Are you sure you want to stop the task? ' +
  24. '\nInterruption can corrupt your data!',
  25. 'stop_task': 'Stop task?',
  26. 'status': 'Status',
  27. 'uh_oh': '''
  28. Uh oh! Looks like there was a problem.
  29. Copy the text from status window to let your developer know what went wrong.
  30. ''',
  31. 'error_title': "Error",
  32. 'execution_finished': 'Execution finished',
  33. 'success_message': 'Program completed sucessfully!',
  34. }
  35. with open('english.json', 'wb') as f:
  36. f.write(json.dumps(english, indent=4, sort_keys=True))