small modifications using constants
[TYPO3CMS/Extensions/static_info_tables.git] / ext_localconf.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4
5 if (!defined ('STATIC_INFO_TABLES_EXTkey')) {
6 define('STATIC_INFO_TABLES_EXTkey',$_EXTKEY);
7 }
8
9 if (!defined ('PATH_BE_staticinfotables')) {
10 define('PATH_BE_staticinfotables', t3lib_extMgm::extPath(STATIC_INFO_TABLES_EXTkey));
11 }
12
13 if (!defined ('PATH_BE_staticinfotables_rel')) {
14 define('PATH_BE_staticinfotables_rel', t3lib_extMgm::extRelPath(STATIC_INFO_TABLES_EXTkey));
15 }
16
17 if (!defined ('DIV_EXTkey')) {
18 define('DIV_EXTkey','div');
19 }
20
21 if (t3lib_extMgm::isLoaded(DIV_EXTkey)) {
22 if (!defined ('PATH_BE_div')) {
23 define('PATH_BE_div', t3lib_extMgm::extPath(DIV_EXTkey));
24 }
25 }
26
27 $TYPO3_CONF_VARS['EXTCONF'][STATIC_INFO_TABLES_EXTkey]['charset'] = 'utf-8';
28
29 $TYPO3_CONF_VARS['EXTCONF'][STATIC_INFO_TABLES_EXTkey]['tables'] = array(
30 'static_territories' => array(
31 'label_fields' => array( // possible label fields for different languages. Default as last.
32 'tr_name_##', 'tr_name_en',
33 ),
34 'isocode_field' => array(
35 'tr_iso_##',
36 ),
37 ),
38 'static_countries' => array(
39 'label_fields' => array(
40 'cn_short_##', 'cn_short_en',
41 ),
42 'isocode_field' => array(
43 'cn_iso_##',
44 ),
45 ),
46 'static_country_zones' => array(
47 'label_fields' => array(
48 'zn_name_##', 'zn_name_local',
49 ),
50 'isocode_field' => array(
51 'zn_code', 'zn_country_iso_##',
52 ),
53 ),
54 'static_languages' => array(
55 'label_fields' => array(
56 'lg_name_##', 'lg_name_en',
57 ),
58 'isocode_field' => array(
59 'lg_iso_##', 'lg_country_iso_##',
60 ),
61 ),
62 'static_currencies' => array(
63 'label_fields' => array(
64 'cu_name_##', 'cu_name_en',
65 ),
66 'isocode_field' => array(
67 'cu_iso_##',
68 ),
69 ),
70 'static_taxes' => array(
71 'label_fields' => array(
72 'tx_name_##', 'tx_name_en',
73 ),
74 'isocode_field' => array(
75 'tx_code', 'tx_country_iso_##', 'tx_zn_code',
76 ),
77 ),
78 );
79
80 require_once(t3lib_extMgm::extPath(STATIC_INFO_TABLES_EXTkey).'class.tx_staticinfotables_div.php');
81
82 ?>