Rename directory Configuration/Tca to Configuration/TCA
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 22 Sep 2014 13:50:24 +0000 (13:50 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 22 Sep 2014 13:50:24 +0000 (13:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@86389 735d13b6-9817-0410-8766-e36946ffe9aa

Configuration/TCA/Country.php [new file with mode: 0644]
Configuration/TCA/CountryZone.php [new file with mode: 0644]
Configuration/TCA/Currency.php [new file with mode: 0644]
Configuration/TCA/Language.php [new file with mode: 0644]
Configuration/TCA/Territory.php [new file with mode: 0644]

diff --git a/Configuration/TCA/Country.php b/Configuration/TCA/Country.php
new file mode 100644 (file)
index 0000000..04ba5c6
--- /dev/null
@@ -0,0 +1,277 @@
+<?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
new file mode 100644 (file)
index 0000000..8430283
--- /dev/null
@@ -0,0 +1,93 @@
+<?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
new file mode 100644 (file)
index 0000000..f1636df
--- /dev/null
@@ -0,0 +1,176 @@
+<?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
new file mode 100644 (file)
index 0000000..a7512f3
--- /dev/null
@@ -0,0 +1,111 @@
+<?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
new file mode 100644 (file)
index 0000000..97c82d0
--- /dev/null
@@ -0,0 +1,76 @@
+<?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