Skip to content

Commit

Permalink
[TASK] Add labels for crdate and tstamp (#557)
Browse files Browse the repository at this point in the history
Fixes #556
  • Loading branch information
oliverklee authored Apr 17, 2024
1 parent 1d95254 commit 1be44b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Added

### Changed
- Add labels for `crdate` and `tstamp` (#557)

### Deprecated

Expand Down
4 changes: 4 additions & 0 deletions Configuration/TCA/Overrides/fe_groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
defined('TYPO3') || die();

call_user_func(static function (): void {
$languageFile = 'LLL:EXT:feuserextrafields/Resources/Private/Language/locallang.xlf:';

$temporaryColumns = [
'crdate' => [
'label' => $languageFile . 'crdate',
'config' => [
'type' => 'input',
'renderType' => 'datetime',
Expand All @@ -14,6 +17,7 @@
],
],
'tstamp' => [
'label' => $languageFile . 'tstamp',
'config' => [
'type' => 'input',
'renderType' => 'datetime',
Expand Down
2 changes: 2 additions & 0 deletions Configuration/TCA/Overrides/fe_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

$temporaryColumns = [
'crdate' => [
'label' => $languageFile . 'crdate',
'config' => [
'type' => 'input',
'renderType' => 'datetime',
Expand All @@ -16,6 +17,7 @@
],
],
'tstamp' => [
'label' => $languageFile . 'tstamp',
'config' => [
'type' => 'input',
'format' => 'datetime',
Expand Down
6 changes: 6 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
<file source-language="en" datatype="plaintext" original="messages">
<header/>
<body>
<trans-unit id="crdate" resname="crdate" approved="yes">
<source>Creation date</source>
</trans-unit>
<trans-unit id="tstamp" resname="tstamp" approved="yes">
<source>Change date</source>
</trans-unit>
<trans-unit id="full_salutation" resname="full_salutation" approved="yes">
<source>Full salutation (possibly with name)</source>
</trans-unit>
Expand Down

0 comments on commit 1be44b6

Please sign in to comment.