Commit 45b5ff6c authored by Marcello Pivanti's avatar Marcello Pivanti
Browse files

Added translations

parent 2518563e
<?php
namespace backend\models\translations;
use Yii;
use raoul2000\workflow\base\SimpleWorkflowBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the base-model class for table "documenti_categorie__translation".
*
* @property integer $documenti_categorie_id
* @property string $language
* @property string $titolo
* @property string $sottotitolo
* @property string $descrizione_breve
* @property string $descrizione
* @property string $status
* @property integer $created_by
* @property integer $updated_by
* @property integer $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
*
* @property \backend\models\translations\DocumentiCategorieTranslation $documentiCategorie
*/
class DocumentiCategorieTranslation extends \arter\amos\core\record\Record
{
public $language_source;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'documenti_categorie__translation';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['documenti_categorie_id', 'language'], 'required'],
[['documenti_categorie_id', 'created_by', 'updated_by', 'deleted_by'], 'integer'],
[['titolo', 'sottotitolo', 'descrizione_breve', 'descrizione'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['language', 'status'], 'string', 'max' => 255],
[['documenti_categorie_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\documenti\models\DocumentiCategorie::className(), 'targetAttribute' => ['documenti_categorie_id' => 'id']],
['language_source', 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'language_source' => \Yii::t('amostranslation', 'Select another source language'),
'documenti_categorie_id' => Yii::t('amostranslation', 'Documenti Categorie ID'),
'language' => Yii::t('amostranslation', 'Language'),
'titolo' => Yii::t('amostranslation', 'Titolo'),
'sottotitolo' => Yii::t('amostranslation', 'Sottotitolo'),
'descrizione_breve' => Yii::t('amostranslation', 'Descrizione Breve'),
'descrizione' => Yii::t('amostranslation', 'Descrizione'),
'status' => Yii::t('amostranslation', 'Status'),
'created_by' => Yii::t('amostranslation', 'Created By'),
'updated_by' => Yii::t('amostranslation', 'Updated By'),
'deleted_by' => Yii::t('amostranslation', 'Deleted By'),
'created_at' => Yii::t('amostranslation', 'Created At'),
'updated_at' => Yii::t('amostranslation', 'Updated At'),
'deleted_at' => Yii::t('amostranslation', 'Deleted At'),
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getDocumentiCategorie()
{
return $this->hasOne(\arter\amos\documenti\models\DocumentiCategorie::className(), ['id' => 'documenti_categorie_id']);
}
}
<?php
namespace backend\models\translations;
use Yii;
use raoul2000\workflow\base\SimpleWorkflowBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the base-model class for table "faq__translation".
*
* @property integer $faq_id
* @property string $language
* @property string $domanda
* @property string $risposta
* @property string $rotte
* @property string $status
* @property integer $created_by
* @property integer $updated_by
* @property integer $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
*
* @property \backend\models\translations\FaqTranslation $faq
*/
class FaqTranslation extends \arter\amos\core\record\Record
{
public $language_source;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'faq__translation';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['faq_id', 'language'], 'required'],
[['faq_id', 'created_by', 'updated_by', 'deleted_by'], 'integer'],
[['domanda', 'risposta', 'rotte'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['language', 'status'], 'string', 'max' => 255],
[['faq_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\faq\models\Faq::className(), 'targetAttribute' => ['faq_id' => 'id']],
['language_source', 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'language_source' => \Yii::t('amostranslation', 'Select another source language'),
'faq_id' => Yii::t('amostranslation', 'Faq ID'),
'language' => Yii::t('amostranslation', 'Language'),
'domanda' => Yii::t('amostranslation', 'Domanda'),
'risposta' => Yii::t('amostranslation', 'Risposta'),
'rotte' => Yii::t('amostranslation', 'Rotte'),
'status' => Yii::t('amostranslation', 'Status'),
'created_by' => Yii::t('amostranslation', 'Created By'),
'updated_by' => Yii::t('amostranslation', 'Updated By'),
'deleted_by' => Yii::t('amostranslation', 'Deleted By'),
'created_at' => Yii::t('amostranslation', 'Created At'),
'updated_at' => Yii::t('amostranslation', 'Updated At'),
'deleted_at' => Yii::t('amostranslation', 'Deleted At'),
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getFaq()
{
return $this->hasOne(\arter\amos\faq\models\Faq::className(), ['id' => 'faq_id']);
}
}
<?php
namespace backend\models\translations;
use Yii;
use raoul2000\workflow\base\SimpleWorkflowBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the base-model class for table "news_categorie__translation".
*
* @property integer $news_categorie_id
* @property string $language
* @property string $titolo
* @property string $sottotitolo
* @property string $descrizione_breve
* @property string $descrizione
* @property string $status
* @property integer $created_by
* @property integer $updated_by
* @property integer $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
*
* @property \backend\models\translations\NewsCategorieTranslation $newsCategorie
*/
class NewsCategorieTranslation extends \arter\amos\core\record\Record
{
public $language_source;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'news_categorie__translation';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['news_categorie_id', 'language'], 'required'],
[['news_categorie_id', 'created_by', 'updated_by', 'deleted_by'], 'integer'],
[['titolo', 'sottotitolo', 'descrizione_breve', 'descrizione'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['language', 'status'], 'string', 'max' => 255],
[['news_categorie_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\news\models\NewsCategorie::className(), 'targetAttribute' => ['news_categorie_id' => 'id']],
['language_source', 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'language_source' => \Yii::t('amostranslation', 'Select another source language'),
'news_categorie_id' => Yii::t('amostranslation', 'News Categorie ID'),
'language' => Yii::t('amostranslation', 'Language'),
'titolo' => Yii::t('amostranslation', 'Titolo'),
'sottotitolo' => Yii::t('amostranslation', 'Sottotitolo'),
'descrizione_breve' => Yii::t('amostranslation', 'Descrizione Breve'),
'descrizione' => Yii::t('amostranslation', 'Descrizione'),
'status' => Yii::t('amostranslation', 'Status'),
'created_by' => Yii::t('amostranslation', 'Created By'),
'updated_by' => Yii::t('amostranslation', 'Updated By'),
'deleted_by' => Yii::t('amostranslation', 'Deleted By'),
'created_at' => Yii::t('amostranslation', 'Created At'),
'updated_at' => Yii::t('amostranslation', 'Updated At'),
'deleted_at' => Yii::t('amostranslation', 'Deleted At'),
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getNewsCategorie()
{
return $this->hasOne(\arter\amos\news\models\NewsCategorie::className(), ['id' => 'news_categorie_id']);
}
}
<?php
namespace backend\models\translations;
use Yii;
use raoul2000\workflow\base\SimpleWorkflowBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the base-model class for table "partnership_profiles_type__translation".
*
* @property integer $partnership_profiles_type_id
* @property string $language
* @property string $name
* @property string $description
* @property string $status
* @property integer $created_by
* @property integer $updated_by
* @property integer $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
*
* @property \backend\models\translations\PartnershipProfilesTypeTranslation $partnershipProfilesType
*/
class PartnershipProfilesTypeTranslation extends \arter\amos\core\record\Record
{
public $language_source;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'partnership_profiles_type__translation';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['partnership_profiles_type_id', 'language'], 'required'],
[['partnership_profiles_type_id', 'created_by', 'updated_by', 'deleted_by'], 'integer'],
[['name', 'description'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['language', 'status'], 'string', 'max' => 255],
[['partnership_profiles_type_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\partnershipprofiles\models\PartnershipProfilesType::className(), 'targetAttribute' => ['partnership_profiles_type_id' => 'id']],
['language_source', 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'language_source' => \Yii::t('amostranslation', 'Select another source language'),
'partnership_profiles_type_id' => Yii::t('amostranslation', 'Partnership Profiles Type ID'),
'language' => Yii::t('amostranslation', 'Language'),
'name' => Yii::t('amostranslation', 'Name'),
'description' => Yii::t('amostranslation', 'Description'),
'status' => Yii::t('amostranslation', 'Status'),
'created_by' => Yii::t('amostranslation', 'Created By'),
'updated_by' => Yii::t('amostranslation', 'Updated By'),
'deleted_by' => Yii::t('amostranslation', 'Deleted By'),
'created_at' => Yii::t('amostranslation', 'Created At'),
'updated_at' => Yii::t('amostranslation', 'Updated At'),
'deleted_at' => Yii::t('amostranslation', 'Deleted At'),
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getPartnershipProfilesType()
{
return $this->hasOne(\arter\amos\partnershipprofiles\models\PartnershipProfilesType::className(), ['id' => 'partnership_profiles_type_id']);
}
}
<?php
namespace backend\models\translations;
use Yii;
use raoul2000\workflow\base\SimpleWorkflowBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the base-model class for table "slideshow_pages__translation".
*
* @property integer $slideshow_pages_id
* @property string $language
* @property string $name
* @property string $pageContent
* @property string $status
* @property integer $created_by
* @property integer $updated_by
* @property integer $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
*/
class SlideshowPageTranslation extends \arter\amos\core\record\Record
{
public $language_source;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'slideshow_pages__translation';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['slideshow_pages_id', 'language'], 'required'],
[['slideshow_pages_id', 'created_by', 'updated_by', 'deleted_by'], 'integer'],
[['name', 'pageContent'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['language', 'status'], 'string', 'max' => 255],
[['slideshow_pages_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\slideshow\models\SlideshowPage::className(), 'targetAttribute' => ['slideshow_pages_id' => 'id']],
['language_source', 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'language_source' => \Yii::t('amostranslation', 'Select another source language'),
'slideshow_pages_id' => Yii::t('amostranslation', 'Slideshow Pages ID'),
'language' => Yii::t('amostranslation', 'Language'),
'name' => Yii::t('amostranslation', 'Name'),
'pageContent' => Yii::t('amostranslation', 'Page Content'),
'status' => Yii::t('amostranslation', 'Status'),
'created_by' => Yii::t('amostranslation', 'Created By'),
'updated_by' => Yii::t('amostranslation', 'Updated By'),
'deleted_by' => Yii::t('amostranslation', 'Deleted By'),
'created_at' => Yii::t('amostranslation', 'Created At'),
'updated_at' => Yii::t('amostranslation', 'Updated At'),
'deleted_at' => Yii::t('amostranslation', 'Deleted At'),
];
}
}
<?php
namespace backend\models\translations;
use Yii;
use raoul2000\workflow\base\SimpleWorkflowBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the base-model class for table "slideshow__translation".
*
* @property integer $slideshow_id
* @property string $language
* @property string $name
* @property string $label
* @property string $description
* @property string $status
* @property integer $created_by
* @property integer $updated_by
* @property integer $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
*
* @property \backend\models\translations\SlideshowTranslation $slideshow
*/
class SlideshowTranslation extends \arter\amos\core\record\Record
{
public $language_source;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'slideshow__translation';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['slideshow_id', 'language'], 'required'],
[['slideshow_id', 'created_by', 'updated_by', 'deleted_by'], 'integer'],
[['name', 'label', 'description'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['language', 'status'], 'string', 'max' => 255],
[['slideshow_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\slideshow\models\Slideshow::className(), 'targetAttribute' => ['slideshow_id' => 'id']],
['language_source', 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'language_source' => \Yii::t('amostranslation', 'Select another source language'),
'slideshow_id' => Yii::t('amostranslation', 'Slideshow ID'),
'language' => Yii::t('amostranslation', 'Language'),
'name' => Yii::t('amostranslation', 'Name'),
'label' => Yii::t('amostranslation', 'Label'),
'description' => Yii::t('amostranslation', 'Description'),
'status' => Yii::t('amostranslation', 'Status'),
'created_by' => Yii::t('amostranslation', 'Created By'),
'updated_by' => Yii::t('amostranslation', 'Updated By'),
'deleted_by' => Yii::t('amostranslation', 'Deleted By'),
'created_at' => Yii::t('amostranslation', 'Created At'),
'updated_at' => Yii::t('amostranslation', 'Updated At'),
'deleted_at' => Yii::t('amostranslation', 'Deleted At'),
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getSlideshow()
{
return $this->hasOne(\arter\amos\slideshow\models\Slideshow::className(), ['id' => 'slideshow_id']);
}
}
<?php
namespace backend\models\translations;
use Yii;
use raoul2000\workflow\base\SimpleWorkflowBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the base-model class for table "tag__translation".
*
* @property integer $tag_id
* @property string $language
* @property string $nome
* @property string $nome_en
* @property string $codice
* @property string $descrizione
* @property string $descrizione_en
* @property string $icon
* @property string $status
* @property integer $created_by
* @property integer $updated_by
* @property integer $deleted_by
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
*
* @property \backend\models\translations\TagTranslation $tag
*/
class TagTranslation extends \arter\amos\core\record\Record
{
public $language_source;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'tag__translation';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['tag_id', 'language'], 'required'],
[['tag_id', 'created_by', 'updated_by', 'deleted_by'], 'integer'],
[['nome', 'nome_en', 'codice', 'descrizione', 'descrizione_en', 'icon'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['language', 'status'], 'string', 'max' => 255],
[['tag_id'], 'exist', 'skipOnError' => true, 'targetClass' => \arter\amos\tag\models\Tag::className(), 'targetAttribute' => ['tag_id' => 'id']],
['language_source', 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'language_source' => \Yii::t('amostranslation', 'Select another source language'),
'tag_id' => Yii::t('amostranslation', 'Tag ID'),
'language' => Yii::t('amostranslation', 'Language'),