Index: typo3/alt_clickmenu.php =================================================================== --- typo3/alt_clickmenu.php (revision 6163) +++ typo3/alt_clickmenu.php (working copy) @@ -267,6 +267,11 @@ $DBmount = TRUE; } + $l10nOverlay = false; + if( $table != 'pages_language_overlay' && array_key_exists('transOrigPointerField', $TCA[$table]['ctrl']) ) { + $l10nOverlay = intval($this->rec[$TCA[$table]['ctrl']['transOrigPointerField']]) != 0; + } + // If record found (or root), go ahead and fill the $menuItems array which will contain data for the elements to render. if (is_array($this->rec) || $root) { @@ -297,9 +302,9 @@ $menuItems['spacer1']='spacer'; // Copy: - if(!in_array('copy',$this->disabledItems) && !$root && !$DBmount) $menuItems['copy']=$this->DB_copycut($table,$uid,'copy'); + if(!in_array('copy',$this->disabledItems) && !$root && !$DBmount && !$l10nOverlay) $menuItems['copy']=$this->DB_copycut($table,$uid,'copy'); // Cut: - if(!in_array('cut',$this->disabledItems) && !$root && !$DBmount) $menuItems['cut']=$this->DB_copycut($table,$uid,'cut'); + if(!in_array('cut',$this->disabledItems) && !$root && !$DBmount && !$l10nOverlay) $menuItems['cut']=$this->DB_copycut($table,$uid,'cut'); // Paste: $elFromAllTables = count($this->clipObj->elFromTable('')); Index: typo3/class.db_list_extra.inc =================================================================== --- typo3/class.db_list_extra.inc (revision 6163) +++ typo3/class.db_list_extra.inc (working copy) @@ -1322,17 +1322,18 @@ $cells=array(); $cells['pasteAfter'] = $cells['pasteInto'] = $this->spaceIcon; - + //enables to hide the copy, cut and paste icons for localized records - doesn't make much sense to perform these options for them + $isL10nOverlay = $this->localizationView && $table != 'pages_language_overlay' && $row[$TCA[$table]['ctrl']['transOrigPointerField']]!=0; // Return blank, if disabled: // Whether a numeric clipboard pad is active or the normal pad we will see different content of the panel: if ($this->clipObj->current=='normal') { // For the "Normal" pad: // Show copy/cut icons: $isSel = (string)$this->clipObj->isSelected($table,$row['uid']); - $cells['copy']=''. + $cells['copy'] = $isL10nOverlay ? $this->spaceIcon : ''. 'backPath,'gfx/clip_copy'.($isSel=='copy'?'_h':'').'.gif','width="12" height="12"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:cm.copy',1).'" alt="" />'. ''; - $cells['cut']=''. + $cells['cut'] = $isL10nOverlay ? $this->spaceIcon : ''. 'backPath,'gfx/clip_cut'.($isSel=='cut'?'_h':'').'.gif','width="12" height="12"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:cm.cut',1).'" alt="" />'. ''; @@ -1355,13 +1356,13 @@ } // Adding the checkbox to the panel: - $cells['select']=''; + $cells['select'] = $isL10nOverlay ? $this->spaceIcon : ''; } // Now, looking for selected elements from the current table: $elFromTable = $this->clipObj->elFromTable($table); if (count($elFromTable) && $TCA[$table]['ctrl']['sortby']) { // IF elements are found and they can be individually ordered, then add a "paste after" icon: - $cells['pasteAfter']=''. + $cells['pasteAfter'] = $isL10nOverlay ? $this->spaceIcon : ''. 'backPath,'gfx/clip_pasteafter.gif','width="12" height="12"').' title="'.$LANG->getLL('clip_pasteAfter',1).'" alt="" />'. ''; }