user_interface: add get_translator() and get_translator_name() functions

- CMakeLists.txt: upgrade cmake_policy to version 4.3
- README.md: add missing WITH_GUI flag and recommend DeepL
This commit is contained in:
Syping 2026-04-20 15:11:48 +02:00
parent 2d3f3cc365
commit 823a60d64d
4 changed files with 23 additions and 10 deletions

View file

@ -8,14 +8,14 @@ Open Source Discord Translation Bot
#### Build Dependencies
- CMake 3.16 or newer
- Compiler with C++17 Support
- curl
- [D++: A C++ Discord API Library for Bots](https://dpp.dev/)
- [libcurl](https://curl.se/libcurl)
#### Supported Translation Engines
- [LibreTranslate](https://libretranslate.com/) (Default)
- [DeepL](https://deepl.com/) (Recommended)
- [Lingva Translate](https://lingva.ml/)
- [Mozhi](https://codeberg.org/aryak/mozhi)
- [DeepL](https://deepl.com/)
#### Build dtranslatebot
@ -29,4 +29,5 @@ sudo cmake --install dtranslatebot-build
##### Optional CMake flags
`-DWITH_BOOST=TRUE`
`-DWITH_DPP_STATIC_BUNDLE=TRUE`
`-DWITH_GUI=TRUE`
`-DWITH_SYSTEMD=TRUE`