Closed (fixed)
Project:
Workflow Extensions
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Jun 2011 at 12:13 UTC
Updated:
3 Jul 2011 at 06:04 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| workflow_extensions-with-localized-state-names.patch | 1.04 KB | dvy |
Comments
Comment #1
rdeboerThanks for the patch! Will apply soon, together with some more goodies.
Rik
Comment #2
rdeboerCommitted. Available in 6.x-1.2