context->module; $this->title = "$classname #{$source[$pk]}: " . AmosTranslation::t('amostranslation', 'translation into') . " $lang"; $prev = \Yii::$app->request->referrer; if (strpos($prev, '/translation/default/records') !== false) { $this->params['breadcrumbs'][] = ['label' => AmosTranslation::t('amostranslation', 'Translate manager'), 'url' => ['/translation']]; $this->params['breadcrumbs'][] = ['label' => AmosTranslation::t('amostranslation', 'Translate contents'), 'url' => [$url]]; } else { $this->params['breadcrumbs'][] = ['label' => AmosTranslation::t('amostranslation', '#Original_content'), 'url' => $prev]; } $this->params['breadcrumbs'][] = $this->title; ?>
= AmosTranslation::tHtml('amostranslation', 'Source content of') ?> = $model->getAttributeLabel($string) ?>= ($model->language_source)? " ({$model->language_source})" : ''?>
= $source[$string] ?>
= $model->{$string} ?>
= AmosTranslation::tHtml('amostranslation', 'Source content of') ?> = $model->getAttributeLabel($text) ?>= ($model->language_source)? " ({$model->language_source})" : ''?>
= ($module->enableRTE && in_array($text, $rteAttributes)) ? \Yii::$app->formatter->asHtml($source[$text]) : $source[$text] ?>