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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsdeiz’s picture

-    'title' => 'Under Construction',
+    'title' => t('Under Construction'),

I don't think this one is required. hook_menu docs say:

"title callback": Function to generate the title; defaults to t(). If you require only the raw string to be output, set this to FALSE.

And its gonna be overridden in menu_editor_placeholder_page anyway.

donquixote’s picture

Yes, 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?

dsdeiz’s picture

Hi! Attached patch.

donquixote’s picture

Status: Active » Needs review

Looks good. If it doesn't WSOD, we shall commit it.

dsdeiz’s picture

Perhaps this can be committed? Change is only minor anyway.

donquixote’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.