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 buttons in the modal windows are not translatable.
The buttons in the modal windows are not translatable.
Comments
Comment #1
mstef CreditAttribution: mstef commentedGood catch
Comment #2
mstef CreditAttribution: mstef commentedAs far as I can tell, this can't be done. Mess with it. Let me know if you can get it to work..
Comment #3
Michsk CreditAttribution: Michsk commentedi've been trying before i posted this but i will have another look at it.
Comment #4
Michsk CreditAttribution: Michsk commentedno idea how to fix this... i tried placing the language in a var but that does not do it either. This is a kind of a flaw...
Comment #5
mstef CreditAttribution: mstef commentedTry submitted an issue with jQuery UI.
Comment #6
mstef CreditAttribution: mstef commentedComment #7
doubouil CreditAttribution: doubouil commentedI found a way of translating Buttons of jQuery UI. It's an override of the createButtons function of jQuery UI and an object containing what we want ( translated title, and class for me). It's the same idea behind native implementation of jQueryProps (not very well documented).
My object :
The overriden function :
This way, the key of the buttons object is langage neutral, and you can translate the title. My idea was to pass a button object with a text and an another object for attributes inside, similar to the PHP drupal_attributes but in jQuery.
I use jQuery UI 1.7.3.
Comment #8
brianV CreditAttribution: brianV commentedMarking as duplicate of #991572: Homebox buttons not translated. The other issue is newer, but utilizes a proper method with the Drupal.t() localization function.