为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Language of Wikipedia searches chosen seemingly at random

  • 9 个回答
  • 4 人有此问题
  • 23 次查看
  • 最后回复者为 cor-el

more options

I have defined multiple languages in my Firefox content preferences. Now, when I use the !w keyword in the search bar for Wikipedia searches, the language version of Wikipedia is chosen seemingly at random. Observe the two screenshots attached where nothing was changed between the two searches except the word to search for. Still one of the searches was made in English Wikipedia and the other in Estonian Wikipedia. And, per Murphy's law, each of them went to the wrong version (the English query to the Estonian site and the Estonian query to the English site). I could live with the searches going either way as long as it's consistent (then I would know how to write my queries). As it stands now it's almost unusable. Firefox 54.0.1 (32-bit) with English UI. Windows 7 Pro SP1 (64-bit) with English UI, in case that matters.

I have defined multiple languages in my Firefox content preferences. Now, when I use the !w keyword in the search bar for Wikipedia searches, the language version of Wikipedia is chosen seemingly at random. Observe the two screenshots attached where nothing was changed between the two searches except the word to search for. Still one of the searches was made in English Wikipedia and the other in Estonian Wikipedia. And, per Murphy's law, each of them went to the wrong version (the English query to the Estonian site and the Estonian query to the English site). I could live with the searches going either way as long as it's consistent (then I would know how to write my queries). As it stands now it's almost unusable. Firefox 54.0.1 (32-bit) with English UI. Windows 7 Pro SP1 (64-bit) with English UI, in case that matters.
已附加屏幕截图

被采纳的解决方案

On the "Options/Preferences -> Search" page you can double-click in the keyword column next to a specific search engine to set or modify this keyword.

定位到答案原位置 👍 1

所有回复 (9)

more options

What is the order of the installed languages?

  • Options/Preferences -> Content -> Languages

Do you only get languages that show in this list? Does this also happen if you only set one language?


You can save a backup of the intl.accept_languages pref that you can find on the about:config page if you want to be able to restore the installed languages list.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

Hi, the language preferences are Estonian [et], English [en], Russian [ru], German [de]. So far I have only seen Wikipedia in the two first languages, never the two last ones or any other. Will try reducing the list to just one language and get back to you with the results.

more options

With English the only language in the accepted list, queries for both 'maa' and 'earth' went to English Wikipedia. However, with Estonian the only language, still the query for 'maa' went to English Wikipedia, so it seems in case of non-English preference, even reducing the list to one language does not guarantee stable results.

more options

It seems to me the issue is between the browser core and the search engine interface, as going to Wikipedia's language-neutral front page (https://www.wikipedia.org/) and doing any searches there I seem to consistently get the Estonian version (my first preferred language).

more options

Is there a way to split the !w keyword into two, one for English and one for Estonian Wikipedia? I do have both of these defined as custom search engines and when using mouse to select one of them after typing the query, the results are consistent. However, I haven't found a way to define my own search bar keywords. Have looked in both Options -> Search and also in about:config.

more options

It could also be an issue with your system's language. If Localization settings are set to either Estonia or English, but your settings are set the opposite, you might have had issues this way. I know I had, especially when traveling to other places. It sets localization language to the native one and it becomes a mess to deal with. See if this helps you.

more options

选择的解决方案

On the "Options/Preferences -> Search" page you can double-click in the keyword column next to a specific search engine to set or modify this keyword.

more options

Thank you, cor-el, that helps some.

A heads-up to those reading the thread later: the keywords seem to work on the location bar, but not on the search bar. And the keyword needs to be used as-is on the location bar (that is, do not prefix it with the exclamation mark, like you would to switch between the built-in engines on the search bar).

more options

You can't use a keyword on the search bar, a keyword only works in the location/address bar because you want to open a web page and pass parameters to this website. The keyword is only an alias (shortcut) for this URL. For the search bar you will have to select the search engine in the list that shows in the drop-down list if you do not want to use the default search engine.