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.
Proposal to make the text "Select a page" in mobilemenu.js translatable by containing it Drupal.t(). Unfortunately I am not able to make patches and I cannot upload de .js file. But this works!
Comment | File | Size | Author |
---|---|---|---|
#3 | nexus-make-mobilemenu-strings-translatable-2760087-3-D8.patch | 391 bytes | dipakmdhrm |
Comments
Comment #2
dipakmdhrm CreditAttribution: dipakmdhrm as a volunteer commented@Jaapx: Thanks for reporting this.
We actually don't need to change the content of
mobileMenu.js
.We can add the
Drupal.t()
incustom.js
where we call themobileMenu()
function.So we need to change:
to:
in
custom.js
.I'll make the changes and push it do dev branch.
Comment #3
dipakmdhrm CreditAttribution: dipakmdhrm as a volunteer and at Vidushi Infotech SSP Pvt. Ltd. commentedPatch:
Comment #5
dipakmdhrm CreditAttribution: dipakmdhrm as a volunteer and at Vidushi Infotech SSP Pvt. Ltd. commented@Jaapx: Needs your review.
Comment #6
dipakmdhrm CreditAttribution: dipakmdhrm as a volunteer and at Vidushi Infotech SSP Pvt. Ltd. commentedThis is working as expected now.
Comment #7
dipakmdhrm CreditAttribution: dipakmdhrm as a volunteer and at Vidushi Infotech SSP Pvt. Ltd. commentedComment #9
edwinDrupal CreditAttribution: edwinDrupal commentedI got an error: Uncaught ReferenceError: Drupal is not defined,
when I visited the front page as a guest. And the slideshow box was hidden because of this error.
I removed the Drupal.t() function, and the slider box was show when visiting the page as a guest user.
Comment #10
edwinDrupal CreditAttribution: edwinDrupal commentedinclude - core/drupal below slider-js in nexus.libraries,yml will solve the problem.
http://www.webmaster-forums.net/html-css-and-javascript/drupal-8-tip-deb...