[epiphany] gschema: Include the exact needed lang query parameters for search engines
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] gschema: Include the exact needed lang query parameters for search engines
- Date: Fri, 14 Jan 2022 00:56:30 +0000 (UTC)
commit 18a48b41a9387035da285a456083b976c2176a01
Author: vanadiae <vanadiae35 gmail com>
Date: Thu Jan 13 22:06:16 2022 +0100
gschema: Include the exact needed lang query parameters for search engines
This avoids having translators need to look for them, especially
as oftentimes they don't even keep it in the URL, but instead store
it e.g. as cookies.
Fixes #1678
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1062>
data/org.gnome.epiphany.gschema.xml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/data/org.gnome.epiphany.gschema.xml b/data/org.gnome.epiphany.gschema.xml
index acd819cac..7fcac67b3 100644
--- a/data/org.gnome.epiphany.gschema.xml
+++ b/data/org.gnome.epiphany.gschema.xml
@@ -35,8 +35,12 @@
</key>
<key type="aa{sv}" name="search-engine-providers">
<!-- TRANSLATORS: These are the prepopulated search engines. You should
- add country-specific URL query parameters if appropriate (i.e. generally
- by adding &hl=your_language_code or by changing the domain name's TLD).
+ add country-specific URL query parameters if appropriate or change
+ the domain name's TLD. The different query parameters to be used for each
+ engine is as follows:
+ - DuckDuckGo: kl=country-language (see https://duckduckgo.com/params)
+ - Google: hl=lang (see
https://developers.google.com/custom-search/docs/xml_results_appendices#interfaceLanguages)
+ - Bing: cc=country (see
https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/language-support)
You are allowed to add search engines here, *if they make sense*. Please
don't add your favorite search engine just because you like it though,
only do it for search engines that are already widely used in this specific
country.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]