Actions
Bug #14572
closedIndexed external files have always sys_language_id=0
Start date:
2005-02-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
My site is bi-lingual -- Swiss German (default) and English (secondary). And hence has two search pages.
Searching content in the default language yield all results as expected. Searching content in the secondary language delivers no results in external files.
While analysing the table index_phash I learned that rows representing external files always have sys_language_id=0.
###- MULTILINGUAL CONTENT SUPPORT
#
config.linkVars = L
config.sys_language_mode = content_fallback ; 1,0
- Setup the Default Language: German (Schwitzerland)
config.sys_language_uid = 0
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0
config.language = de
config.locale_all = de_CH
config.htmlTag_langKey = de_CH
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml"
xml:lang="de_CH" lang="de_CH"
- This Sets Up English
[globalVar = GP:L = 1]
config.sys_language_uid = 1
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 1
config.language = en
config.locale_all = en_US
config.htmlTag_langKey = en
xml:lang="en" lang="en"
[global]
(issue imported from #M835)
Files
Updated by old_GertThiel over 19 years ago
After even more serious investigation I'm sure, that the Indexed Search is
responsible for my troubles.
I updated class.indexer.php (setExtHashes and submitFilePage) to implement a
hack that solves my problem. I marked to modified areas with ### GT> ### ...
responsible for my troubles.
I updated class.indexer.php (setExtHashes and submitFilePage) to implement a
hack that solves my problem. I marked to modified areas with ### GT> ### ...
- <GT ###. First test prooved, that I did not add syntax or other obvious
errors. But as this was my very first dive into Typo3 source code, I can't
guarantee for anything.
Updated by Michael Stucki over 19 years ago
OK I've just shortened the Typoscript code in the bug description to make it more readable.
I've attached a patch and will remove the full file now.
Actions