Commit Graph

7 Commits

Author SHA1 Message Date
Benoit Pierre
fbcda02726 tests: fix translator tests tags 2024-12-25 17:29:40 +01:00
Eric P Hutchins
76a7633531 Translator: add romanizations setting in Translation settings (#12829)
This adds a new setting in "Translation settings" called "Show romanizations" which tells the translation popup to include in the query the parameter dt=rm and then extracts romanizations from the results to display.
2024-12-02 23:05:52 +01:00
Benoit Pierre
e10017042e tests: tweak tags
Drop `nocov` tag for tests already tagged with `notest`
(already ignored when doing a coverage run).
2024-11-25 22:55:57 +01:00
Benoit Pierre
8f6fae81fa tests: tag tests relying on a working internet access (#10939)
So they can easily be filtered-out when offline.
2023-09-24 18:18:03 +02:00
poire-z
22b7f17cd8 Fix translator, enable selected text translation
Update translator.lua to use a still working google translate API.
Add a method to show translations (main and alternates) in
a TextViewer.
Re-enable "Translate" button in text selection/highlight buttons
dialog.
Target language can be set with a manually added setting:
    translator_target_language = "fr"
and will fallback to the UI language.
2018-12-17 15:19:25 +01:00
Frans de Jonge
e3c17aa6d0 Travis: run luacheck on unit tests (#3059)
* Travis: run luacheck on unit tests
2017-08-08 13:35:40 -07:00
Frans de Jonge
2096a27b65 test: add translator spec (#2953) 2017-06-13 00:11:43 -07:00