Commit cb122aab authored by Administrator's avatar Administrator

Fix general labels under TYPO3 >= 8

parent 99fad537
......@@ -5,6 +5,12 @@ defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_megooglecalendar_domain_model_calendar');
$generalLabelsPrefix = 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.';
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 8000000) {
$generalLabelsPrefix = 'LLL:EXT:lang/locallang_general.xlf:LGL.';
}
return [
'ctrl' => [
'title' => 'LLL:EXT:me_google_calendar/Resources/Private/Language/locallang_db.xlf:tx_megooglecalendar_domain_model_calendar',
......@@ -43,7 +49,7 @@ return [
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'label' => $generalLabelsPrefix . 'language',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
......@@ -58,7 +64,7 @@ return [
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'label' => $generalLabelsPrefix . 'l18n_parent',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
......@@ -75,7 +81,7 @@ return [
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'label' => $generalLabelsPrefix . 'versionLabel',
'config' => [
'type' => 'input',
'size' => 30,
......@@ -84,7 +90,7 @@ return [
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'label' => $generalLabelsPrefix . 'hidden',
'config' => [
'type' => 'check',
],
......@@ -92,7 +98,7 @@ return [
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'exclude',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'label' => $generalLabelsPrefix . 'starttime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
......@@ -108,7 +114,7 @@ return [
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'exclude',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'label' => $generalLabelsPrefix . 'endtime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
......@@ -123,7 +129,7 @@ return [
],
'fe_group' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fe_group',
'label' => $generalLabelsPrefix . 'fe_group',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
......
......@@ -167,3 +167,5 @@ ChangeLog
- v.4.7.0: Update fullcalendar plugin to version 3.10.0 + jQuery to 3.4.1; Improve handling of all day(s) events;
Move ical-link generation from gcal.js to eventDataTransform method defined inside settings partial;
- v.4.7.1: Fix general labels under TYPO3 >= 8
......@@ -14,7 +14,7 @@ $EM_CONF[$_EXTKEY] = [
'title' => 'Google Calendar',
'description' => 'Includes the jQuery Plugin FullCalendar, which generates a skinable calendar with different views (month, week, day, week list, day list etc.) from Google Calendar XML Feed(s) - now with extbase/fluid.',
'category' => 'plugin',
'version' => '4.7.0',
'version' => '4.7.1',
'state' => 'stable',
'author' => 'Alexander Grein',
'author_email' => 'alexander.grein@gmail.com',
......
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