[PR #360] [MERGED] Add lingva translation support in search #857

Closed
opened 2026-02-25 20:36:55 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/benbusby/whoogle-search/pull/360
Author: @benbusby
Created: 6/14/2021
Status: Merged
Merged: 6/15/2021
Merged by: @benbusby

Base: mainHead: feature/lingva-support


📝 Commits (4)

  • 41e6109 Add support for Lingva translations in results
  • 955fce8 Add basic test for lingva results
  • ae4fbec Allow user specified lingva instances through csp frame-src
  • 7ae7a48 Fix pep8 issue

📊 Changes

11 files changed (+109 additions, -42 deletions)

View changed files

📝 Dockerfile (+2 -0)
📝 README.md (+2 -0)
📝 app.json (+5 -0)
📝 app/__init__.py (+10 -0)
📝 app/routes.py (+17 -3)
📝 app/static/css/search.css (+6 -0)
📝 app/static/settings/translations.json (+43 -35)
📝 app/templates/display.html (+6 -0)
📝 docker-compose.yml (+1 -0)
📝 test/test_results.py (+16 -4)
📝 whoogle.env (+1 -0)

📄 Description

Searches that contain the word "translate" and are normal search queries
(i.e. not news/images/video/etc) now create an iframe to a Lingva url to
translate the user's search using their configured search language.

The Lingva url can be configured using the WHOOGLE_ALT_TL env var, or
will fall back to the official Lingva instance url (lingva.ml).

For more info, visit https://github.com/TheDavidDelta/lingva-translate

image

Closes #258
Closes #348


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/benbusby/whoogle-search/pull/360 **Author:** [@benbusby](https://github.com/benbusby) **Created:** 6/14/2021 **Status:** ✅ Merged **Merged:** 6/15/2021 **Merged by:** [@benbusby](https://github.com/benbusby) **Base:** `main` ← **Head:** `feature/lingva-support` --- ### 📝 Commits (4) - [`41e6109`](https://github.com/benbusby/whoogle-search/commit/41e61092dd46bf6fb25d3f7278ae87c43a235b34) Add support for Lingva translations in results - [`955fce8`](https://github.com/benbusby/whoogle-search/commit/955fce8ec80f2c9e81669f03a45dc7bf7e3bddcf) Add basic test for lingva results - [`ae4fbec`](https://github.com/benbusby/whoogle-search/commit/ae4fbeca9144afdb826d763a083d7ced7b47f7e0) Allow user specified lingva instances through csp frame-src - [`7ae7a48`](https://github.com/benbusby/whoogle-search/commit/7ae7a48c8672e39f5c78e5f5578e74d8d517c856) Fix pep8 issue ### 📊 Changes **11 files changed** (+109 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+2 -0) 📝 `README.md` (+2 -0) 📝 `app.json` (+5 -0) 📝 `app/__init__.py` (+10 -0) 📝 `app/routes.py` (+17 -3) 📝 `app/static/css/search.css` (+6 -0) 📝 `app/static/settings/translations.json` (+43 -35) 📝 `app/templates/display.html` (+6 -0) 📝 `docker-compose.yml` (+1 -0) 📝 `test/test_results.py` (+16 -4) 📝 `whoogle.env` (+1 -0) </details> ### 📄 Description Searches that contain the word "translate" and are normal search queries (i.e. not news/images/video/etc) now create an iframe to a Lingva url to translate the user's search using their configured search language. The Lingva url can be configured using the `WHOOGLE_ALT_TL` env var, or will fall back to the official Lingva instance url (lingva.ml). For more info, visit https://github.com/TheDavidDelta/lingva-translate ![image](https://user-images.githubusercontent.com/33362396/121950251-606b5e80-cd27-11eb-8f39-9ee3c3db7e03.png) Closes #258 Closes #348 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:36:55 +03:00
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#857
No description provided.