Allow users to set a search engine language #2076
Replies: 17 comments
-
I'm hitting this bug (bug because for me it makes searching for anything very annoying) and would be happy to see a fix for this. |
Beta Was this translation helpful? Give feedback.
-
@oliviabrown9 @brampitoyo Hey, I would like to tackle this issue if possible. However, I imagine this may require a fair bit of design input to add this feature, and I wanted to ask what the best way forward would be with regards to implementing this? |
Beta Was this translation helpful? Give feedback.
-
First, I think that we need to figure out whether a search engine has a manual language selection UI that we can tap into. Then we can redesign the “Installed search engine” page, so that they allow selecting a search engine, and selecting a search engine language (with the default being “follow the language used by the system”): Not all search engine will support multiple languages. For them, we of course won’t show the language selection on the right side of the name. |
Beta Was this translation helpful? Give feedback.
-
I agree with Bram about figuring out functionality first. I think the first two steps are:
I think UI will come after the functionality is hashed out. |
Beta Was this translation helpful? Give feedback.
-
@oliviabrown9 The screenshot is one I’ve mocked up just yesterday. It’s brand new. Happy to update it once we’ve scoped out the functionality.
This is a tricky one to figure out, but I think that region should come first, before language. So every country gets a unique ID, and if they have multiple languages, it will be listed afterwards.
And so on. But I’m not sure if region-first selection is common practice, so more research is needed. |
Beta Was this translation helpful? Give feedback.
-
Before we worry about the specifics, let's verify how possible this is. @saresend, I think the first step is investigating if we can set the search engine region and/or language across search engines programmatically. |
Beta Was this translation helpful? Give feedback.
-
Doing a bit of digging, it doesn't look like theres a unified way to approach language / region selection, however there might be options for at least some of the provided browsers to enable this functionality on a case by case basis. At least for google, it seems like there is a way to redirect to a separate language / region by building a url query against a different subdomain (theres a sample here). |
Beta Was this translation helpful? Give feedback.
-
Interesting. I would suggest starting off with just one search engine (likely Google since it’s our default and you already found a way to construct a URL). We can see how it works and investigate other search engines if it goes well. Users who prioritize language/region could always just select a search engine that allows setting. Curious to hear thoughts from @vesta0 and @Sdaswani about whether this fits into the roadmap. |
Beta Was this translation helpful? Give feedback.
-
Sounds good, I'll hold off until everyone's weighed in to confirm that this seems like a sensible path forward. |
Beta Was this translation helpful? Give feedback.
-
Based off @brampitoyo’s mocks it seems like we have to find a generalized solution for all search engines? |
Beta Was this translation helpful? Give feedback.
-
I think, to keep it as generic as possible, we should start with just offering the option to set language, and we'll base the constructed URL on that. This solution is largely generic, with the only different being slight variations on how to construct the URL. It appears that all engines are using the same standard language codes. A bit of quick researching for our default engines trying to get results in Italian: Since there is no generic solution, setting a search engine language should not be an option for custom engines, only the defaults. Bram, do you think this is ok? I think the next step is a mock from @brampitoyo with what it would look like to select the language (on iOS). Then onto @saresend. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the investigation @oliviabrown9 - I think this makes a ton of sense!
|
Beta Was this translation helpful? Give feedback.
-
Note that for search engines like Amazon, we may want to change our selection heading from “Language” to “Country”. For example, instead of saying “Amazon → English (UK)” or “Amazon → Portuguese (Brazil)”, we say “Amazon → United Kingdom” and “Amazon → Brasil”. This clarifies to the user that they’re changing not only the site language, but (more importantly) also the site where the search will be performed. |
Beta Was this translation helpful? Give feedback.
-
Seems like this is ready to be worked on. @saresend were you still wanting to tackle this? |
Beta Was this translation helpful? Give feedback.
-
Was wondering if you’re working on this @saresend ? If not, I can take a look into this |
Beta Was this translation helpful? Give feedback.
-
Hey, sorry haven't had a chance to actually go ahead and implement this just yet. I'll probably have a chance to tackle it towards the end of november, so you're welcome to go for it, and if theres anything left over by then I can take a look and wrap it up? |
Beta Was this translation helpful? Give feedback.
-
Sounds good |
Beta Was this translation helpful? Give feedback.
-
Most search engines default to the primary language in a region but have an option to set whatever your preferred language is. Of course, when we erase the session in Focus, the search engine forgets about whatever the preferred language is. Would be good to explore if there could a be a setting to force search engines into a specified language.
Beta Was this translation helpful? Give feedback.
All reactions