Skip to content
Snippets Groups Projects
Commit b9739c2c authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Tca translations job model

parent 6c41c465
No related branches found
No related tags found
No related merge requests found
<?php
return [
'ctrl' => [
'title' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'searchFields' => 'title, start_date, company, location, contact',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
],
'sortby' => 'sorting',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('sg_jobs') .
'Resources/Public/Icons/tx_sgjobs_domain_model_job.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, subtitle,
start_date, company, description, location, contact',
],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,
title, subtitle, start_date, company, description, location, contact;;;richtext[*]:rte_transform[mode=ts],
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
],
],
'palettes' => [
'sysLanguageAndHidden' => [
'showitem' => 'sys_language_uid;;;;1-1-1, l10n_diffsource, hidden;;1, ',
'canNotCollapse' => 1,
]
],
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => [
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => [
['LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1],
['LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0]
],
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
'config' => [
'type' => 'select',
'items' => [
['', 0],
],
'foreign_table' => 'tx_sgjobs_domain_model_base',
'foreign_table_where' => 'AND tx_sgjobs_domain_model_base.pid=###CURRENT_PID### AND tx_sgjobs_domain_model_base.sys_language_uid IN (-1,0)',
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
]
],
'pid' => [
'exclude' => 0,
'label' => 'PID',
'config' => [
'type' => 'none',
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => [
'type' => 'check',
],
],
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
],
],
],
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
],
],
],
'title' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.title',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
],
],
'subtitle' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.subtitle',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
],
],
'start_date' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.start_date',
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
],
],
],
'company' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.company',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
],
],
'description' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.description',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
],
],
'location' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_energieportal/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.location',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'internal_type' => 'db',
'allowed' => 'tx_sgjobs_domain_model_location',
'foreign_table' => 'tx_sgjobs_domain_model_location',
'MM' => 'tx_sgjobs_domain_model_job_location',
'size' => 6,
'maxitems' => 500,
'multiple' => 1,
]
]
],
];
?>
......@@ -13,9 +13,9 @@
<source>Base Table</source>
<target>Basis-Tabelle</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base.text_field" approved="yes">
<source>Text Field</source>
<target>Textfeld</target>
<trans-unit id="tx_sgjobs_domain_model_base.checkbox" approved="yes">
<source>Checkbox</source>
<target>Checkbox</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base.image" approved="yes">
<source>Image</source>
......@@ -29,10 +29,38 @@
<source>Text Area with RTE</source>
<target>Textbox mit RTE</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base.checkbox" approved="yes">
<source>Checkbox</source>
<target>Checkbox</target>
<trans-unit id="tx_sgjobs_domain_model_base.text_field" approved="yes">
<source>Text Field</source>
<target>Textfeld</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job" approved="yes">
<source>Job offer</source>
<target>Stellenanzeige</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.company" approved="yes">
<source>Company</source>
<target>Unternehmen</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.description" approved="yes">
<source>Job description</source>
<target>Beschreibung</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.location" approved="yes">
<source>Location</source>
<target>Arbeitsort</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.start_date" approved="yes">
<source>Start date</source>
<target>Einstiegsdatum</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.subtitle" approved="yes">
<source>Job subtitle</source>
<target>Kurzbeschreibung</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.title" approved="yes">
<source>Job title</source>
<target>Stellenbezeichnung</target>
</trans-unit>
</body>
</file>
</xliff>
</xliff>
\ No newline at end of file
......@@ -12,8 +12,8 @@
<trans-unit id="tx_sgjobs_domain_model_base">
<source>Base Table</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base.text_field">
<source>Text Field</source>
<trans-unit id="tx_sgjobs_domain_model_base.checkbox">
<source>Checkbox</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base.image">
<source>Image</source>
......@@ -24,9 +24,30 @@
<trans-unit id="tx_sgjobs_domain_model_base.text_area_with_rte">
<source>Text Area with RTE</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base.checkbox">
<source>Checkbox</source>
<trans-unit id="tx_sgjobs_domain_model_base.text_field">
<source>Text Field</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job">
<source>Job offer</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.company">
<source>Company</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.description">
<source>Job description</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.location">
<source>Location</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.start_date">
<source>Start date</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.subtitle">
<source>Job subtitle</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.title">
<source>Job title</source>
</trans-unit>
</body>
</file>
</xliff>
</xliff>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment