QT_EXCLUDE_SOURCES_From_TRANSLATION
이 프로퍼티는 Qt 6.7에 도입되었습니다.
이 대상 프로퍼티는 번역에서 제외되는 소스 파일 경로 목록을 지정합니다. 이 제외 목록의 패턴과 일치하는 소스 파일은 lupdate
에 의해 무시됩니다.
경로는 CMAKE_CURRENT_SOURCE_DIR
에 대한 절대 또는 상대 경로일 수 있습니다. 경로에는 QRegularExpression::wildcardToRegularExpression 에서 허용하는 형식의 와일드카드가 포함될 수 있습니다.
예제
untranslatable.cpp
및 3rdparty
디렉터리 아래의 모든 파일을 재귀적으로 제외합니다.
qt_add_executable(myapp main.cpp untranslatable.cpp 3rdparty/sqlite/sqlite3.h 3rdparty/sqlite/sqlite3.c 3rdparty/zlib/src/gzlib.c 3rdparty/zlib/src/zlib.h ) set_property(TARGET myapp PROPERTY QT_EXCLUDE_SOURCES_FROM_TRANSLATION untranslatable.cpp 3rdparty/* )
qt_add_lupdate, 대상 속성 QT_EXCLUDE_FROM_TRANSLATION 및 디렉터리 속성 QT_EXCLUDE_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.