VBO button not translated issue.

I have created a new VBO bulk operation using rules component. enter image description here

This is the button:

enter image description here

In Rules I have written the translation for this rule, in the translate tab of the rule.

But the button in the view doesn't display translated. :(

Too I tried to override a label in the view for this button, and translate this label with the translate view option, translating this field.

But the button doesn't translate too.

How could I translate my button?


1 Answer 1


Sharing a link below:-


Here a function function hook_views_bulk_operations_form_alter(&$form, &$form_state, $vbo) { } We can use this function and here we can actually do custom code for this particular action and set the label accordingly.

Would be able to answer more appropriately if you share some more details with your question that what you basically did.

  • Thank you Gaurav!. I am trying to translate a new operation I have added to my vbo. This operation is available to add in my vbo because I created a rule component doing the action for the entity I am using in my vbo. All this is normal and I did using drupal admin interface, no coding. In my screenshots you can see it, and how the button for this operation is not translated. Can you tell me more exactly what code do I add to force a title for this button? Thank you very much for your help
    – bunset
    Commented Apr 22, 2016 at 17:25
  • How could I know what is the name of the array form element to change in the code? Is there any tool to debug or display it?
    – bunset
    Commented Apr 22, 2016 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.