QT_EXCLUDE_FROM_TRANSLATION

Diese Eigenschaft wurde in Qt 6.7 eingeführt.

Setzen Sie diese Zieleigenschaft auf ON, um es von der Übersetzung auszuschließen. Der Befehl qt_collect_translation_source_targets überspringt solche Ziele.

Um alle Ziele unter einem Unterverzeichnis auszuschließen, verwenden Sie die Verzeichniseigenschaft QT_EXCLUDE_FROM_TRANSLATION.

Beispiele

Im folgenden Beispiel werden übersetzbare Zeichenketten nicht aus dem Ziel mytest extrahiert.

qt_add_executable(myapp main.cpp)
qt_add_executable(mytest test.cpp)
set_property(TARGET mytest PROPERTY QT_EXCLUDE_FROM_TRANSLATION ON)
qt_add_translations(myapp)

Siehe auch QT_EXCLUDE_SOURCES_FROM_TRANSLATION.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.