openxpki/openxpki — pull request #225 by ptomulik (2014-09-05 11:37:31+00:00)
Title: Workflow translations + fixes to make travis-ci happy again

This PR enchances i18n for workflows. It enables translations for most widgets appearing on workflow search, workflow search result, workflow edition, and workflow history pages. It also massivelly renames actions to I18N_OPENXPKI_WF_ACTION_XXXX tokens: this applies to configuration and code, but I haven't done it within Mason related directories (it would alter file names appearing in MANIFESTS etc, so I was uncertain how do deal with it). Tested manually on fresh database, action buttons and the actions on workflow pages appear translated. I understand that this changes current user configuration (_workflow/*.xml). No sure, whether these action names should be changed also in existing databases? For any case, I'm putting here the contents of three files: one with old action names, one with new ones and one sed script I used to rename the actions.

Sed:

```
# rename_actions.sed
s/\/I18N_OPENXPKI_WF_ACTION_CHANGEMETA_LOAD_DATA/g
s/\/I18N_OPENXPKI_WF_ACTION_CHANGEMETA_LOAD_FORM/g
s/\/I18N_OPENXPKI_WF_ACTION_CHANGEMETA_PERSIST/g
s/\/I18N_OPENXPKI_WF_ACTION_CHANGEMETA_TERMINATE/g
s/\/I18N_OPENXPKI_WF_ACTION_CHANGEMETA_UPDATE_CONTEXT/g
s/\/I18N_OPENXPKI_WF_ACTION_CREATE_CSR/g
s/\/I18N_OPENXPKI_WF_ACTION_CRR_EDIT_REQUEST/g
s/\/I18N_OPENXPKI_WF_ACTION_CRR_FLAG_PENDING_NOTIFICATION_SEND/g
s/\/I18N_OPENXPKI_WF_ACTION_CRR_SEND_PENDING_NOTIFICATION/g
s/\/I18N_OPENXPKI_WF_ACTION_CRR_UPDATE_REQUEST/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_APPROVE_CSR/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_ASK_CLIENT_PASSWORD/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_CANCEL_APPROVALS/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_CLEANUP_KEY_PASSWORD/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_EDIT_CERT_INFO/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_EDIT_SAN/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_EDIT_SUBJECT/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_EDIT_VALIDITY/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_EVAL_ELIGIBILITY/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_FLAG_PENDING_NOTIFICATION_SEND/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_GENERATE_KEY/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_GENERATE_KEY_CLIENT/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_GENERATE_PKCS10/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_LOAD_KEY_PASSWORD/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_MOVE_KEY_TO_DP/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_NOTIFY_APPROVAL/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_NOTIFY_ISSUED/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_NOTIFY_REJECTED/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_PERSIST_CSR/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_PERSIST_KEY_PASSWORD/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_PERSIST_METADATA/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_PROVIDE_SERVER_KEY_PARAMS/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_PUBLISH_CERTIFICATE/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_PUT_REQUEST_ON_HOLD/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_REJECT_REQUEST/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_RELEASE_ON_HOLD/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_RENAME_PRIVATE_KEY/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_RENDER_SUBJECT/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_RETYPE_SERVER_PASSWORD/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_SELECT_PROFILE/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_SEND_PENDING_NOTIFICATION/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_SUBMIT/g
s/\/I18N_OPENXPKI_WF_ACTION_CSR_UPLOAD_PKCS10/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_ADD_AUTHENTICATION/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_ALLOW_RETRY/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_CALC_APPROVALS/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_CLEAR_APPROVALS/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_CONTINUE_ISSUANCE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_DENY_AUTHENTICATION/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_DISAPPROVE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_EVAL_CHALLENGE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_EVAL_ELIGIBILITY/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_EVAL_SIGNER_TRUST/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_EXTRACT_CSR/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_FAIL/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_FETCH_GROUP_POLICY/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_FORK_PUBLISH/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_GET_CERT_PROFILE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_INITIALIZE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_INVALIDATE_CHALLENGE_PASS/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_ISSUE_CERT/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_LOAD_RECENT_CERTIFICATE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_MODIFY_METADATA/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_NEXT_CERT_TO_REVOKE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_NOTIFY_CERT_ISSUED/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_NOTIFY_PENDING_APPROVAL/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_NULL1/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_NULL2/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_PERSIST_CERT_METADATA/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_PERSIST_CSR/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_REVOKE_CERT/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_REVOKE_CERT_AFTER_REPLACE/g
s/\/I18N_OPENXPKI_WF_ACTION_ENROLL_REVOKE_EXISTING_CERTS/g
s/\/I18N_OPENXPKI_WF_ACTION_GENERATE_KEY/g
s/\/I18N_OPENXPKI_WF_ACTION_GLOBAL_NULL/g
```

Old:
```
changemeta_load_data
changemeta_load_form
changemeta_persist
changemeta_terminate
changemeta_update_context
create_csr
crr_edit_request
crr_flag_pending_notification_send
crr_send_pending_notification
crr_update_request
csr_approve_csr
csr_ask_client_password
csr_cancel_approvals
csr_cleanup_key_password
csr_edit_cert_info
csr_edit_san
csr_edit_subject
csr_edit_validity
csr_eval_eligibility
csr_flag_pending_notification_send
csr_generate_key
csr_generate_key_client
csr_generate_pkcs10
csr_load_key_password
csr_move_key_to_dp
csr_notify_approval
csr_notify_issued
csr_notify_rejected
csr_persist_csr
csr_persist_key_password
csr_persist_metadata
csr_provide_server_key_params
csr_publish_certificate
csr_put_request_on_hold
csr_reject_request
csr_release_on_hold
csr_rename_private_key
csr_render_subject
csr_retype_server_password
csr_select_profile
csr_send_pending_notification
csr_submit
csr_upload_pkcs10
enroll_add_authentication
enroll_allow_retry
enroll_calc_approvals
enroll_clear_approvals
enroll_continue_issuance
enroll_deny_authentication
enroll_disapprove
enroll_eval_challenge
enroll_eval_eligibility
enroll_eval_signer_trust
enroll_extract_csr
enroll_fail
enroll_fetch_group_policy
enroll_fork_publish
enroll_get_cert_profile
enroll_initialize
enroll_invalidate_challenge_pass
enroll_issue_cert
enroll_load_recent_certificate
enroll_modify_metadata
enroll_next_cert_to_revoke
enroll_notify_cert_issued
enroll_notify_pending_approval
enroll_null1
enroll_null2
enroll_persist_cert_metadata
enroll_persist_csr
enroll_revoke_cert
enroll_revoke_cert_after_replace
enroll_revoke_existing_certs
generate_key
global_null
```

New:
```
I18N_OPENXPKI_WF_ACTION_CHANGEMETA_LOAD_DATA
I18N_OPENXPKI_WF_ACTION_CHANGEMETA_LOAD_FORM
I18N_OPENXPKI_WF_ACTION_CHANGEMETA_PERSIST
I18N_OPENXPKI_WF_ACTION_CHANGEMETA_TERMINATE
I18N_OPENXPKI_WF_ACTION_CHANGEMETA_UPDATE_CONTEXT
I18N_OPENXPKI_WF_ACTION_CREATE_CSR
I18N_OPENXPKI_WF_ACTION_CRR_EDIT_REQUEST
I18N_OPENXPKI_WF_ACTION_CRR_FLAG_PENDING_NOTIFICATION_SEND
I18N_OPENXPKI_WF_ACTION_CRR_SEND_PENDING_NOTIFICATION
I18N_OPENXPKI_WF_ACTION_CRR_UPDATE_REQUEST
I18N_OPENXPKI_WF_ACTION_CSR_APPROVE_CSR
I18N_OPENXPKI_WF_ACTION_CSR_ASK_CLIENT_PASSWORD
I18N_OPENXPKI_WF_ACTION_CSR_CANCEL_APPROVALS
I18N_OPENXPKI_WF_ACTION_CSR_CLEANUP_KEY_PASSWORD
I18N_OPENXPKI_WF_ACTION_CSR_EDIT_CERT_INFO
I18N_OPENXPKI_WF_ACTION_CSR_EDIT_SAN
I18N_OPENXPKI_WF_ACTION_CSR_EDIT_SUBJECT
I18N_OPENXPKI_WF_ACTION_CSR_EDIT_VALIDITY
I18N_OPENXPKI_WF_ACTION_CSR_EVAL_ELIGIBILITY
I18N_OPENXPKI_WF_ACTION_CSR_FLAG_PENDING_NOTIFICATION_SEND
I18N_OPENXPKI_WF_ACTION_CSR_GENERATE_KEY
I18N_OPENXPKI_WF_ACTION_CSR_GENERATE_KEY_CLIENT
I18N_OPENXPKI_WF_ACTION_CSR_GENERATE_PKCS10
I18N_OPENXPKI_WF_ACTION_CSR_LOAD_KEY_PASSWORD
I18N_OPENXPKI_WF_ACTION_CSR_MOVE_KEY_TO_DP
I18N_OPENXPKI_WF_ACTION_CSR_NOTIFY_APPROVAL
I18N_OPENXPKI_WF_ACTION_CSR_NOTIFY_ISSUED
I18N_OPENXPKI_WF_ACTION_CSR_NOTIFY_REJECTED
I18N_OPENXPKI_WF_ACTION_CSR_PERSIST_CSR
I18N_OPENXPKI_WF_ACTION_CSR_PERSIST_KEY_PASSWORD
I18N_OPENXPKI_WF_ACTION_CSR_PERSIST_METADATA
I18N_OPENXPKI_WF_ACTION_CSR_PROVIDE_SERVER_KEY_PARAMS
I18N_OPENXPKI_WF_ACTION_CSR_PUBLISH_CERTIFICATE
I18N_OPENXPKI_WF_ACTION_CSR_PUT_REQUEST_ON_HOLD
I18N_OPENXPKI_WF_ACTION_CSR_REJECT_REQUEST
I18N_OPENXPKI_WF_ACTION_CSR_RELEASE_ON_HOLD
I18N_OPENXPKI_WF_ACTION_CSR_RENAME_PRIVATE_KEY
I18N_OPENXPKI_WF_ACTION_CSR_RENDER_SUBJECT
I18N_OPENXPKI_WF_ACTION_CSR_RETYPE_SERVER_PASSWORD
I18N_OPENXPKI_WF_ACTION_CSR_SELECT_PROFILE
I18N_OPENXPKI_WF_ACTION_CSR_SEND_PENDING_NOTIFICATION
I18N_OPENXPKI_WF_ACTION_CSR_SUBMIT
I18N_OPENXPKI_WF_ACTION_CSR_UPLOAD_PKCS10
I18N_OPENXPKI_WF_ACTION_ENROLL_ADD_AUTHENTICATION
I18N_OPENXPKI_WF_ACTION_ENROLL_ALLOW_RETRY
I18N_OPENXPKI_WF_ACTION_ENROLL_CALC_APPROVALS
I18N_OPENXPKI_WF_ACTION_ENROLL_CLEAR_APPROVALS
I18N_OPENXPKI_WF_ACTION_ENROLL_CONTINUE_ISSUANCE
I18N_OPENXPKI_WF_ACTION_ENROLL_DENY_AUTHENTICATION
I18N_OPENXPKI_WF_ACTION_ENROLL_DISAPPROVE
I18N_OPENXPKI_WF_ACTION_ENROLL_EVAL_CHALLENGE
I18N_OPENXPKI_WF_ACTION_ENROLL_EVAL_ELIGIBILITY
I18N_OPENXPKI_WF_ACTION_ENROLL_EVAL_SIGNER_TRUST
I18N_OPENXPKI_WF_ACTION_ENROLL_EXTRACT_CSR
I18N_OPENXPKI_WF_ACTION_ENROLL_FAIL
I18N_OPENXPKI_WF_ACTION_ENROLL_FETCH_GROUP_POLICY
I18N_OPENXPKI_WF_ACTION_ENROLL_FORK_PUBLISH
I18N_OPENXPKI_WF_ACTION_ENROLL_GET_CERT_PROFILE
I18N_OPENXPKI_WF_ACTION_ENROLL_INITIALIZE
I18N_OPENXPKI_WF_ACTION_ENROLL_INVALIDATE_CHALLENGE_PASS
I18N_OPENXPKI_WF_ACTION_ENROLL_ISSUE_CERT
I18N_OPENXPKI_WF_ACTION_ENROLL_LOAD_RECENT_CERTIFICATE
I18N_OPENXPKI_WF_ACTION_ENROLL_MODIFY_METADATA
I18N_OPENXPKI_WF_ACTION_ENROLL_NEXT_CERT_TO_REVOKE
I18N_OPENXPKI_WF_ACTION_ENROLL_NOTIFY_CERT_ISSUED
I18N_OPENXPKI_WF_ACTION_ENROLL_NOTIFY_PENDING_APPROVAL
I18N_OPENXPKI_WF_ACTION_ENROLL_NULL1
I18N_OPENXPKI_WF_ACTION_ENROLL_NULL2
I18N_OPENXPKI_WF_ACTION_ENROLL_PERSIST_CERT_METADATA
I18N_OPENXPKI_WF_ACTION_ENROLL_PERSIST_CSR
I18N_OPENXPKI_WF_ACTION_ENROLL_REVOKE_CERT
I18N_OPENXPKI_WF_ACTION_ENROLL_REVOKE_CERT_AFTER_REPLACE
I18N_OPENXPKI_WF_ACTION_ENROLL_REVOKE_EXISTING_CERTS
I18N_OPENXPKI_WF_ACTION_GENERATE_KEY
I18N_OPENXPKI_WF_ACTION_GLOBAL_NULL
```