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 had a similar issue in menu_editor 6.x #1037880: Translatable or configurable Strings
The string "Under Construction" can't be localized using Drupal's translation interface as it's not wrapped with a t() function.
Here's a patch to fix this, works for me.
Comment | File | Size | Author |
---|---|---|---|
#3 | make-under-construction-translatable-1846700-3.patch | 692 bytes | dsdeiz |
0001-Module-patch-made-Under-Construction-string-of-menu_.patch | 2 KB | Daniel Wentsch |
Comments
Comment #1
dsdeiz CreditAttribution: dsdeiz commentedI don't think this one is required. hook_menu docs say:
And its gonna be overridden in
menu_editor_placeholder_page
anyway.Comment #2
donquixote CreditAttribution: donquixote commentedYes, the title in hook_menu() will be translated automatically.
"its gonna be overridden in menu_editor_placeholder_page anyway"
It is still used for breadcrumbs and stuff.
Could you re-roll the patch w/o the hook_menu() stuff?
Comment #3
dsdeiz CreditAttribution: dsdeiz commentedHi! Attached patch.
Comment #4
donquixote CreditAttribution: donquixote commentedLooks good. If it doesn't WSOD, we shall commit it.
Comment #5
dsdeiz CreditAttribution: dsdeiz commentedPerhaps this can be committed? Change is only minor anyway.
Comment #6
donquixote CreditAttribution: donquixote commentedyes.
http://drupalcode.org/project/menu_editor.git/commitdiff/f0db4d6be7b755b...