Issue Bug Closed

#14572Indexed external files have always sys_language_id=0

old_GertThiel 02/23/05, 09:43 updated 10/02/18, 12:32

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

  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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.