Project

General

Profile

Actions

Bug #14572

closed

Indexed external files have always sys_language_id=0

Added by old_GertThiel over 19 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
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.

###
  1. MULTILINGUAL CONTENT SUPPORT #
    config.linkVars = L
    config.sys_language_mode = content_fallback ; 1,0
  1. 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"
  1. 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

0000835-class.indexer.php.diff (1.3 KB) 0000835-class.indexer.php.diff Administrator Admin, 2005-02-27 13:02

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #19573: external documents linked to pages in another language than default are only found when searched in default languageClosedDmitry Dulepov2008-11-05

Actions
Actions #1

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> ### ...
  1. <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.
Actions #2

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 #3

Updated by Christian Kuhn over 15 years ago

Resolved as duplicate of #9739

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF