whoogle-search/test
Ben Busby 4649d96dda
Support basic localization (#325)
* Replace hardcoded strings using translation json file

This introduces a new "translations.json" file under app/static/settings
that is loaded on app init and uses the user config value for interface
language to determine the appropriate strings to use in Whoogle-specific
elements of the UI (primarily only on the home page).

* Verify interface lang can be used for localization

Check the configured interface language against the available
localization dict before attempting to use, otherwise fall back to
english.

Also expanded language names in the languages json file.

* Add test for validating translation language keys

Also adds Spanish translation to json (the only non-English language I
can add and reasonably validate on my own).

* Validate all translations against original keyset, update readme

Readme has been updated to include basic contributing guidelines for
both code and translations.
2021-05-24 17:03:02 -04:00
..
__init__.py Added testing and ci build, refactored filter class, refactored project structure 2020-04-15 17:41:53 -06:00
conftest.py Fix incorrect config bool env var casting 2021-04-12 16:40:59 -04:00
test_autocomplete.py Feature: autocomplete/search suggestions (#72) 2020-05-24 14:03:11 -06:00
test_misc.py Support basic localization (#325) 2021-05-24 17:03:02 -04:00
test_results.py Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00
test_routes.py Add option to disable changing config from client (#295) 2021-04-27 10:36:03 -04:00