TYPO3:indexed_search和language [英] TYPO3: indexed_search and language

查看:158
本文介绍了TYPO3:indexed_search和language的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用indexed_search搜索,该页面包含

If I make a search with indexed_search the page has contents like

Search for: xxx
Page 1
Page x
Next >
Size
Created

,但页面的语言是另一个。这对于默认语言(德语)和另一种语言(slovenski)是正确的。插件的配置具有语言默认 Slovenski

but the language of the page is another one. This is true for the default language (german) and another language (slovenski). The configuration of the plugin has either the Language Default or Slovenski.

我已设置 config.language 参数

config {
    linkVars = L
    sys_language_mode = content_fallback
    sys_language_overlay = hideNonTranslated
    sys_language_uid = 0
    language = de
    locale_all = de_DE
}

[globalVar = GP:L=]
config {
  sys_language_uid = 0
  language = de_DE
  local_all = de_DE
  htmlTag_langKey = de
}
[global]

[globalVar = GP:L = 1]
config {
    sys_language_uid = 1
    language = en
    locale_all = en_EN
}
[global]

[globalVar = GP:L=2]
config {
     sys_language_uid = 2
     language = it
     local_all = it_IT
}
[global]

[globalVar = GP:L=3]
config {
     sys_language_uid = 3
     language = sl
     local_all = sl_SL
}
[global]

在翻译处理中,选择我的语言并单击检查存储库状态。但我只能对所有条目获得 N / A

In translation handling I select my languages and click "Check status against repository". But I only get N/A for all entries.

在typo3conf / l10n / de / indexed_search /请参阅 de.locallang.xml 。如果是正确的文件文件是现有的,但总是搜索结果的信息以英语显示。

In typo3conf/l10n/de/indexed_search/pi I see a de.locallang.xml. If it is the right file the file is existing, but always the infos of the search results are displayed in English. What is wrong?

推荐答案

您有哪种类型的问题?


  1. 搜索插件(字段
    标签,说明文字)中的文字用错误的语言


要解决1:

在Extension Manager - >翻译处理中选择所有需要的语言。然后单击从存储库更新,并等待所有扩展程序的所有语言文件都已下载。

To solve 1.:
Ctrl-select all needed languages in "Extension Manager" -> "Translation handling". Then click "Update from repository" and wait until all language files for all extensions have been downloaded.

要解决2:

添加语言依赖于plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang到您的TS-Setup。

To solve 2.:
Add a language dependent setting for plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang to your TS-Setup.

您的设置有多个缺陷,所以我给你一个完整的例子TS-在这里设置:

Your setup has multiple flaws by the way, so I give you a complete example for TS-Setup here:

# German language
config.sys_language_uid = 0
config.language = de
config.htmlTag_langKey = de-DE
# the following can differ depending on server OS, e.g. "de_DE.UTF8" on Linux or "german" on Windows:
config.locale_all = de_DE
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0

# English language
[globalVar = GP:L=1]
  config.sys_language_uid = 1
  config.language = en
  config.htmlTag_langKey = en-US
  config.locale_all = en_US
  plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 1
[global]

# Italian language
[globalVar = GP:L=2]
  config.sys_language_uid = 2
  config.language = it
  config.htmlTag_langKey = it-IT
  config.locale_all = it_IT
  plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 2
[global]

这篇关于TYPO3:indexed_search和language的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆