Index: trunk/core/kernel/languages/phrases_cache.php =================================================================== diff -u -r6093 -r7635 --- trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 6093) +++ trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 7635) @@ -142,7 +142,15 @@ if($this->Application->isDebugMode() && constOn('DBG_PHRASES')) { list($edit_tpl, $index_file) = $this->Application->IsAdmin() ? Array('regional/phrases_edit', 'index.php') : Array('phrases_edit', 'index.php'); - $edit_url = $this->Application->HREF($edit_tpl,'',Array('m_opener'=>'d','phrases_label'=>$original_label,'phrases_event'=>'OnNew', 'pass'=>'all,phrases'), $index_file ); + if ($this->Application->IsAdmin() && $this->Application->ConfigValue('UsePopups')) { + // link to popup when using popups (only in admin) + $edit_url = 'javascript:translate_phrase(\''.addslashes($original_label).'\', \''.$edit_tpl.'\');'; + } + else { + // direct link, when not using popups OR on frontend + $edit_url = $this->Application->HREF($edit_tpl,'',Array('m_opener'=>'d','phrases_label'=>$original_label,'phrases_event'=>'OnNew', 'pass'=>'all,phrases'), $index_file ); + } + $translation = '!'.$label.'!'; if($this->fromTag) $translation = $this->escapeTagReserved($translation); }