Drupal 7 – Disabled menu items after editing basic pages using Internationalization (i18n) module

The problem: In Drupal 7.22 when editing basic pages using Internationalization (i18n) module you run into disabled menu items.

Use this patch posted by martins.bertins on March 14, 2013 https://drupal.org/files/disabled_menu_items-1693074-26.patch to fix it.

diff --git a/i18n_menu/i18n_menu.module b/i18n_menu/i18n_menu.module
index df670e5..16c89ac 100644
--- a/i18n_menu/i18n_menu.module
+++ b/i18n_menu/i18n_menu.module
@@ -566,6 +566,12 @@ function _i18n_menu_link_is_localizable($link, $check_strings = FALSE) {
* Check whether this menu link is visible for current/given language.
*/
function _i18n_menu_link_is_visible($link, $langcode = NULL) {
+  if (arg(0) == 'node' && arg(2) == 'edit') {
+    $query = db_select('node', 'n');
+    $query->addField('n', 'language');
+    $query->condition('n.nid', arg(1));
+    $langcode = $query->execute()->fetchField();
+  }
$langcode = $langcode ? $langcode : i18n_language_interface()->language;
return $link['language'] == LANGUAGE_NONE || $link['language'] == $langcode;
}

Place the patch in the same directory as the file being patched and run this patch command

patch < file.patch
patch < disabled_menu_items-1693074-26.patch