Resolves #61296: Move TCA configuration from ext_tables.php to Configuration/TCA
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 7 Nov 2014 21:35:11 +0000 (21:35 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 7 Nov 2014 21:35:11 +0000 (21:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@86852 735d13b6-9817-0410-8766-e36946ffe9aa

19 files changed:
ChangeLog
Classes/Domain/Repository/LanguagePackRepository.php
Configuration/TCA/Country.php [deleted file]
Configuration/TCA/CountryZone.php [deleted file]
Configuration/TCA/Currency.php [deleted file]
Configuration/TCA/Language.php [deleted file]
Configuration/TCA/Territory.php [deleted file]
Configuration/TCA/static_countries.php [new file with mode: 0644]
Configuration/TCA/static_country_zones.php [new file with mode: 0644]
Configuration/TCA/static_currencies.php [new file with mode: 0644]
Configuration/TCA/static_languages.php [new file with mode: 0644]
Configuration/TCA/static_territories.php [new file with mode: 0644]
Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_countries.php [new file with mode: 0644]
Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_country_zones.php [new file with mode: 0644]
Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_currencies.php [new file with mode: 0644]
Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_languages.php [new file with mode: 0644]
Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_territories.php [new file with mode: 0644]
Resources/Private/LanguagePackTemplate/ext_tables.php [deleted file]
ext_tables.php

index d67f657..7d025e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Require TYPO3 CMS 6.2.0
        * Resolves #62770: Replace deprecated calls to ObjectManager ->create() with ->get()
+       * Resolves #61296: Move TCA configuration from ext_tables.php to Configuration/TCA
 
 2014-10-16  Stanislas Rolland  <typo3@sjbr.ca>
 
index a5cce81..0e80bb3 100644 (file)
@@ -75,6 +75,9 @@ class LanguagePackRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
                if (!is_dir($languagePackExtensionPath . 'Configuration/DomainModelExtension/')) {
                        GeneralUtility::mkdir_deep($languagePackExtensionPath, 'Configuration/DomainModelExtension/');
                }
+               if (!is_dir($languagePackExtensionPath . 'Configuration/TCA/Overrides/')) {
+                       GeneralUtility::mkdir_deep($languagePackExtensionPath, 'Configuration/TCA/Overrides/');
+               }
                if (!is_dir($languagePackExtensionPath . 'Configuration/TypoScript/Extbase/')) {
                        GeneralUtility::mkdir_deep($languagePackExtensionPath, 'Configuration/TypoScript/Extbase/');
                }
diff --git a/Configuration/TCA/Country.php b/Configuration/TCA/Country.php
deleted file mode 100644 (file)
index 04ba5c6..0000000
+++ /dev/null
@@ -1,277 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-$extensionResourcesLanguagePath = 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:';
-$GLOBALS['TCA']['static_countries'] = array(
-       'ctrl' => $GLOBALS['TCA']['static_countries']['ctrl'],
-       'interface' => array(
-               'showRecordFieldList' => 'cn_iso_2,cn_iso_3,cn_iso_nr,cn_official_name_local,cn_official_name_en,cn_capital,cn_tldomain,cn_currency_iso_3,cn_currency_iso_nr,cn_phone,cn_uno_member,cn_eu_member,cn_address_format,cn_short_en'
-       ),
-       'columns' => array(
-               'deleted' => array(
-                       'readonly' => 1,
-                       'label' => $extensionResourcesLanguagePath . 'deleted',
-                       'config' => array(
-                               'type' => 'check'
-                       )
-               ),
-               'cn_iso_2' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_iso_2',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '4',
-                               'max' => '2',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'cn_iso_3' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_iso_3',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '5',
-                               'max' => '3',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'cn_iso_nr' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_iso_nr',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '7',
-                               'max' => '7',
-                               'eval' => 'int',
-                               'default' => '0'
-                       )
-               ),
-               'cn_parent_territory_uid' => array(
-                       'exclude' => 0,
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_parent_territory_uid',
-                       'config' => array(
-                               'type' => 'select',
-                               'items' => array(
-                                       array('', 0),
-                               ),
-                               'foreign_table' => 'static_territories',
-                               'foreign_table_where' => 'ORDER BY static_territories.tr_name_en',
-                               'itemsProcFunc' => 'SJBR\StaticInfoTables\Hook\Backend\Form\ElementRenderingHelper->translateTerritoriesSelector',
-                               'size' => 1,
-                               'minitems' => 0,
-                               'maxitems' => 1,
-                       )
-               ),
-               'cn_parent_tr_iso_nr' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'cn_official_name_local' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_official_name_local',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '25',
-                               'max' => '128',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cn_official_name_en' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_official_name_en',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '25',
-                               'max' => '50',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cn_capital' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_capital',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '15',
-                               'max' => '45',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cn_tldomain' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_tldomain',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '5',
-                               'max' => '',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'cn_currency_uid' => array(
-                       'exclude' => 0,
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_currency_uid',
-                       'config' => array(
-                               'type' => 'select',
-                               'items' => array(
-                                       array('', 0),
-                               ),
-                               'foreign_table' => 'static_currencies',
-                               'foreign_table_where' => 'ORDER BY static_currencies.cu_name_en',
-                               'itemsProcFunc' => 'SJBR\StaticInfoTables\Hook\Backend\Form\ElementRenderingHelper->translateCurrenciesSelector',
-                               'size' => 1,
-                               'minitems' => 0,
-                               'maxitems' => 1,
-                               'wizards' => array(
-                                       'suggest' => array(
-                                               'type' => 'suggest',
-                                               'default' => array(
-                                                       'receiverClass' => 'SJBR\StaticInfoTables\Hook\Backend\Form\SuggestReceiver'
-                                               )
-                                       )
-                               )
-                       )
-               ),
-               'cn_currency_iso_nr' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'cn_currency_iso_3' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'cn_phone' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_phone',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '10',
-                               'max' => '20',
-                               'eval' => '',
-                               'default' => '0'
-                       )
-               ),
-               'cn_eu_member' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_eu_member',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'check',
-                               'default' => '0'
-                       )
-               ),
-               'cn_uno_member' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_uno_member',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'check',
-                               'default' => '0'
-                       )
-               ),
-               'cn_address_format' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_address_format',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'select',
-                               'items' => array(
-                                       array('','0'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_1','1'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_2','2'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_3','3'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_4','4'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_5','5'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_6','6'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_7','7'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_8','8'),
-                                       array($extensionResourcesLanguagePath . 'static_countries_item.cn_address_format_9','9'),
-                                       ),
-                               'default' => '0'
-                       )
-               ),
-               'cn_zone_flag' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_zone_flag',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'check',
-                               'default' => '0'
-                       )
-               ),
-               'cn_short_local' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_short_local',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '25',
-                               'max' => '50',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cn_short_en' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_short_en',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '25',
-                               'max' => '50',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cn_country_zones' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_country_zones',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'inline',
-                               'foreign_table' => 'static_country_zones',
-                               'foreign_field' => 'zn_country_uid',
-                               'foreign_table_field' => 'zn_country_table',
-                               'foreign_default_sortby' => 'zn_name_local',
-                               'maxitems' => '100',
-                               'appearance' => array(
-                                       'expandSingle' => 1,
-                                       'newRecordLinkAddTitle' => 1
-                               )
-                       )
-               )
-       ),
-       'types' => array(
-               '1' => array(
-                       'showitem' => 'cn_short_local,cn_official_name_local,cn_official_name_en,--palette--;;1;;,--palette--;;5;;,--palette--;;2;;,--palette--;;3;;,--palette--;;6;;,--palette--;;4;;,cn_short_en,cn_country_zones'
-               )
-       ),
-       'palettes' => array(
-               '1' => array(
-                       'showitem' => 'cn_iso_nr,cn_iso_2,cn_iso_3', 'canNotCollapse' => '1'
-               ),
-               '2' => array(
-                       'showitem' => 'cn_currency_uid,cn_currency_iso_nr,cn_currency_iso_3', 'canNotCollapse' => '1'
-               ),
-               '3' => array(
-                       'showitem' => 'cn_capital,cn_uno_member,cn_eu_member', 'canNotCollapse' => '1'
-               ),
-               '4' => array(
-                       'showitem' => 'cn_address_format,cn_zone_flag', 'canNotCollapse' => '1'
-               ),
-               '5' => array(
-                       'showitem' => 'cn_parent_territory_uid,cn_parent_tr_iso_nr', 'canNotCollapse' => '1'
-               ),
-               '6' => array(
-                       'showitem' => 'cn_phone,cn_tldomain', 'canNotCollapse' => '1'
-               ),              
-       )
-);
-unset($extensionResourcesLanguagePath);
-?>
\ No newline at end of file
diff --git a/Configuration/TCA/CountryZone.php b/Configuration/TCA/CountryZone.php
deleted file mode 100644 (file)
index 8430283..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-$extensionResourcesLanguagePath = 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:';
-$GLOBALS['TCA']['static_country_zones'] = array(
-       'ctrl' => $GLOBALS['TCA']['static_country_zones']['ctrl'],
-       'interface' => array(
-               'showRecordFieldList' => 'zn_country_iso_nr,zn_country_iso_2,zn_country_iso_3,zn_code,zn_name_local,zn_name_en'
-       ),
-       'columns' => array(
-               'deleted' => array(
-                       'readonly' => 1,
-                       'label' => $extensionResourcesLanguagePath . 'deleted',
-                       'config' => array(
-                               'type' => 'check'
-                       )
-               ),
-               'zn_country_uid' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'zn_country_table' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'zn_country_iso_nr' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'zn_country_iso_2' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )               
-               ),
-               'zn_country_iso_3' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'zn_code' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_country_zones_item.zn_code',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '18',
-                               'max' => '45',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'zn_name_local' => array(
-                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '18',
-                               'max' => '45',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'zn_name_en' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_country_zones_item.zn_name_en',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '18',
-                               'max' => '45',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-       ),
-       'types' => array(
-               '1' => array(
-                       'showitem' => 'zn_name_local,zn_code,--palette--;;1;;,zn_name_en'
-               )
-       ),
-       'palettes'      => array(
-               '1' => array(
-                       'showitem' => 'zn_country_uid,zn_country_iso_nr,zn_country_iso_2,zn_country_iso_3', 'canNotCollapse' => '1'
-               )
-       )
-);
-unset($extensionResourcesLanguagePath);
-?>
\ No newline at end of file
diff --git a/Configuration/TCA/Currency.php b/Configuration/TCA/Currency.php
deleted file mode 100644 (file)
index f1636df..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-$extensionResourcesLanguagePath = 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:';
-$GLOBALS['TCA']['static_currencies'] = array(
-       'ctrl' => $GLOBALS['TCA']['static_currencies']['ctrl'],
-       'interface' => array(
-               'showRecordFieldList' => 'cu_iso_3,cu_iso_nr,cu_name_en,cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point,cu_decimal_digits,cu_sub_name_en,cu_sub_divisor,cu_sub_symbol_left,cu_sub_symbol_right'
-       ),
-       'columns' => array(
-               'deleted' => array(
-                       'readonly' => 1,
-                       'label' => $extensionResourcesLanguagePath . 'deleted',
-                       'config' => array(
-                               'type' => 'check'
-                       )
-               ),
-               'cu_iso_3' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_iso_3',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '5',
-                               'max' => '3',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'cu_iso_nr' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_iso_nr',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '7',
-                               'max' => '3',
-                               'eval' => '',
-                               'default' => '0'
-                       )
-               ),
-               'cu_name_en' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_name_en',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '18',
-                               'max' => '40',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cu_sub_name_en' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_sub_name_en',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '18',
-                               'max' => '20',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cu_symbol_left' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_symbol_left',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '8',
-                               'max' => '12',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cu_symbol_right' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_symbol_right',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '8',
-                               'max' => '12',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cu_thousands_point' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_thousands_point',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '3',
-                               'max' => '1',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'cu_decimal_point' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_decimal_point',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '3',
-                               'max' => '1',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'cu_decimal_digits' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_decimal_digits',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '5',
-                               'max' => '',
-                               'eval' => 'int',
-                               'default' => ''
-                       )
-               ),
-               'cu_sub_divisor' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_sub_divisor',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '8',
-                               'max' => '20',
-                               'eval' => 'int',
-                               'default' => '1'
-                       )
-               ),
-               'cu_sub_symbol_left' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_sub_symbol_left',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '8',
-                               'max' => '12',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'cu_sub_symbol_right' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_currencies_item.cu_sub_symbol_right',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '8',
-                               'max' => '12',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               )
-       ),
-       'types' => array(
-               '1' => array(
-                       'showitem' => 'cu_name_en,--palette--;;1;;,--palette--;;2;;,cu_sub_name_en,--palette--;;3;;'
-               )
-       ),
-       'palettes'      => array(
-               '1' => array(
-                       'showitem' => 'cu_iso_nr,cu_iso_3', 'canNotCollapse' => '1'
-               ),
-               '2' => array(
-                       'showitem' => 'cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point', 'canNotCollapse' => '1'
-               ),
-               '3' => array(
-                       'showitem' => 'cu_sub_symbol_left,cu_sub_symbol_right,cu_decimal_digits,cu_sub_divisor', 'canNotCollapse' => '1'
-               )
-       )
-);
-unset($extensionResourcesLanguagePath);
-?>
\ No newline at end of file
diff --git a/Configuration/TCA/Language.php b/Configuration/TCA/Language.php
deleted file mode 100644 (file)
index a7512f3..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-$extensionResourcesLanguagePath = 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:';
-$GLOBALS['TCA']['static_languages'] = array(
-       'ctrl' => $GLOBALS['TCA']['static_languages']['ctrl'],
-       'interface' => array(
-               'showRecordFieldList' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
-       ),
-       'columns' => array(
-               'deleted' => array(
-                       'readonly' => 1,
-                       'label' => $extensionResourcesLanguagePath . 'deleted',
-                       'config' => array(
-                               'type' => 'check'
-                       )
-               ),
-               'lg_iso_2' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_languages_item.lg_iso_2',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '4',
-                               'max' => '2',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'lg_name_local' => array(
-                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '25',
-                               'max' => '50',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'lg_name_en' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_languages_item.lg_name_en',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '18',
-                               'max' => '40',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-               'lg_typo3' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_languages_item.lg_typo3',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '3',
-                               'max' => '2',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'lg_country_iso_2' => Array (
-                       'label' => $extensionResourcesLanguagePath . 'static_countries_item.cn_iso_2',
-                       'exclude' => '0',
-                       'config' => Array (
-                               'type' => 'input',
-                               'size' => '3',
-                               'max' => '2',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'lg_collate_locale' => Array (
-                       'label' => $extensionResourcesLanguagePath . 'static_languages_item.lg_collate_locale',
-                       'exclude' => '0',
-                       'config' => Array (
-                               'type' => 'input',
-                               'size' => '5',
-                               'max' => '5',
-                               'eval' => '',
-                               'default' => ''
-                       )
-               ),
-               'lg_sacred' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_languages_item.lg_sacred',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'check',
-                               'default' => '0'
-                       )
-               ),
-               'lg_constructed' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_languages_item.lg_constructed',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'check',
-                               'default' => '0'
-                       )
-               ),
-       ),
-       'types' => array(
-               '1' => array(
-                       'showitem' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
-               )
-       )
-);
-unset($extensionResourcesLanguagePath);
-?>
\ No newline at end of file
diff --git a/Configuration/TCA/Territory.php b/Configuration/TCA/Territory.php
deleted file mode 100644 (file)
index 97c82d0..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-$extensionResourcesLanguagePath = 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:';
-$GLOBALS['TCA']['static_territories'] = array(
-       'ctrl' => $GLOBALS['TCA']['static_territories']['ctrl'],
-       'interface' => array(
-               'showRecordFieldList' => 'tr_iso_nr,tr_parent_iso_nr,tr_name_en'
-       ),
-       'columns' => array(
-               'deleted' => array(
-                       'readonly' => 1,
-                       'label' => $extensionResourcesLanguagePath . 'deleted',
-                       'config' => array(
-                               'type' => 'check'
-                       )
-               ),
-               'tr_iso_nr' => array(
-                       'label' => $extensionResourcesLanguagePath . 'static_territories_item.tr_iso_nr',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '7',
-                               'max' => '7',
-                               'eval' => 'int',
-                               'default' => '0'
-                       )
-               ),
-               'tr_parent_territory_uid' => array(
-                       'exclude' => 0,
-                       'label' => $extensionResourcesLanguagePath . 'static_territories_item.tr_parent_territory_uid',
-                       'config' => array(
-                               'type' => 'select',
-                               'items' => array(
-                                       array('', 0),
-                               ),
-                               'foreign_table' => 'static_territories',
-                               'foreign_table_where' => 'ORDER BY static_territories.tr_name_en',
-                               'itemsProcFunc' => 'SJBR\StaticInfoTables\Hook\Backend\Form\ElementRenderingHelper->translateTerritoriesSelector',
-                               'size' => 1,
-                               'minitems' => 0,
-                               'maxitems' => 1,
-                       )
-               ),
-               'tr_parent_iso_nr' => array(
-                       'config' => array(
-                               'type' => 'passthrough',
-                       )
-               ),
-               'tr_name_en' => array(
-                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
-                       'exclude' => '0',
-                       'config' => array(
-                               'type' => 'input',
-                               'size' => '18',
-                               'max' => '45',
-                               'eval' => 'trim',
-                               'default' => '',
-                               '_is_string' => '1'
-                       )
-               ),
-       ),
-       'types' => array(
-               '1' => array(
-                       'showitem' => 'tr_iso_nr,tr_name_en,fk_billing_country,--palette--;;1;;'
-               )
-       ),
-       'palettes' => array(
-               '1' => array(
-                       'showitem' => 'tr_parent_territory_uid,tr_parent_iso_nr', 'canNotCollapse' => '1'
-               )
-       )
-);
-unset($extensionResourcesLanguagePath);
-?>
\ No newline at end of file
diff --git a/Configuration/TCA/static_countries.php b/Configuration/TCA/static_countries.php
new file mode 100644 (file)
index 0000000..88fef8b
--- /dev/null
@@ -0,0 +1,286 @@
+<?php
+// Country reference data from ISO 3166-1
+return array(
+       'ctrl' => array(
+               'label' => 'cn_short_en',
+               'label_alt' => 'cn_iso_2',
+               'label_alt_force' => 1,
+               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
+               'adminOnly' => 1,
+               'rootLevel' => 1,
+               'is_static' => 1,
+               'readOnly' => 1,
+               'default_sortby' => 'ORDER BY cn_short_en',
+               'delete' => 'deleted',
+               'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries.title',
+               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/icon_static_countries.gif',
+               'searchFields' => 'cn_short_en,cn_official_name_local,cn_official_name_en'
+       ),
+       'interface' => array(
+               'showRecordFieldList' => 'cn_iso_2,cn_iso_3,cn_iso_nr,cn_official_name_local,cn_official_name_en,cn_capital,cn_tldomain,cn_currency_iso_3,cn_currency_iso_nr,cn_phone,cn_uno_member,cn_eu_member,cn_address_format,cn_short_en'
+       ),
+       'columns' => array(
+               'deleted' => array(
+                       'readonly' => 1,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
+                       'config' => array(
+                               'type' => 'check'
+                       )
+               ),
+               'cn_iso_2' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_2',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '4',
+                               'max' => '2',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'cn_iso_3' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_3',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '5',
+                               'max' => '3',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'cn_iso_nr' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_nr',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '7',
+                               'max' => '7',
+                               'eval' => 'int',
+                               'default' => '0'
+                       )
+               ),
+               'cn_parent_territory_uid' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_parent_territory_uid',
+                       'config' => array(
+                               'type' => 'select',
+                               'items' => array(
+                                       array('', 0),
+                               ),
+                               'foreign_table' => 'static_territories',
+                               'foreign_table_where' => 'ORDER BY static_territories.tr_name_en',
+                               'itemsProcFunc' => 'SJBR\StaticInfoTables\Hook\Backend\Form\ElementRenderingHelper->translateTerritoriesSelector',
+                               'size' => 1,
+                               'minitems' => 0,
+                               'maxitems' => 1,
+                       )
+               ),
+               'cn_parent_tr_iso_nr' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'cn_official_name_local' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_official_name_local',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '25',
+                               'max' => '128',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cn_official_name_en' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_official_name_en',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '25',
+                               'max' => '50',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cn_capital' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_capital',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '15',
+                               'max' => '45',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cn_tldomain' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_tldomain',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '5',
+                               'max' => '',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'cn_currency_uid' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_currency_uid',
+                       'config' => array(
+                               'type' => 'select',
+                               'items' => array(
+                                       array('', 0),
+                               ),
+                               'foreign_table' => 'static_currencies',
+                               'foreign_table_where' => 'ORDER BY static_currencies.cu_name_en',
+                               'itemsProcFunc' => 'SJBR\StaticInfoTables\Hook\Backend\Form\ElementRenderingHelper->translateCurrenciesSelector',
+                               'size' => 1,
+                               'minitems' => 0,
+                               'maxitems' => 1,
+                               'wizards' => array(
+                                       'suggest' => array(
+                                               'type' => 'suggest',
+                                               'default' => array(
+                                                       'receiverClass' => 'SJBR\StaticInfoTables\Hook\Backend\Form\SuggestReceiver'
+                                               )
+                                       )
+                               )
+                       )
+               ),
+               'cn_currency_iso_nr' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'cn_currency_iso_3' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'cn_phone' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_phone',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '10',
+                               'max' => '20',
+                               'eval' => '',
+                               'default' => '0'
+                       )
+               ),
+               'cn_eu_member' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_eu_member',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'check',
+                               'default' => '0'
+                       )
+               ),
+               'cn_uno_member' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_uno_member',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'check',
+                               'default' => '0'
+                       )
+               ),
+               'cn_address_format' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'select',
+                               'items' => array(
+                                       array('','0'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_1','1'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_2','2'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_3','3'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_4','4'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_5','5'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_6','6'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_7','7'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_8','8'),
+                                       array('LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_address_format_9','9'),
+                                       ),
+                               'default' => '0'
+                       )
+               ),
+               'cn_zone_flag' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_zone_flag',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'check',
+                               'default' => '0'
+                       )
+               ),
+               'cn_short_local' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_short_local',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '25',
+                               'max' => '50',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cn_short_en' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_short_en',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '25',
+                               'max' => '50',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cn_country_zones' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_country_zones',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'inline',
+                               'foreign_table' => 'static_country_zones',
+                               'foreign_field' => 'zn_country_uid',
+                               'foreign_table_field' => 'zn_country_table',
+                               'foreign_default_sortby' => 'zn_name_local',
+                               'maxitems' => '100',
+                               'appearance' => array(
+                                       'expandSingle' => 1,
+                                       'newRecordLinkAddTitle' => 1
+                               )
+                       )
+               )
+       ),
+       'types' => array(
+               '1' => array(
+                       'showitem' => 'cn_short_local,cn_official_name_local,cn_official_name_en,--palette--;;1;;,--palette--;;5;;,--palette--;;2;;,--palette--;;3;;,--palette--;;6;;,--palette--;;4;;,cn_short_en,cn_country_zones'
+               )
+       ),
+       'palettes' => array(
+               '1' => array(
+                       'showitem' => 'cn_iso_nr,cn_iso_2,cn_iso_3', 'canNotCollapse' => '1'
+               ),
+               '2' => array(
+                       'showitem' => 'cn_currency_uid,cn_currency_iso_nr,cn_currency_iso_3', 'canNotCollapse' => '1'
+               ),
+               '3' => array(
+                       'showitem' => 'cn_capital,cn_uno_member,cn_eu_member', 'canNotCollapse' => '1'
+               ),
+               '4' => array(
+                       'showitem' => 'cn_address_format,cn_zone_flag', 'canNotCollapse' => '1'
+               ),
+               '5' => array(
+                       'showitem' => 'cn_parent_territory_uid,cn_parent_tr_iso_nr', 'canNotCollapse' => '1'
+               ),
+               '6' => array(
+                       'showitem' => 'cn_phone,cn_tldomain', 'canNotCollapse' => '1'
+               ),              
+       )
+);
\ No newline at end of file
diff --git a/Configuration/TCA/static_country_zones.php b/Configuration/TCA/static_country_zones.php
new file mode 100644 (file)
index 0000000..afa0e9f
--- /dev/null
@@ -0,0 +1,100 @@
+<?php
+// Country subdivision reference data from ISO 3166-2
+return array(
+       'ctrl' => array(
+               'label' => 'zn_name_local',
+               'label_alt' => 'zn_name_local,zn_code',
+               'adminOnly' => 1,
+               'rootLevel' => 1,
+               'is_static' => 1,
+               'readOnly' => 1,
+               'default_sortby' => 'ORDER BY zn_name_local',
+               'delete' => 'deleted',
+               'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones.title',
+               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/icon_static_countries.gif',
+               'searchFields' => 'zn_name_en,zn_name_local'
+       ),
+       'interface' => array(
+               'showRecordFieldList' => 'zn_country_iso_nr,zn_country_iso_2,zn_country_iso_3,zn_code,zn_name_local,zn_name_en'
+       ),
+       'columns' => array(
+               'deleted' => array(
+                       'readonly' => 1,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
+                       'config' => array(
+                               'type' => 'check'
+                       )
+               ),
+               'zn_country_uid' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'zn_country_table' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'zn_country_iso_nr' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'zn_country_iso_2' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )               
+               ),
+               'zn_country_iso_3' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'zn_code' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.zn_code',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '18',
+                               'max' => '45',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'zn_name_local' => array(
+                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '18',
+                               'max' => '45',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'zn_name_en' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.zn_name_en',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '18',
+                               'max' => '45',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+       ),
+       'types' => array(
+               '1' => array(
+                       'showitem' => 'zn_name_local,zn_code,--palette--;;1;;,zn_name_en'
+               )
+       ),
+       'palettes'      => array(
+               '1' => array(
+                       'showitem' => 'zn_country_uid,zn_country_iso_nr,zn_country_iso_2,zn_country_iso_3', 'canNotCollapse' => '1'
+               )
+       )
+);
\ No newline at end of file
diff --git a/Configuration/TCA/static_currencies.php b/Configuration/TCA/static_currencies.php
new file mode 100644 (file)
index 0000000..8f20bec
--- /dev/null
@@ -0,0 +1,185 @@
+<?php
+// Currency reference data from ISO 4217
+return array(
+       'ctrl' => array(
+               'label' => 'cu_name_en',
+               'label_alt' => 'cu_iso_3',
+               'label_alt_force' => 1,
+               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
+               'adminOnly' => 1,
+               'rootLevel' => 1,
+               'is_static' => 1,
+               'readOnly' => 1,
+               'default_sortby' => 'ORDER BY cu_name_en',
+               'delete' => 'deleted',
+               'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies.title',
+               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/icon_static_currencies.gif',
+               'searchFields' => 'cu_name_en'
+       ),
+       'interface' => array(
+               'showRecordFieldList' => 'cu_iso_3,cu_iso_nr,cu_name_en,cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point,cu_decimal_digits,cu_sub_name_en,cu_sub_divisor,cu_sub_symbol_left,cu_sub_symbol_right'
+       ),
+       'columns' => array(
+               'deleted' => array(
+                       'readonly' => 1,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
+                       'config' => array(
+                               'type' => 'check'
+                       )
+               ),
+               'cu_iso_3' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_iso_3',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '5',
+                               'max' => '3',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'cu_iso_nr' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_iso_nr',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '7',
+                               'max' => '3',
+                               'eval' => '',
+                               'default' => '0'
+                       )
+               ),
+               'cu_name_en' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_name_en',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '18',
+                               'max' => '40',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cu_sub_name_en' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_name_en',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '18',
+                               'max' => '20',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cu_symbol_left' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_symbol_left',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '8',
+                               'max' => '12',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cu_symbol_right' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_symbol_right',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '8',
+                               'max' => '12',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cu_thousands_point' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_thousands_point',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '3',
+                               'max' => '1',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'cu_decimal_point' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_decimal_point',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '3',
+                               'max' => '1',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'cu_decimal_digits' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_decimal_digits',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '5',
+                               'max' => '',
+                               'eval' => 'int',
+                               'default' => ''
+                       )
+               ),
+               'cu_sub_divisor' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_divisor',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '8',
+                               'max' => '20',
+                               'eval' => 'int',
+                               'default' => '1'
+                       )
+               ),
+               'cu_sub_symbol_left' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_symbol_left',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '8',
+                               'max' => '12',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'cu_sub_symbol_right' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_currencies_item.cu_sub_symbol_right',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '8',
+                               'max' => '12',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               )
+       ),
+       'types' => array(
+               '1' => array(
+                       'showitem' => 'cu_name_en,--palette--;;1;;,--palette--;;2;;,cu_sub_name_en,--palette--;;3;;'
+               )
+       ),
+       'palettes'      => array(
+               '1' => array(
+                       'showitem' => 'cu_iso_nr,cu_iso_3', 'canNotCollapse' => '1'
+               ),
+               '2' => array(
+                       'showitem' => 'cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point', 'canNotCollapse' => '1'
+               ),
+               '3' => array(
+                       'showitem' => 'cu_sub_symbol_left,cu_sub_symbol_right,cu_decimal_digits,cu_sub_divisor', 'canNotCollapse' => '1'
+               )
+       )
+);
\ No newline at end of file
diff --git a/Configuration/TCA/static_languages.php b/Configuration/TCA/static_languages.php
new file mode 100644 (file)
index 0000000..e867c63
--- /dev/null
@@ -0,0 +1,120 @@
+<?php
+// Language reference data from ISO 639-1
+return array(
+       'ctrl' => array(
+               'label' => 'lg_name_en',
+               'label_alt' => 'lg_iso_2',
+               'label_alt_force' => 1,
+               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
+               'adminOnly' => 1,
+               'rootLevel' => 1,
+               'is_static' => 1,
+               'readOnly' => 1,
+               'default_sortby' => 'ORDER BY lg_name_en',
+               'delete' => 'deleted',
+               'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages.title',
+               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/icon_static_languages.gif',
+               'searchFields' => 'lg_name_en,lg_name_local'
+       ),
+       'interface' => array(
+               'showRecordFieldList' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
+       ),
+       'columns' => array(
+               'deleted' => array(
+                       'readonly' => 1,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
+                       'config' => array(
+                               'type' => 'check'
+                       )
+               ),
+               'lg_iso_2' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_iso_2',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '4',
+                               'max' => '2',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'lg_name_local' => array(
+                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '25',
+                               'max' => '50',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'lg_name_en' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_name_en',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '18',
+                               'max' => '40',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+               'lg_typo3' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_typo3',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '3',
+                               'max' => '2',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'lg_country_iso_2' => Array (
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_2',
+                       'exclude' => '0',
+                       'config' => Array (
+                               'type' => 'input',
+                               'size' => '3',
+                               'max' => '2',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'lg_collate_locale' => Array (
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_collate_locale',
+                       'exclude' => '0',
+                       'config' => Array (
+                               'type' => 'input',
+                               'size' => '5',
+                               'max' => '5',
+                               'eval' => '',
+                               'default' => ''
+                       )
+               ),
+               'lg_sacred' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_sacred',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'check',
+                               'default' => '0'
+                       )
+               ),
+               'lg_constructed' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_constructed',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'check',
+                               'default' => '0'
+                       )
+               ),
+       ),
+       'types' => array(
+               '1' => array(
+                       'showitem' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
+               )
+       )
+);
\ No newline at end of file
diff --git a/Configuration/TCA/static_territories.php b/Configuration/TCA/static_territories.php
new file mode 100644 (file)
index 0000000..4cac8ac
--- /dev/null
@@ -0,0 +1,85 @@
+<?php
+// UN Territory reference data 
+return array(
+       'ctrl' => array(
+               'label' => 'tr_name_en',
+               'label_alt' => 'tr_iso_nr',
+               'label_alt_force' => 1,
+               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
+               'adminOnly' => 1,
+               'rootLevel' => 1,
+               'is_static' => 1,
+               'readOnly' => 1,
+               'default_sortby' => 'ORDER BY tr_name_en',
+               'delete' => 'deleted',
+               'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_territories.title',
+               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/icon_static_territories.gif',
+               'searchFields' => 'tr_name_en'
+       ),
+       'interface' => array(
+               'showRecordFieldList' => 'tr_iso_nr,tr_parent_iso_nr,tr_name_en'
+       ),
+       'columns' => array(
+               'deleted' => array(
+                       'readonly' => 1,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
+                       'config' => array(
+                               'type' => 'check'
+                       )
+               ),
+               'tr_iso_nr' => array(
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_territories_item.tr_iso_nr',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '7',
+                               'max' => '7',
+                               'eval' => 'int',
+                               'default' => '0'
+                       )
+               ),
+               'tr_parent_territory_uid' => array(
+                       'exclude' => 0,
+                       'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_territories_item.tr_parent_territory_uid',
+                       'config' => array(
+                               'type' => 'select',
+                               'items' => array(
+                                       array('', 0),
+                               ),
+                               'foreign_table' => 'static_territories',
+                               'foreign_table_where' => 'ORDER BY static_territories.tr_name_en',
+                               'itemsProcFunc' => 'SJBR\StaticInfoTables\Hook\Backend\Form\ElementRenderingHelper->translateTerritoriesSelector',
+                               'size' => 1,
+                               'minitems' => 0,
+                               'maxitems' => 1,
+                       )
+               ),
+               'tr_parent_iso_nr' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                       )
+               ),
+               'tr_name_en' => array(
+                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
+                       'exclude' => '0',
+                       'config' => array(
+                               'type' => 'input',
+                               'size' => '18',
+                               'max' => '45',
+                               'eval' => 'trim',
+                               'default' => '',
+                               '_is_string' => '1'
+                       )
+               ),
+       ),
+       'types' => array(
+               '1' => array(
+                       'showitem' => 'tr_iso_nr,tr_name_en,fk_billing_country,--palette--;;1;;'
+               )
+       ),
+       'palettes' => array(
+               '1' => array(
+                       'showitem' => 'tr_parent_territory_uid,tr_parent_iso_nr', 'canNotCollapse' => '1'
+               )
+       )
+);
\ No newline at end of file
diff --git a/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_countries.php b/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_countries.php
new file mode 100644 (file)
index 0000000..71b94de
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+$additionalFields = array(
+       'cn_short_en' => 'cn_short_###LANG_ISO_LOWER###'
+);
+foreach ($additionalFields as $sourceField => $destField) {
+       $additionalColumns = array();
+       $additionalColumns[$destField] = $GLOBALS['TCA']['static_countries']['columns'][$sourceField];
+       $additionalColumns[$destField]['label'] = 'LLL:EXT:static_info_tables_###LANG_ISO_LOWER###/Resources/Private/Language/locallang_db.xlf:static_countries_item.' . $destField;
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_countries', $additionalColumns);
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('static_countries', $destField, '', 'after:' . $sourceField);
+       // Add as search field
+       $GLOBALS['TCA']['static_countries']['ctrl']['searchFields'] .= ',' . $destField;
+}
+unset($additionalColumns);
+unset($additionalFields);
\ No newline at end of file
diff --git a/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_country_zones.php b/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_country_zones.php
new file mode 100644 (file)
index 0000000..e6a60a5
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+$additionalFields = array(
+       'zn_name_en' => 'zn_name_###LANG_ISO_LOWER###'
+);
+foreach ($additionalFields as $sourceField => $destField) {
+       $additionalColumns = array();
+       $additionalColumns[$destField] = $GLOBALS['TCA']['static_country_zones']['columns'][$sourceField];
+       $additionalColumns[$destField]['label'] = 'LLL:EXT:static_info_tables_###LANG_ISO_LOWER###/Resources/Private/Language/locallang_db.xlf:static_country_zones_item.' . $destField;
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_country_zones', $additionalColumns);
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('static_country_zones', $destField, '', 'after:' . $sourceField);
+       // Add as search field
+       $GLOBALS['TCA']['static_country_zones']['ctrl']['searchFields'] .= ',' . $destField;
+}
+unset($additionalColumns);
+unset($additionalFields);
\ No newline at end of file
diff --git a/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_currencies.php b/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_currencies.php
new file mode 100644 (file)
index 0000000..357ce88
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+$additionalFields = array(
+       'cu_name_en' => 'cu_name_###LANG_ISO_LOWER###',
+       'cu_sub_name_en' => 'cu_sub_name_###LANG_ISO_LOWER###'
+);
+foreach ($additionalFields as $sourceField => $destField) {
+       $additionalColumns = array();
+       $additionalColumns[$destField] = $GLOBALS['TCA']['static_currencies']['columns'][$sourceField];
+       $additionalColumns[$destField]['label'] = 'LLL:EXT:static_info_tables_###LANG_ISO_LOWER###/Resources/Private/Language/locallang_db.xlf:static_currencies_item.' . $destField;
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_currencies', $additionalColumns);
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('static_currencies', $destField, '', 'after:' . $sourceField);
+       // Add as search field
+       $GLOBALS['TCA']['static_currencies']['ctrl']['searchFields'] .= ',' . $destField;
+}
+unset($additionalColumns);
+unset($additionalFields);
\ No newline at end of file
diff --git a/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_languages.php b/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_languages.php
new file mode 100644 (file)
index 0000000..5ee2088
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+$additionalFields = array(
+       'lg_name_en' => 'lg_name_###LANG_ISO_LOWER###'
+);
+foreach ($additionalFields as $sourceField => $destField) {
+       $additionalColumns = array();
+       $additionalColumns[$destField] = $GLOBALS['TCA']['static_languages']['columns'][$sourceField];
+       $additionalColumns[$destField]['label'] = 'LLL:EXT:static_info_tables_###LANG_ISO_LOWER###/Resources/Private/Language/locallang_db.xlf:static_languages_item.' . $destField;
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_languages', $additionalColumns);
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('static_languages', $destField, '', 'after:' . $sourceField);
+       // Add as search field
+       $GLOBALS['TCA']['static_languages']['ctrl']['searchFields'] .= ',' . $destField;
+}
+unset($additionalColumns);
+unset($additionalFields);
\ No newline at end of file
diff --git a/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_territories.php b/Resources/Private/LanguagePackTemplate/Configuration/TCA/Overrides/static_territories.php
new file mode 100644 (file)
index 0000000..ae47211
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+$additionalFields = array(
+       'tr_name_en' => 'tr_name_###LANG_ISO_LOWER###'
+);
+foreach ($additionalFields as $sourceField => $destField) {
+       $additionalColumns = array();
+       $additionalColumns[$destField] = $GLOBALS['TCA']['static_territories']['columns'][$sourceField];
+       $additionalColumns[$destField]['label'] = 'LLL:EXT:static_info_tables_###LANG_ISO_LOWER###/Resources/Private/Language/locallang_db.xlf:static_territories_item.' . $destField;
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('static_territories', $additionalColumns);
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('static_territories', $destField, '', 'after:' . $sourceField);
+       // Add as search field
+       $GLOBALS['TCA']['static_territories']['ctrl']['searchFields'] .= ',' . $destField;
+}
+unset($additionalColumns);
+unset($additionalFields);
\ No newline at end of file
diff --git a/Resources/Private/LanguagePackTemplate/ext_tables.php b/Resources/Private/LanguagePackTemplate/ext_tables.php
deleted file mode 100644 (file)
index 1396ef2..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-$tablesAdditionalFields = array (
-       'static_countries' => array (
-               'cn_short_en' => 'cn_short_###LANG_ISO_LOWER###',
-       ),
-       'static_country_zones' => array (
-               'zn_name_en' => 'zn_name_###LANG_ISO_LOWER###',
-       ),
-       'static_currencies' => array (
-               'cu_name_en' => 'cu_name_###LANG_ISO_LOWER###',
-               'cu_sub_name_en' => 'cu_sub_name_###LANG_ISO_LOWER###',
-       ),
-       'static_languages' => array (
-               'lg_name_en' => 'lg_name_###LANG_ISO_LOWER###',
-       ),
-       'static_territories' => array (
-               'tr_name_en' => 'tr_name_###LANG_ISO_LOWER###',
-       ),
-);
-foreach ($tablesAdditionalFields as $table => $additionalFields) {
-       if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 6001000) {
-               \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($table);
-       }
-       foreach ($additionalFields as $sourceField => $destField) {
-               $additionalColumns = array();
-               $additionalColumns[$destField] = $GLOBALS['TCA'][$table]['columns'][$sourceField];
-               $additionalColumns[$destField]['label'] = 'LLL:EXT:static_info_tables_###LANG_ISO_LOWER###/Resources/Private/Language/locallang_db.xlf:' . $table . '_item.' . $destField;
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns);
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($table, $destField, '', 'after:' . $sourceField);
-               // Add as search field
-               $GLOBALS['TCA'][$table]['ctrl']['searchFields'] .= ',' . $destField;
-       }
-}
-unset($additionalColumns);
-unset($tablesAdditionalFields);
-?>
\ No newline at end of file
index ccf3bcb..d498692 100644 (file)
@@ -1,158 +1,9 @@
 <?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
+defined('TYPO3_MODE') or die();
 
 // Configure extension static template
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Static', 'Static Info Tables');
 
-$typo3Version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version);
-$extensionResourcesLanguagePath = 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xlf:';
-$extensionConfigurationTcaPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/';
-$extensionResourcesIconsPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/';
-
-// Country reference data from ISO 3166-1
-$GLOBALS['TCA']['static_countries'] = array(
-       'ctrl' => array(
-               'label' => 'cn_short_en',
-               'label_alt' => 'cn_iso_2',
-               'label_alt_force' => 1,
-               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
-               'adminOnly' => 1,
-               'rootLevel' => 1,
-               'is_static' => 1,
-               'readOnly' => 1,
-               'default_sortby' => 'ORDER BY cn_short_en',
-               'delete' => 'deleted',
-               'title' => $extensionResourcesLanguagePath . 'static_countries.title',
-               'dynamicConfigFile' => $extensionConfigurationTcaPath . 'Country.php',
-               'iconfile' => $extensionResourcesIconsPath . 'icon_static_countries.gif',
-               'searchFields' => 'cn_short_en,cn_official_name_local,cn_official_name_en'
-       ),
-       'interface' => array(
-               'showRecordFieldList' => 'cn_iso_2,cn_iso_3,cn_iso_nr,cn_official_name_local,cn_official_name_en,cn_capital,cn_tldomain,cn_currency_iso_3,cn_currency_iso_nr,cn_phone,cn_uno_member,cn_eu_member,cn_address_format,cn_short_en'
-       )
-);
-
-// Country subdivision reference data from ISO 3166-2
-$GLOBALS['TCA']['static_country_zones'] = array(
-       'ctrl' => array(
-               'label' => 'zn_name_local',
-               'label_alt' => 'zn_name_local,zn_code',
-               'adminOnly' => 1,
-               'rootLevel' => 1,
-               'is_static' => 1,
-               'readOnly' => 1,
-               'default_sortby' => 'ORDER BY zn_name_local',
-               'delete' => 'deleted',
-               'title' => $extensionResourcesLanguagePath . 'static_country_zones.title',
-               'dynamicConfigFile' => $extensionConfigurationTcaPath . 'CountryZone.php',
-               'iconfile' => $extensionResourcesIconsPath . 'icon_static_countries.gif',
-               'searchFields' => 'zn_name_en,zn_name_local'
-       ),
-       'interface' => array(
-               'showRecordFieldList' => 'zn_country_iso_nr,zn_country_iso_3,zn_code,zn_name_local,zn_name_en'
-       )
-);
-
-// Currency reference data from ISO 4217
-$GLOBALS['TCA']['static_currencies'] = array(
-       'ctrl' => array(
-               'label' => 'cu_name_en',
-               'label_alt' => 'cu_iso_3',
-               'label_alt_force' => 1,
-               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
-               'adminOnly' => 1,
-               'rootLevel' => 1,
-               'is_static' => 1,
-               'readOnly' => 1,
-               'default_sortby' => 'ORDER BY cu_name_en',
-               'delete' => 'deleted',
-               'title' => $extensionResourcesLanguagePath . 'static_currencies.title',
-               'dynamicConfigFile' => $extensionConfigurationTcaPath . 'Currency.php',
-               'iconfile' => $extensionResourcesIconsPath . 'icon_static_currencies.gif',
-               'searchFields' => 'cu_name_en'
-       ),
-       'interface' => array(
-               'showRecordFieldList' => 'cu_iso_3,cu_iso_nr,cu_name_en,cu_symbol_left,cu_symbol_right,cu_thousands_point,cu_decimal_point,cu_decimal_digits,cu_sub_name_en,cu_sub_divisor,cu_sub_symbol_left,cu_sub_symbol_right'
-       )
-);
-
-// Language reference data from ISO 639-1
-$GLOBALS['TCA']['static_languages'] = array(
-       'ctrl' => array(
-               'label' => 'lg_name_en',
-               'label_alt' => 'lg_iso_2',
-               'label_alt_force' => 1,
-               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
-               'adminOnly' => 1,
-               'rootLevel' => 1,
-               'is_static' => 1,
-               'readOnly' => 1,
-               'default_sortby' => 'ORDER BY lg_name_en',
-               'delete' => 'deleted',
-               'title' => $extensionResourcesLanguagePath . 'static_languages.title',
-               'dynamicConfigFile' => $extensionConfigurationTcaPath . 'Language.php',
-               'iconfile' => $extensionResourcesIconsPath . 'icon_static_languages.gif',
-               'searchFields' => 'lg_name_en,lg_name_local'
-       ),
-       'interface' => array(
-               'showRecordFieldList' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
-       )
-);
-
-// UN Territory reference data 
-$GLOBALS['TCA']['static_territories'] = array(
-       'ctrl' => array(
-               'label' => 'tr_name_en',
-               'label_alt' => 'tr_iso_nr',
-               'label_alt_force' => 1,
-               'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
-               'adminOnly' => 1,
-               'rootLevel' => 1,
-               'is_static' => 1,
-               'readOnly' => 1,
-               'default_sortby' => 'ORDER BY tr_name_en',
-               'delete' => 'deleted',
-               'title' => $extensionResourcesLanguagePath . 'static_territories.title',
-               'dynamicConfigFile' => $extensionConfigurationTcaPath . 'Territory.php',
-               'iconfile' => $extensionResourcesIconsPath . 'icon_static_territories.gif',
-               'searchFields' => 'tr_name_en'
-       ),
-       'interface' => array(
-               'showRecordFieldList' => 'tr_name_en,tr_iso_nr'
-       )
-);
-
-unset($extensionResourcesLanguagePath);
-unset($extensionConfigurationTcaPath);
-unset($extensionResourcesIconsPath);
-
-// Configure static language field of sys_language table
-if ($typo3Version < 6001000) {
-       \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('sys_language');
-}
-$GLOBALS['TCA']['sys_language']['columns']['static_lang_isocode']['config'] = array(
-       'type' => 'select',
-       'items' => array(
-               array('',0)
-       ),
-       'foreign_table' => 'static_languages',
-       'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
-       'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateLanguagesSelector',
-       'size' => '1',
-       'minitems' => '0',
-       'maxitems' => '1',
-       'wizards' => array(
-               'suggest' => array(
-                       'type' => 'suggest',
-                       'default' => array(
-                               'receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver'
-                       )
-               )
-       )
-);
-
 if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        /**
         * Registers the Static Info Tables Manager backend module, if enabled
@@ -183,12 +34,8 @@ if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables'])) {
                        $tableNames = array_keys($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables']);
                        foreach ($tableNames as $tableName) {
-                               if ($typo3Version < 6001000) {
-                                       \SJBR\StaticInfoTables\Utility\TcaUtility::loadTCA($tableName);
-                               }
                                $GLOBALS['TCA'][$tableName]['ctrl']['readOnly'] = 0;
                        }
                }
        }
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file