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.
Hi
The problem is that the next page button label is always Next and not the translated version.
Previous button works perfectly.
And even though it shows the translated label while debugging with form_alter function it is says "Next" in the button.
In $form_state variable there's a number of buttons such as next_button_text and first_button_text etc. which all have "Next" and Next().
I just don't remember anymore that which hook I used to debug form_state variable and in which I could see these buttons.
Yes, with preprocess_node() and r($vars) I can see following:
first_button_text => Next
function next
next_button_text => Next
function next
Comments
Comment #2
ETENTION CreditAttribution: ETENTION commentedFixed details about form array values
Comment #3
ETENTION CreditAttribution: ETENTION commentedComment #4
ETENTION CreditAttribution: ETENTION commentedIn the end there was another module that was setting next button text to "Next" and it wasn't integrated to i18n.