mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
chore: translation handling for log messages (#787)
This commit is contained in:
@@ -302,6 +302,8 @@ See the [LICENSE.txt](LICENSE.txt) file for our project's licensing. All source
|
||||
|
||||
- All user-facing output (log messages, print statements, CLI help, etc.) must be written in **English**.
|
||||
- For every user-facing message, a **German translation** must be added to `src/kleinanzeigen_bot/resources/translations.de.yaml`.
|
||||
- Log messages are auto-translated by `TranslatingLogger`; do not wrap `LOG.*`/`logger.*` message strings with `_()`.
|
||||
- Non-log user-facing strings (e.g., `print`, `ainput`, exceptions, validation messages) should use `_()`.
|
||||
- Use the translation system for all output—**never hardcode German or other languages** in the code.
|
||||
- If you add or change a user-facing message, update the translation file and ensure that translation completeness tests pass (`tests/unit/test_translations.py`).
|
||||
- Review the translation guidelines and patterns in the codebase for correct usage.
|
||||
|
||||
Reference in New Issue
Block a user