mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Add a setting to select the language in the options dialog
All translations have been updated, and translations of the actions in the library have been fixed.
This commit is contained in:
34
AGENTS.md
34
AGENTS.md
@ -17,6 +17,40 @@ Build options:
|
||||
- `BUILD_SERVER_STANDALONE=ON`: builds only `YACReaderLibraryServer` (headless), requires only Qt 6.4+
|
||||
- `BUILD_TESTS=ON` (default): enables the test suite
|
||||
|
||||
## Translations
|
||||
|
||||
Use CMake translation targets (Qt LinguistTools integration), not ad-hoc `lupdate` calls.
|
||||
|
||||
Update `.ts` files from source code (C++ + QML):
|
||||
|
||||
```bash
|
||||
cmake --build build --target update_translations
|
||||
```
|
||||
|
||||
On multi-config generators (Visual Studio / Ninja Multi-Config), include config:
|
||||
|
||||
```bash
|
||||
cmake --build build --config Release --target update_translations
|
||||
```
|
||||
|
||||
Build `.qm` files:
|
||||
|
||||
```bash
|
||||
cmake --build build --target release_translations
|
||||
```
|
||||
|
||||
Multi-config variant:
|
||||
|
||||
```bash
|
||||
cmake --build build --config Release --target release_translations
|
||||
```
|
||||
|
||||
Important:
|
||||
- Do not run `lupdate` only on `qml.qrc` (or only on a subset of files), because that can mark unrelated translations as obsolete.
|
||||
- In `YACReaderLibrary`, `qt_add_translations(...)` is configured to scan full target sources and include QML from `qml.qrc`.
|
||||
- `update_translations` updates both locale TS files and `*_source.ts` template files for all apps.
|
||||
- `*_source.ts` files are translator base templates and must not be treated as shipped locales.
|
||||
|
||||
## Tests
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user