[PR #325] [MERGED] Implement localization framework #842

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

📋 Pull Request Information

Original PR: https://github.com/benbusby/whoogle-search/pull/325
Author: @benbusby
Created: 5/24/2021
Status: Merged
Merged: 5/24/2021
Merged by: @benbusby

Base: mainHead: feature/localization


📝 Commits (4)

  • ef6bb5f Replace hardcoded strings using translation json file
  • 041689d Verify interface lang can be used for localization
  • eacc712 Add test for validating translation language keys
  • c874085 Validate all translations against original keyset, update readme

📊 Changes

10 files changed (+219 additions, -78 deletions)

View changed files

📝 README.md (+55 -4)
📝 app/__init__.py (+2 -0)
📝 app/models/config.py (+13 -0)
📝 app/routes.py (+6 -0)
📝 app/static/settings/countries.json (+1 -1)
📝 app/static/settings/languages.json (+46 -46)
app/static/settings/translations.json (+58 -0)
📝 app/templates/display.html (+1 -1)
📝 app/templates/index.html (+24 -26)
📝 test/test_misc.py (+13 -0)

📄 Description

Introduces a basic method of translating the Whoogle-specific UI elements
using a new "translations.json" file. Currently it only supports English
and Spanish, but is easy to add more later.

Closes #256


🔄 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/325 **Author:** [@benbusby](https://github.com/benbusby) **Created:** 5/24/2021 **Status:** ✅ Merged **Merged:** 5/24/2021 **Merged by:** [@benbusby](https://github.com/benbusby) **Base:** `main` ← **Head:** `feature/localization` --- ### 📝 Commits (4) - [`ef6bb5f`](https://github.com/benbusby/whoogle-search/commit/ef6bb5fec09d45729a5e88ac8d9c3ddf780123f9) Replace hardcoded strings using translation json file - [`041689d`](https://github.com/benbusby/whoogle-search/commit/041689d6378bbd3eb207d2db6f7aaffea0aac405) Verify interface lang can be used for localization - [`eacc712`](https://github.com/benbusby/whoogle-search/commit/eacc7126b5c144c9157eb76be4e72dfe5d77bd69) Add test for validating translation language keys - [`c874085`](https://github.com/benbusby/whoogle-search/commit/c87408536c31e0c0f3c9811376c8058800f39db3) Validate all translations against original keyset, update readme ### 📊 Changes **10 files changed** (+219 additions, -78 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+55 -4) 📝 `app/__init__.py` (+2 -0) 📝 `app/models/config.py` (+13 -0) 📝 `app/routes.py` (+6 -0) 📝 `app/static/settings/countries.json` (+1 -1) 📝 `app/static/settings/languages.json` (+46 -46) ➕ `app/static/settings/translations.json` (+58 -0) 📝 `app/templates/display.html` (+1 -1) 📝 `app/templates/index.html` (+24 -26) 📝 `test/test_misc.py` (+13 -0) </details> ### 📄 Description Introduces a basic method of translating the Whoogle-specific UI elements using a new "translations.json" file. Currently it only supports English and Spanish, but is easy to add more later. Closes #256 --- <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:52 +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#842
No description provided.