diff options
| author | Adrian Herrmann <adrian.herrmann@qt.io> | 2022-11-16 17:59:53 +0100 |
|---|---|---|
| committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2023-01-25 11:43:25 +0100 |
| commit | 1b161c92622dc0a1178acee04739823283d42d19 (patch) | |
| tree | 01df565a808d8d6377285ed6272a0cc47603670c /tools/snippets_translate/main.py | |
| parent | dd79ee6d29b4a628aad61e24ae361ac6cab20ebf (diff) | |
snippets_translate: Warn about possible errors
Display a message on top of pages that may contain automatically
translated snippets. The message warns about possible errors in
translation, and encourages readers to contribute or report errors.
Pick-to: 6.4
Fixes: PYSIDE-2111
Change-Id: Ib76c9da5e11934676ab4b102649396cb43f98b92
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tools/snippets_translate/main.py')
| -rw-r--r-- | tools/snippets_translate/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/snippets_translate/main.py b/tools/snippets_translate/main.py index 12b6e54f1..43f4f7627 100644 --- a/tools/snippets_translate/main.py +++ b/tools/snippets_translate/main.py @@ -371,6 +371,7 @@ def translate_file(file_path, final_path, qt_path, debug, write): target_file.parent.mkdir(parents=True, exist_ok=True) with target_file.open("w", encoding="utf-8") as out_f: + out_f.write("//! [AUTO]\n\n") out_f.write(license_header) out_f.write("\n\n") |
