[GH-ISSUE #7] Add config setting for language #8

Closed
opened 2026-02-25 20:34:39 +03:00 by kerem · 10 comments
Owner

Originally created by @vdumestre on GitHub (May 10, 2020).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/7

Originally assigned to: @benbusby on GitHub.

Hi, thank's for this awsome project.

Currently, the language or the results will be depending in the country the server is.

We should be able to change the language with the tag &hl=

Originally created by @vdumestre on GitHub (May 10, 2020). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/7 Originally assigned to: @benbusby on GitHub. Hi, thank's for this awsome project. Currently, the language or the results will be depending in the country the server is. We should be able to change the language with the tag `&hl=`
kerem 2026-02-25 20:34:39 +03:00
Author
Owner

@benbusby commented on GitHub (May 10, 2020):

Good to know! Thanks for reporting, I'll look into this.

<!-- gh-comment-id:626274207 --> @benbusby commented on GitHub (May 10, 2020): Good to know! Thanks for reporting, I'll look into this.
Author
Owner

@gripped commented on GitHub (May 10, 2020):

In the meantime you can change it like this

diff -Naur a/app/request.py b/app/request.py
--- a/app/request.py    2020-05-10 13:36:54.280719768 +0000
+++ b/app/request.py    2020-05-10 13:39:10.373346079 +0000
@@ -53,7 +53,7 @@
         if not val or val is None:
             continue
         query += val
-
+    query += '&hl=en&cr=lang_en'
     return query
<!-- gh-comment-id:626340612 --> @gripped commented on GitHub (May 10, 2020): In the meantime you can change it like this ``` diff -Naur a/app/request.py b/app/request.py --- a/app/request.py 2020-05-10 13:36:54.280719768 +0000 +++ b/app/request.py 2020-05-10 13:39:10.373346079 +0000 @@ -53,7 +53,7 @@ if not val or val is None: continue query += val - + query += '&hl=en&cr=lang_en' return query ```
Author
Owner

@ilovepancakes95 commented on GitHub (May 10, 2020):

I ran Whoogle on a VPS on Vultr, with a US IP address and I am getting results in Spanish.

<!-- gh-comment-id:626403849 --> @ilovepancakes95 commented on GitHub (May 10, 2020): I ran Whoogle on a VPS on Vultr, with a US IP address and I am getting results in Spanish.
Author
Owner

@benbusby commented on GitHub (May 10, 2020):

Huh, that's strange. Well regardless, I'll prioritize this as a feature to add in soon so that nobody else experiences it moving forward.

<!-- gh-comment-id:626404997 --> @benbusby commented on GitHub (May 10, 2020): Huh, that's strange. Well regardless, I'll prioritize this as a feature to add in soon so that nobody else experiences it moving forward.
Author
Owner

@benbusby commented on GitHub (May 12, 2020):

Would anyone care to look over/try out the branch feature in #27? Just added the language config support but would like feedback from someone who was encountering the issue in the first place before I merge it in.

<!-- gh-comment-id:627048695 --> @benbusby commented on GitHub (May 12, 2020): Would anyone care to look over/try out the branch feature in #27? Just added the language config support but would like feedback from someone who was encountering the issue in the first place before I merge it in.
Author
Owner

@vdumestre commented on GitHub (May 12, 2020):

With #27
I am able to change to my language with no issue and the setting is saved. Works like a charm !
Thanks for that

<!-- gh-comment-id:627052817 --> @vdumestre commented on GitHub (May 12, 2020): With #27 I am able to change to my language with no issue and the setting is saved. Works like a charm ! Thanks for that
Author
Owner

@gripped commented on GitHub (May 12, 2020):

Seems to work well. Could change the language to something other than English on Heroku and that worked. On AWS (in Stockholm) defaulted to English, I think, and other languages could be chosen and worked.

<!-- gh-comment-id:627177662 --> @gripped commented on GitHub (May 12, 2020): Seems to work well. Could change the language to something other than English on Heroku and that worked. On AWS (in Stockholm) defaulted to English, I think, and other languages could be chosen and worked.
Author
Owner

@airdogvan commented on GitHub (May 12, 2020):

I'm running in docker, just cloned it a minute ago but apparently new code not integrated yet. My stuff is all in Arabic. Can't understand a single thing! Any solution that would work for me?

Otherwise everything seems to be working good. Thanks so much for this project.

<!-- gh-comment-id:627565539 --> @airdogvan commented on GitHub (May 12, 2020): I'm running in docker, just cloned it a minute ago but apparently new code not integrated yet. My stuff is all in Arabic. Can't understand a single thing! Any solution that would work for me? Otherwise everything seems to be working good. Thanks so much for this project.
Author
Owner

@benbusby commented on GitHub (May 12, 2020):

@airdogvan the code isn't integrated yet. After I merge the feature in I'll come back here to let everyone know and close out this request.

<!-- gh-comment-id:627622411 --> @benbusby commented on GitHub (May 12, 2020): @airdogvan the code isn't integrated yet. After I merge the feature in I'll come back here to let everyone know and close out this request.
Author
Owner

@benbusby commented on GitHub (May 12, 2020):

Resolved by merge of #27, will be included in release notes for upcoming release.

<!-- gh-comment-id:627650178 --> @benbusby commented on GitHub (May 12, 2020): Resolved by merge of #27, will be included in release notes for upcoming release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#8
No description provided.