* Added Catalan, Bosnian and Korean languages.
authorKasper Skårhøj <kasper@typo3.org>
Thu, 2 Sep 2004 10:58:48 +0000 (10:58 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Thu, 2 Sep 2004 10:58:48 +0000 (10:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@449 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_cs.php
t3lib/class.t3lib_page.php
t3lib/config_default.php
t3lib/stddb/tbl_be.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/cms/tslib/index_ts.php
typo3/sysext/setup/mod/locallang.xml

index e53c6a5..052f183 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-02  Kasper Skårhøj,,,  <kasper@typo3.com>
+
+       * Added Catalan, Bosnian and Korean languages.
+
 2004-08-29  Kasper Skårhøj,,,  <kasper@typo3.com>
 
        * Added a wildcard like option for values in the "language" condition in frontend (matchcondition class). Can now match any language found in the HTTP_ACCEPT_LANGUAGE value.
index 99ce22e..2a1283b 100755 (executable)
@@ -433,6 +433,9 @@ class t3lib_cs {
                'jp' => 'shift_jis',
                'lv' => 'utf-8',
                'vn' => 'utf-8',
+               'ca' => 'iso-8859-15',
+               'ba' => 'iso-8859-2',
+               'kr' => 'euc-kr',
        );
 
        /**
index df7c1e3..efd74b3 100755 (executable)
@@ -628,7 +628,7 @@ class t3lib_pageSelect {
         * Does a recursive search if the mounted page should be a mount page itself. It has a run-away break so it can't go into infinite loops.
         *
         * @param       integer         Page id for which to look for a mount pid. Will be returned only if mount pages are enabled, the correct doktype (7) is set for page and there IS a mount_pid (which has a valid record that is not deleted...)
-        * @param       array           Optional page record for the page id. If not supplied it will be looked up by the system.
+        * @param       array           Optional page record for the page id. If not supplied it will be looked up by the system. Must contain at least uid,pid,doktype,mount_pid,mount_pid_ol
         * @param       array           Array accumulating formerly tested page ids for mount points. Used for recursivity brake.
         * @param       integer         The first page id.
         * @return      mixed           Returns FALSE if no mount point was found, "-1" if there should have been one, but no connection to it, otherwise an array with information about mount pid and modes.
index 0e48a99..8c84b1e 100755 (executable)
@@ -225,12 +225,11 @@ define('TYPO3_extTableDef_script', $typo_db_extTableDef_script);
 
        // Defining backend system languages
        // Remember to
-       //              - update 'setup' extension labels (ext/setup/mod/locallang.php)
+       //              - update 'setup' extension labels (sysext/setup/mod/locallang.xml)
        //              - pages.lang item array (t3lib/stddb/tbl_be.php)
-       //              - Kickstarter wizard (ext/extrep_wizard/pi/class.tx_extrepwizard.php)
-       //              - Add new file: sysext/lang/locallang_core.[lang_key].php
+       //              - Kickstarter wizard (ext/kickstarter/modfunc1/class.tx_kickstarter_wizard.php)
        //              - Add character encoding for lang key in t3lib/class.t3lib_cs.php
-define('TYPO3_languages', 'default|dk|de|no|it|fr|es|nl|cz|pl|si|fi|tr|se|pt|ru|ro|ch|sk|lt|is|hr|hu|gl|th|gr|hk|eu|bg|br|et|ar|he|ua|lv|jp|vn');
+define('TYPO3_languages', 'default|dk|de|no|it|fr|es|nl|cz|pl|si|fi|tr|se|pt|ru|ro|ch|sk|lt|is|hr|hu|gl|th|gr|hk|eu|bg|br|et|ar|he|ua|lv|jp|vn|ca|ba|kr');
 
        // Unsetting the configured values. Use of these are depreciated.
 unset($typo_db);
index a112483..58e6860 100755 (executable)
@@ -273,41 +273,44 @@ $TCA['be_users'] = Array (
                                'type' => 'select',
                                'items' => Array (
                                        Array('English', ''),
+                                       Array('Arabic', 'ar'),
+                                       Array('Basque', 'eu'),
+                                       Array('Bosnian', 'ba'),
+                                       Array('Brazilian Portuguese', 'br'),
+                                       Array('Bulgarian', 'bg'),
+                                       Array('Catalan', 'ca'),
+                                       Array('Chinese (Simpl)', 'ch'),
+                                       Array('Chinese (Trad)', 'hk'),
+                                       Array('Croatian', 'hr'),
+                                       Array('Czech', 'cz'),
                                        Array('Danish', 'dk'),
+                                       Array('Dutch', 'nl'),
+                                       Array('Estonian', 'et'),
+                                       Array('Finnish', 'fi'),
+                                       Array('French', 'fr'),
                                        Array('German', 'de'),
-                                       Array('Norwegian', 'no'),
+                                       Array('Greek', 'gr'),
+                                       Array('Greenlandic', 'gl'),
+                                       Array('Hebrew', 'he'),
+                                       Array('Hungarian', 'hu'),
+                                       Array('Icelandic', 'is'),
                                        Array('Italian', 'it'),
-                                       Array('French', 'fr'),
-                                       Array('Spanish', 'es'),
-                                       Array('Dutch', 'nl'),
-                                       Array('Czech', 'cz'),
+                                       Array('Japanese', 'jp'),
+                                       Array('Korean', 'kr'),
+                                       Array('Latvian', 'lv'),
+                                       Array('Lithuanian', 'lt'),
+                                       Array('Norwegian', 'no'),
                                        Array('Polish', 'pl'),
-                                       Array('Slovenian', 'si'),
-                                       Array('Finnish', 'fi'),
-                                       Array('Turkish', 'tr'),
-                                       Array('Swedish', 'se'),
                                        Array('Portuguese', 'pt'),
-                                       Array('Russian', 'ru'),
                                        Array('Romanian', 'ro'),
-                                       Array('Chinese (Simpl)', 'ch'),
+                                       Array('Russian', 'ru'),
                                        Array('Slovak', 'sk'),
-                                       Array('Lithuanian', 'lt'),
-                                       Array('Icelandic', 'is'),
-                                       Array('Croatian', 'hr'),
-                                       Array('Hungarian', 'hu'),
-                                       Array('Greenlandic', 'gl'),
+                                       Array('Slovenian', 'si'),
+                                       Array('Spanish', 'es'),
+                                       Array('Swedish', 'se'),
                                        Array('Thai', 'th'),
-                                       Array('Greek', 'gr'),
-                                       Array('Chinese (Trad)', 'hk'),
-                                       Array('Basque', 'eu'),
-                                       Array('Bulgarian', 'bg'),
-                                       Array('Brazilian Portuguese', 'br'),
-                                       Array('Estonian', 'et'),
-                                       Array('Arabic', 'ar'),
-                                       Array('Hebrew', 'he'),
+                                       Array('Turkish', 'tr'),
                                        Array('Ukrainian', 'ua'),
-                                       Array('Latvian', 'lv'),
-                                       Array('Japanese', 'jp'),
                                        Array('Vietnamese', 'vn'),
                                )
                        )
index 9fb1915..2bc861d 100755 (executable)
                        }
                }
 
-                       // Indexing the page?
-               if ($this->isSearchIndexPage()) {
-                       $GLOBALS['TT']->push('Index page','');
-                               $indexer = t3lib_div::makeInstance('tx_indexedsearch_indexer');
-                               $indexer->init($this->content,$this->config['config'],$this->id,$this->type,$this->gr_list,$this->cHash_array,$this->register['SYS_LASTCHANGED'],$this->config['rootLine']);
-                               $indexer->indexTypo3PageContent();
-                       $GLOBALS['TT']->pull();
-               } elseif ($this->config['config']['index_enable'] && $this->no_cache) {
-                       $GLOBALS['TT']->push('Index page','');
-                       $GLOBALS['TT']->setTSlogMessage('Index page? No, page was set to "no_cache" and so cannot be indexed.');
-                       $GLOBALS['TT']->pull();
+                       // Hook for indexing pages
+               if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'])) {
+                       foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'] as $_classRef) {
+                               $_procObj = &t3lib_div::getUserObj($_classRef);
+                               $_procObj->hook_indexContent($this);
+                       }
                }
 
                        // Convert char-set for output:
@@ -2318,15 +2313,6 @@ if (version == "n3") {
        }
 
        /**
-        * Returns true if page should be indexed.
-        *
-        * @return      boolean
-        */
-       function isSearchIndexPage()    {
-               return t3lib_extMgm::isLoaded('indexed_search') && $this->config['config']['index_enable'] && !$this->no_cache;
-       }
-
-       /**
         * Returns the mode of XHTML cleaning
         *
         * @return      string          Keyword: "all", "cached" or "output"
index 3ae343f..13f4849 100755 (executable)
@@ -348,10 +348,6 @@ if ($TSFE->isGeneratePage())       {
                        require_once(PATH_tslib.'class.tslib_pagegen.php');
                        include(PATH_tslib.'pagegen.php');
                }
-               if ($TSFE->isSearchIndexPage()) {
-                       if ($TSFE->config['config']['index_externals']) {require_once(PATH_t3lib.'class.t3lib_htmlmail.php');}
-                       require_once(t3lib_extMgm::extPath('indexed_search','class.indexer.php'));
-               }
                $TSFE->generatePage_postProcessing();
 } elseif ($TSFE->isINTincScript())     {
        require_once(PATH_tslib.'class.tslib_pagegen.php');
index 1ed4820..b1326d5 100755 (executable)
@@ -48,6 +48,9 @@
                        <label index="lang_lv">Latvian</label>
                        <label index="lang_jp">Japanese</label>
                        <label index="lang_vn">Vietnamese</label>
+                       <label index="lang_ca">Catalan</label>
+                       <label index="lang_ba">Bosnian</label>
+                       <label index="lang_kr">Korean</label>
                        <label index="default">Default</label>
                        <label index="simulate">Simulate backend user</label>
                        <label index="opening">Startup</label>