Closed Bug 1687153 Opened 4 years ago Closed 1 month ago

Search keyword is not consistent with localized Wikipedia search engine name

Categories

(Firefox :: Search, defect, P3)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- fixed
firefox131 --- fixed
firefox132 --- fixed
firefox133 --- fixed

People

(Reporter: mstanke, Assigned: mbeier)

References

Details

(Keywords: papercut, Whiteboard: [sng-scrubbed][search-papercut])

Attachments

(6 files)

The Wikipedia has a search keyword @wikipedia in Firefox, however in Czech the name is Wikipedie (see the logo in the top left https://cs.wikipedia.org/wiki/Hlavn%C3%AD_strana) and so the keyword should match the name.

Flod, are the keywords hardcoded, or can they be changed per locale, please?

Also I noticed not all search engines that ship with Czech Firefox by default have keyword configured by default. Is that desired to have the keywords only for the most prominent engines, or shall we provide keywords for all engines?

Flags: needinfo?(francesco.lodolo)
Summary: Search keyword is not consistent with Wikipedia search name → Search keyword is not consistent with localized Wikipedia search engine name

As far as I know, they're hard-coded. Not sure if Mark knows more about them, and if the issue was already considered, or can redirect the question.

Flags: needinfo?(francesco.lodolo) → needinfo?(standard8)
Component: cs / Czech → Search
Product: Mozilla Localizations → Firefox

I just checked, we'd be alright to add localised versions for Wikipedia.

I think the best way would be to change the keyword definition into an array, which contains a string that we localise per locale in a similar way to the name, and the standard English string.

We'd need a small fix to de-dupe the aliases for the English locale, but otherwise I think that would work.

Severity: -- → S3
Flags: needinfo?(standard8)
Priority: -- → P2
Keywords: papercut

We cant translate https://searchfox.org/mozilla-central/source/browser/components/search/extensions/ddg/manifest.json#20 directly. may need to turn into comma seperate string

Whiteboard: [snt-scrubbed][search-papercut]
Priority: P2 → P3
See Also: → 387070

We're going to look at fixing this just after, or maybe as part of, our search configuration redesign work.

Depends on: search-config-v2
Whiteboard: [snt-scrubbed][search-papercut] → [sng-scrubbed][search-papercut]

For all the Wikipedias it seems it would be reasonable to end up with:

  • A keyword for the English name wikipedia
  • Where different: a keyword for the localised name

The localised keyword one should come first and then the English keyword.

Assignee: nobody → mbeier
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a906f94fdf75 Prepare test_wikipedia.js for localized Wikipedia keywords. r=Standard8
Attachment #9429845 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Needed for new remote settings config, otherwise this test will fail.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: only changes in a test
  • String changes made/needed: no
  • Is Android affected?: no
Attachment #9429846 - Flags: approval-mozilla-esr128?

esr128 Uplift Approval Request

  • User impact if declined: Needed for new remote settings config, otherwise this test will fail.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: only changes a test
  • String changes made/needed: no
  • Is Android affected?: no
Attachment #9429847 - Flags: approval-mozilla-release?

release Uplift Approval Request

  • User impact if declined: Needed for new remote settings config, otherwise this test will fail.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: only changes a test
  • String changes made/needed: no
  • Is Android affected?: no

The updated config is on staging now. It should add the localized keywords to all locales where the local name is not Wikipedia (e.g. typing @wikipedie in the urlbar in cs locale should set the searchmode to Wikipedia). It should also work with RTL locales and the english @wikipedia should still work for all locales.

Flags: needinfo?(cbaica)
Flags: needinfo?(aflorinescu)
Attachment #9429845 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9429847 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9429846 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128+

The issue is verified fixed using Fx 133.0a1, Fx 132.0b5, Fx 131.0.2 and Fx 128.3.1ESR on Windows 11, Ubuntu 24 and macOS with RS set to Staging.
Wikipedia searchmode is correctly launched when inputing the localized alias or the english alias of the engine. The testing results can be viewed here.

A note worthy of mention here is that the BE locale has 2 wikipedia engines localized in be and be-tarask. Typing the localized string has no issue and launches the correct and expected wikipedia searchmode. Problem arises with the obvious conflict, both engines have the english alias and when typing @wikipedia launches the be-tarask wikipedia searchmode.

Flags: needinfo?(standard8)
Flags: needinfo?(mbeier)
Flags: needinfo?(cbaica)
Flags: needinfo?(aflorinescu)

Thank you very much for checking this. I removed the @wikipedia alias from be-tarask and the changes are now on staging (in review). Mark suggested this since the user can still edit the aliases.

Flags: needinfo?(standard8)
Flags: needinfo?(mbeier)
Flags: needinfo?(cbaica)

Confirming that be-tarask no longer has the @wikipedia alias, but the localized alias for be-tarask still works and now the @wikipedia correctly goes in the BE locale wikipedia searchmode.

From a QA standpoint this is ready for PROD push.

Flags: needinfo?(standard8)
Flags: needinfo?(mbeier)
Flags: needinfo?(cbaica)

Thanks, the changes are now on production.

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Flags: needinfo?(standard8)
Flags: needinfo?(mbeier)
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: