Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The publish button is not translated in a view. I looked at the code in file "publish_button_views_handler_node_link.inc" and changed the lines 54 and 57 from:
54: $status = 'unpublish';
57: $status = 'publish';
to:
54: $status = t('Unpublish');
57: $status = t('Publish');
and it works. But I'm not sure if this is right!?
Comments
Comment #1
rauch CreditAttribution: rauch commentedComment #2
rauch CreditAttribution: rauch commentedUnfortunately I notice my fix doesn't work. Because the publish or unpublish link is wrong.