actContentObject * @param array $this->langlist * @param string $this->catid * @desc Shows the dialog for the content translation */ $act=$this->act; $task=$this->task; $select_language_id = $this->select_language_id; $user =& JFactory::getUser(); $db =& JFactory::getDBO(); $elementTable = $this->actContentObject->getTable(); // Should use CSS for image waps - in the meantime to this. global $mainframe; $jsfile = ''; $mainframe->addCustomHeadTag( $jsfile ); //$this->_JoomlaHeader( JText::_('TITLE_TRANSLATION'), 'joomfish', '', false ); jimport( 'joomla.html.editor' ); $wysiwygeditor =& JFactory::getEditor(); $editorFields=null; foreach ($this->tranFilters as $filter) { echo ""; } // check system and user editor and load appropriate copying script $user =& JFactory::getUser(); $conf =& JFactory::getConfig(); $editor = $conf->getValue('config.editor'); // Place a reference to the element Table in the config so that it can be used in translation of urlparams !!! $conf->setValue('joomfish.elementTable',$elementTable); echo "\n\n"; $editorFile = JOOMFISH_ADMINPATH."/editors/".strtolower($editor).".php"; if (file_exists($editorFile)){ require_once($editorFile); } else { ?>
Fields); $i++ ) { $field =& $elementTable->Fields[$i]; $originalValue = $field->originalValue; // if we supress blank originals if ($field->ignoreifblank && $field->originalValue==="") continue; if( $field->Translate ) { $translationContent = $field->translationContent; // This causes problems in Japanese/Russian etc. ?? jimport('joomla.filter.output'); JFilterOutput::objectHTMLSafe( $translationContent ); ?> "> Type)!='params'){ ?> "> "> getCfg('copyparams',1) && $translationContent->value==""){ $translationContent->value = $field->originalValue; } ?> ">
Lable;?>
originalValue)){ $ovhref = JRoute::_("index3.php?option=com_joomfish&task=translate.originalvalue&field=".$field->Name."&cid=".$this->actContentObject->id."&lang=".$select_language_id); echo ''.JText::_("Content contains form - click here to view in popup window").''; } else { echo $field->originalValue; } ?> Type)!='htmltext' ) {?>
Type)=='text' || strtolower($field->Type)=='titletext' ) { $length = ($field->Length>0)?$field->Length:60; $maxLength = ($field->MaxLength>0)?$field->MaxLength:60; ?> Type)=='textarea' ) { $ta_rows = ($field->Rows>0)?$field->Rows:15; $ta_cols = ($field->Columns>0)?$field->Columns:30; ?> Type)=='htmltext' ) { ?> Name, "refField_".$field->Name ); // parameters : areaname, content, hidden field, width, height, rows, cols echo $wysiwygeditor->display( "refField_".$field->Name, $translationContent->value, '100%', '300', '70', '15',$field->ebuttons ) ; } if( strtolower($field->Type)=='readonlytext') { $length = ($field->Length>0)?$field->Length:60; $maxLength = ($field->MaxLength>0)?$field->MaxLength:60; $value = strlen($translationContent->value)>0? $translationContent->value:$field->originalValue; ?> Type)=='readonlytext'){ } else if( strtolower($field->Type)!='htmltext' ) {?>
Name; if (!class_exists($tpclass)){ $tpclass = "TranslateParams"; } $transparams = new $tpclass($field->originalValue,$translationContent->value, $field->Name,$elementTable->Fields); $transparams->showOriginal(); $transparams->showDefault(); ?> editTranslation(); if ($retval){ $editorFields[] = $retval; } ?>
startPane("translation"); echo $tabs->startPanel(JText::_('PUBLISHING'),"ItemInfo-page"); ?>
: actContentObject->state > 0 ? JText::_('STATE_OK') : ($this->actContentObject->state < 0 ? JText::_('STATE_NOTEXISTING') : JText::_('STATE_CHANGED'));?>
: langlist;?>
: actContentObject->published&0x0001 ? 'checked="checked"' : ''; ?> />
: actContentObject->lastchanged ? JHTML::_('date', $this->actContentObject->lastchanged, JText::_('DATE_FORMAT_LC2')):JText::_('new');?>
endPanel(); echo $tabs->endPane(); ?>
" />