Skip to content

Commit d324f9a

Browse files
committed
[FEATURE] Prepare text fields for translation tools
This commit sets `l10_mode` to `prefixLangTitle` for all text fields. This enables the automatic translation with extensions like `wv_deepltranslate`.
1 parent fad7a6b commit d324f9a

10 files changed

Lines changed: 15 additions & 2 deletions

Configuration/TCA/tx_in2studyfinder_domain_model_academicdegree.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
'endtime' => In2code\In2studyfinder\Utility\TcaUtility::getFullTcaForEndTime(),
5151
'degree' => [
5252
'exclude' => true,
53+
'l10n_mode' => 'prefixLangTitle',
5354
'label' => $ll . 'academicDegree.degree',
5455
'config' => [
5556
'type' => 'input',

Configuration/TCA/tx_in2studyfinder_domain_model_admissionrequirement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'title' => [
5252
'exclude' => true,
5353
'label' => $ll . 'title',
54+
'l10n_mode' => 'prefixLangTitle',
5455
'config' => [
5556
'type' => 'input',
5657
'size' => 30,

Configuration/TCA/tx_in2studyfinder_domain_model_courselanguage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'language' => [
5252
'exclude' => true,
5353
'label' => $ll . 'courseLanguage.language',
54+
'l10n_mode' => 'prefixLangTitle',
5455
'config' => [
5556
'type' => 'input',
5657
'size' => 30,

Configuration/TCA/tx_in2studyfinder_domain_model_department.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
'title' => [
5151
'exclude' => true,
5252
'label' => $ll . 'department',
53+
'l10n_mode' => 'prefixLangTitle',
5354
'config' => [
5455
'type' => 'input',
5556
'size' => 30,

Configuration/TCA/tx_in2studyfinder_domain_model_faculty.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'title' => [
5252
'exclude' => true,
5353
'label' => $ll . 'title',
54+
'l10n_mode' => 'prefixLangTitle',
5455
'config' => [
5556
'type' => 'input',
5657
'size' => 30,

Configuration/TCA/tx_in2studyfinder_domain_model_globaldata.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'title' => [
5353
'exclude' => true,
5454
'label' => $ll . 'title',
55+
'l10n_mode' => 'prefixLangTitle',
5556
'config' => [
5657
'type' => 'input',
5758
'size' => 30,

Configuration/TCA/tx_in2studyfinder_domain_model_graduation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
'title' => [
5151
'exclude' => true,
5252
'label' => $ll . 'title',
53+
'l10n_mode' => 'prefixLangTitle',
5354
'config' => [
5455
'type' => 'input',
5556
'size' => 30,

Configuration/TCA/tx_in2studyfinder_domain_model_startofstudy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'title' => [
5252
'exclude' => true,
5353
'label' => $ll . 'title',
54+
'l10n_mode' => 'prefixLangTitle',
5455
'config' => [
5556
'type' => 'input',
5657
'size' => 30,

Configuration/TCA/tx_in2studyfinder_domain_model_studycourse.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
'title' => [
7070
'exclude' => true,
7171
'label' => $ll . 'title',
72+
'l10n_mode' => 'prefixLangTitle',
7273
'config' => [
7374
'type' => 'input',
7475
'size' => 30,
@@ -112,6 +113,7 @@
112113
'teaser' => [
113114
'exclude' => true,
114115
'label' => $ll . 'teaser',
116+
'l10n_mode' => 'prefixLangTitle',
115117
'config' => [
116118
'type' => 'text',
117119
'enableRichtext' => 1,
@@ -124,6 +126,7 @@
124126
'description' => [
125127
'exclude' => true,
126128
'label' => $ll . 'description',
129+
'l10n_mode' => 'prefixLangTitle',
127130
'config' => [
128131
'type' => 'text',
129132
'enableRichtext' => 1,
@@ -250,6 +253,7 @@
250253
'meta_pagetitle' => [
251254
'exclude' => true,
252255
'label' => $ll . 'metaPageTitle',
256+
'l10n_mode' => 'prefixLangTitle',
253257
'config' => [
254258
'type' => 'input',
255259
'size' => 30,
@@ -260,7 +264,7 @@
260264
],
261265
'meta_keywords' => [
262266
'exclude' => true,
263-
'l10n_mode' => 'mergeIfNotBlank',
267+
'l10n_mode' => 'prefixLangTitle',
264268
'label' => $ll . 'metaKeywords',
265269
'config' => [
266270
'type' => 'input',
@@ -272,7 +276,7 @@
272276
],
273277
'meta_description' => [
274278
'exclude' => true,
275-
'l10n_mode' => 'mergeIfNotBlank',
279+
'l10n_mode' => 'prefixLangTitle',
276280
'label' => $ll . 'metaDescription',
277281
'config' => [
278282
'type' => 'text',

Configuration/TCA/tx_in2studyfinder_domain_model_typeofstudy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'type' => [
5252
'exclude' => true,
5353
'label' => $ll . 'typeOfStudy.type',
54+
'l10n_mode' => 'prefixLangTitle',
5455
'config' => [
5556
'type' => 'input',
5657
'size' => 30,

0 commit comments

Comments
 (0)