DNN搜索仅在语言cookie为en-US时有效 [英] DNN Search only works when language cookie is en-US

查看:228
本文介绍了DNN搜索仅在语言cookie为en-US时有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个DNN 7.2网站,有3种语言和搜索功能。
搜索仅在语言cookie设置为en-US时有效。



如果搜索服务URL中的文化是fr-FR和语言cookie包含fr-fr,这是非常正常的,搜索将无法工作,如果我将cookie手动更改为en-US,留下的url文化是fr-fr的搜索工作原样并返回法语结果。



为什么会发生这种情况?是否有修复?

解决方案

DNN7.2搜索是Locale-Aware,意思是内容是基于语言/文化。
只有在从法语/法语页面执行搜索时才能找到fr-fr页面,同时可以从任何语言找到文化中立页面。因此,如果您的门户网站只有一种安装的语言(en-US),您将看不到该模块的任何多语言选项。



要检查的要点: / p>

  • 已启用内容本地化

    p>

  • 添加/启用单个语言(您可以在管理/语言页面中将其设为SuperUser)



  • I've a DNN 7.2 site with 3 languages and search functionality . The search works only and only if the language cookie is set to en-US .

    If the culture in the search service URL is fr-FR and the language cookie contains "fr-fr", which is very normal, the search will not work, if i changed the cookie manually to be "en-US" and left the url culture as is "fr-fr" the search works as expected and return french results .

    Why this happens ? Is there a fix ?

    解决方案

    DNN7.2 Search is Locale-Aware, meaning content is indexed and found based on language/culture. The fr-fr page can only be found when search is executed from a French/French page, at the same time, culture-neutral pages can be found from any language. So if your portal has only one installed language (en-US), you will not see any of the multilingual options of the module.

    The main points to check:

    1. Language pack installed

    2. Content Localization enabled

    3. Add/Enable individual languages (you can do this from the Admin/Languages page as SuperUser)

    这篇关于DNN搜索仅在语言cookie为en-US时有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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