// Checking if a page should be shown in the menu depending on whether a translation exists:
$tok = TRUE;
if ($GLOBALS['TSFE']->sys_language_uid && t3lib_div::hideIfNotTranslated($data['l18n_cfg'])) { // There is an alternative language active AND the current page requires a translation:
- if (!$data['_PAGES_OVERLAY']) {
+ if (!$data['_PAGES_OVERLAY'] || ($data['_PAGES_OVERLAY'] && $data['_PAGES_OVERLAY_LUID'] != $GLOBALS['TSFE']->sys_language_uid)) {