Conditions:
- workflow_named_transitions module is installed and workflow state transitions are named;
- workflow_extensions module is installed and is configured as 'Single-action buttons' style;
- state names (in English) are translated to another language through Drupal UI.

Bug:
single-action buttons are labeled as 'Move to ' instead of configured transition names.

Cause:
comparison of translated and untranslated state names in line 400 of workflow_extensions.module file.

Solution:
replace line 214 of workflow_extensions.module file

$button['#value'] = workflow_extensions_get_transition_label($form['#wf']->wid, $current_state_name, $to_state_name, $node);

by

$button['#value'] = workflow_extensions_get_transition_label($form['#wf']->wid, $current_state_name, workflow_get_state_name($sid), $node);

Patch is attached

Comments

rdeboer’s picture

Thanks for the patch! Will apply soon, together with some more goodies.
Rik

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Needs review » Fixed

Committed. Available in 6.x-1.2

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.