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.
We have a multi-language site and have tried to translate the button text through the "Translate Interface" page.
Texts do not appear them, are we doing something wrong or it's just unsupported?
Kind regards,
Comments
Comment #1
BassistJimmyJam CreditAttribution: BassistJimmyJam commentedThe button_field module does not currently support translations. I will add this to the list of requested features.
Comment #2
Enrique.Ruiz CreditAttribution: Enrique.Ruiz commentedHello BassistJimmyJam. We are planning to add English and German languages to our site to the current Spanish, so it would be necessary to have this feature. Do you have any timeframe for adding this feature? Kind regards and thanks for this fantastic module.
Comment #3
emmene-moi CreditAttribution: emmene-moi commentedI may suggest the following update (sorry, no patch), for the latest 6.X-dev version:
in function theme_button_field_formatter_default($element)
Line 154, add:
Then line 174, replace with:
And add the _locale compatibility:
This is not perfect (need to check the field type in button_field_locale_refresh) but it works.
Comment #4
Enrique.Ruiz CreditAttribution: Enrique.Ruiz commentedMany thanks emmene-moi. I will be using it, please keep us updated.
Comment #5
Enrique.Ruiz CreditAttribution: Enrique.Ruiz commentedemmene-moi, would you please give an example on how to configure button_field_locale_refresh for each field type.
If I have three button fields called button_user, button_role and button_date. How would it be?
Comment #6
firfin CreditAttribution: firfin commentedMarked #1795716: Integration with Internationalisation (i18n) for button text translation? as a duplicate of this issue.
Comment #7
Triumphent CreditAttribution: Triumphent commentedHow about a patch/fix/suggestion for core version 7.xx?
Thanks.
:)
Comment #8
martin.l CreditAttribution: martin.l commentedSubscribing, we have the same requirement.
Comment #9
apadernoI am closing this issue, as Drupal 6 is now not supported.