Merge pull request #118 from nyeholt/master

FIX Ensure queeudjobs are updated when duplicated
Pull language strings from Transifex.
BUG Fixes issue reported in #105. The value of a Target's link in Pending+Submitted gridfields was incorrectly appending the 'locale' request param.
MINOR Slight modification to related inline docs
Merge pull request #121 from phptek/bug/105

@mateusz thanks for the heads-up. Merging...
BUG Selecting one of the deletion icons on a transition/action displayed an empty JS confirmation dialogue. Fixes #122
Merge pull request #129 from phptek/issue/122

BUG Selecting one of the deletion icons on a transition/action displayed...
Add new lang strings, convert to JS.
BUG Fix link to work also for virtual-host configurations.
BUG Fixes #125. Error viewing WorkflowInstance in GridField.

When the next action is an AssignUsersToWorkflowAction, Member relations
are wiped. But users on the previous action still need to see the
WorkflowInstance in the PendingObjects GridField after editing+saving.
NEW Addresses issue #123: New template variable for email messages.

- Allows direct access to transition selection menus in workflow admin UI.
- This is an interim measure until something like #63 is implemented.
Merge pull request #131 from phptek/issue/123

NEW Addresses issue #123: New template variable for email messages.
Merge pull request #134 from phptek/issue/125

BUG Fixes #125. Error viewing WorkflowInstance in GridField.
BUG Fixes #77. Prevent changes being lost when selecting 1st action.

- Affects users who forget to select "Save draft" beforehand.
Merge pull request #132 from phptek/issue/77

BUG Fixes #77. Prevent users losing changes when selecting 1st action
Fixes #108. Incorrect auto publish text and link appears in CMS.

- Prevents 'undefined' from appearing as if auto-publish were enabled.
- Checking zero-length on publishXXX vars alone, isn't enough.
Merge pull request #135 from phptek/issue/108

BUG Fixes #108. Incorrect auto publish text and link appears in CMS.
BUG Builds on 6e34f65314 (ref issue #125)

Modified logic to determine if 1 of last 2 actions were run by
a user on a WorkflowInstance. If user is normally without canView()
on a WorkflowInstance at this point, ensures she can view it.

Added supporitng tests also.

- UserX is assigned action from a AssignUsersToWorkflowAction
- UserX runs a transition leading to another AssignUsersToWorkflowAction
- At this point, user+groups are reset on the current WorkflowInstance
- UserX redirected to a GridField with a “Forbidden” error as a result
Merge pull request #138 from phptek/issue/125-b

BUG Builds on 6e34f65314 (ref issue #125)
BUG Fixes #133. Disable click on SubmittedObject's GridField rows.

WorkflowInstances may not belong to users when passed to an
AssignUsersToWorkflowAction. Therefore we prevent CMS errors when
table rows & edit icons are clicked in "SubmittedObjects" GridField.

- Additionally, we visually indicate these records as 'disabled'.
- Also fixes AJAX 404 before redirection when clicking hyperlink.
BUG Fixes #144. Users with limited permissions can delete workflows.

- Added canCreate/canEdit/canDelete() to Definition, Action & Transition.
- canEdit+canDelete call WorkflowDefinition#canCreate().
- Made WorkflowField UI buttons disabled based on the canXX() methods.
- Removed disableButton() methods, using canXX() in template directly.
- Added missing docblocks & tests.