Commit 36fd3f5e authored by Open Source Developer's avatar Open Source Developer

translations

parent 1a35f694
......@@ -21,7 +21,6 @@ use Drupal\user\UserInterface;
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\epal\EpalStudentListBuilder",
* "views_data" = "Drupal\epal\Entity\EpalStudentViewsData",
* "translation" = "Drupal\epal\EpalStudentTranslationHandler",
*
* "form" = {
* "default" = "Drupal\epal\Form\EpalStudentForm",
......@@ -35,8 +34,6 @@ use Drupal\user\UserInterface;
* },
* },
* base_table = "epal_student",
* data_table = "epal_student_field_data",
* translatable = TRUE,
* admin_permission = "administer epal student entities",
* entity_keys = {
* "id" = "id",
......@@ -422,7 +419,7 @@ class EpalStudent extends ContentEntityBase implements EpalStudentInterface {
->setSetting('target_type', 'epal_users')
->setSetting('handler', 'default')
->setRequired(true)
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......@@ -754,7 +751,7 @@ class EpalStudent extends ContentEntityBase implements EpalStudentInterface {
->setDescription(t('Δώσε το τρέχον ΕΠΑΛ παρακολούθησης.'))
->setSetting('target_type', 'eepal_school')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......
......@@ -35,8 +35,6 @@ use Drupal\user\UserInterface;
* },
* },
* base_table = "epal_student_class",
* data_table = "epal_student_class_field_data",
* translatable = TRUE,
* admin_permission = "administer epal student class entities",
* entity_keys = {
* "id" = "id",
......@@ -191,7 +189,7 @@ class EpalStudentClass extends ContentEntityBase implements EpalStudentClassInte
->setRevisionable(TRUE)
->setSetting('target_type', 'user')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'hidden',
'type' => 'author',
......
......@@ -21,7 +21,6 @@ use Drupal\user\UserInterface;
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\epal\EpalStudentCourseFieldListBuilder",
* "views_data" = "Drupal\epal\Entity\EpalStudentCourseFieldViewsData",
* "translation" = "Drupal\epal\EpalStudentCourseFieldTranslationHandler",
*
* "form" = {
* "default" = "Drupal\epal\Form\EpalStudentCourseFieldForm",
......@@ -35,8 +34,6 @@ use Drupal\user\UserInterface;
* },
* },
* base_table = "epal_student_course_field",
* data_table = "epal_student_course_field_field_data",
* translatable = TRUE,
* admin_permission = "administer epal student course field entities",
* entity_keys = {
* "id" = "id",
......@@ -235,7 +232,7 @@ class EpalStudentCourseField extends ContentEntityBase implements EpalStudentCou
->setDescription(t('Δώσε το id μαθητή.'))
->setSetting('target_type', 'epal_student')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......@@ -262,7 +259,7 @@ class EpalStudentCourseField extends ContentEntityBase implements EpalStudentCou
->setSetting('target_type', 'eepal_specialty')
->setSetting('handler', 'default')
->setRequired(true)
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......
......@@ -21,7 +21,6 @@ use Drupal\user\UserInterface;
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\epal\EpalStudentEpalChosenListBuilder",
* "views_data" = "Drupal\epal\Entity\EpalStudentEpalChosenViewsData",
* "translation" = "Drupal\epal\EpalStudentEpalChosenTranslationHandler",
*
* "form" = {
* "default" = "Drupal\epal\Form\EpalStudentEpalChosenForm",
......@@ -35,8 +34,6 @@ use Drupal\user\UserInterface;
* },
* },
* base_table = "epal_student_epal_chosen",
* data_table = "epal_student_epal_chosen_field_data",
* translatable = TRUE,
* admin_permission = "administer epal student epal chosen entities",
* entity_keys = {
* "id" = "id",
......@@ -265,7 +262,7 @@ class EpalStudentEpalChosen extends ContentEntityBase implements EpalStudentEpal
->setSetting('target_type', 'epal_student')
->setSetting('handler', 'default')
->setRequired(true)
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......@@ -290,7 +287,7 @@ class EpalStudentEpalChosen extends ContentEntityBase implements EpalStudentEpal
->setSetting('target_type', 'eepal_school')
->setSetting('handler', 'default')
->setRequired(true)
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......
......@@ -21,7 +21,6 @@ use Drupal\user\UserInterface;
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\epal\EpalStudentSectorFieldListBuilder",
* "views_data" = "Drupal\epal\Entity\EpalStudentSectorFieldViewsData",
* "translation" = "Drupal\epal\EpalStudentSectorFieldTranslationHandler",
*
* "form" = {
* "default" = "Drupal\epal\Form\EpalStudentSectorFieldForm",
......@@ -35,9 +34,7 @@ use Drupal\user\UserInterface;
* },
* },
* base_table = "epal_student_sector_field",
* data_table = "epal_student_sector_field_field_data",
* translatable = TRUE,
* admin_permission = "administer epal student sector field entities",
* admin_permission = "administer epal student sector field entities",
* entity_keys = {
* "id" = "id",
* "label" = "name",
......@@ -231,7 +228,7 @@ class EpalStudentSectorField extends ContentEntityBase implements EpalStudentSec
->setDescription(t('Δώσε το id μαθητή.'))
->setSetting('target_type', 'epal_student')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......@@ -257,7 +254,7 @@ class EpalStudentSectorField extends ContentEntityBase implements EpalStudentSec
->setSetting('target_type', 'eepal_sectors')
->setSetting('handler', 'default')
->setRequired(true)
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......
......@@ -21,7 +21,6 @@ use Drupal\user\UserInterface;
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\epal\EpalUsersListBuilder",
* "views_data" = "Drupal\epal\Entity\EpalUsersViewsData",
* "translation" = "Drupal\epal\EpalUsersTranslationHandler",
*
* "form" = {
* "default" = "Drupal\epal\Form\EpalUsersForm",
......@@ -35,8 +34,6 @@ use Drupal\user\UserInterface;
* },
* },
* base_table = "epal_users",
* data_table = "epal_users_field_data",
* translatable = TRUE,
* admin_permission = "administer epal users entities",
* entity_keys = {
* "id" = "id",
......@@ -330,7 +327,7 @@ class EpalUsers extends ContentEntityBase implements EpalUsersInterface {
->setSetting('target_type', 'user')
->setSetting('handler', 'default')
->setRequired(true)
->setTranslatable(TRUE)
// ->setTranslatable(TRUE)
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'author',
......
<?php
namespace Drupal\epal;
use Drupal\content_translation\ContentTranslationHandler;
/**
* Defines the translation handler for epal_student_class.
*/
class EpalStudentClassTranslationHandler extends ContentTranslationHandler {
// Override here the needed methods from ContentTranslationHandler.
}
<?php
namespace Drupal\epal;
use Drupal\content_translation\ContentTranslationHandler;
/**
* Defines the translation handler for epal_student_course_field.
*/
class EpalStudentCourseFieldTranslationHandler extends ContentTranslationHandler {
// Override here the needed methods from ContentTranslationHandler.
}
<?php
namespace Drupal\epal;
use Drupal\content_translation\ContentTranslationHandler;
/**
* Defines the translation handler for epal_student_epal_chosen.
*/
class EpalStudentEpalChosenTranslationHandler extends ContentTranslationHandler {
// Override here the needed methods from ContentTranslationHandler.
}
<?php
namespace Drupal\epal;
use Drupal\content_translation\ContentTranslationHandler;
/**
* Defines the translation handler for epal_student_sector_field.
*/
class EpalStudentSectorFieldTranslationHandler extends ContentTranslationHandler {
// Override here the needed methods from ContentTranslationHandler.
}
<?php
namespace Drupal\epal;
use Drupal\content_translation\ContentTranslationHandler;
/**
* Defines the translation handler for epal_student.
*/
class EpalStudentTranslationHandler extends ContentTranslationHandler {
// Override here the needed methods from ContentTranslationHandler.
}
<?php
namespace Drupal\epal;
use Drupal\content_translation\ContentTranslationHandler;
/**
* Defines the translation handler for epal_users.
*/
class EpalUsersTranslationHandler extends ContentTranslationHandler {
// Override here the needed methods from ContentTranslationHandler.
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment