lrelease-pro 사용
lrelease-pro 명령줄 도구는 qmake 프로젝트(.pro 파일)에서 QM 파일을 생성합니다. 이 도구는 프로젝트 파일에서 TRANSLATIONS 변수를 읽고 해당 QM 파일을 생성합니다.
qmake 프로젝트가 있고 .pro 파일에 정의된 번역을 기반으로 QM 파일을 생성하려는 경우 lrelease-pro 을 사용하세요.
lrelease-pro 구문
lrelease-pro [options] [project-file]...
Where:
options는 하나 또는 여러 개의 lrelease-pro 옵션을 의미합니다.project-file는 처리할 .pro 파일입니다.
최신 도움말을 보려면 입력합니다:
lrelease-pro -help
lrelease-pro 옵션
| 옵션 | 동작 |
|---|---|
-help | 최신 도움말 정보를 표시하고 종료합니다. |
-dump-json <file> | QM 파일을 생성하지 않고 JSON 프로젝트 설명 파일을 생성합니다. 이 파일은 -project 옵션을 사용하여 lrelease 으로 전달할 수 있습니다. |
-silent | 수행 중인 작업을 설명하지 마세요. |
-removeidentical | 번역된 텍스트가 소스 텍스트와 동일한 경우 해당 메시지를 제외합니다. |
-fail-on-unfinished | 미완성 번역이 발견되면 오류를 생성합니다. |
-fail-on-invalid | 다음 검사에 실패한 번역이 발견되면 실패합니다:
자세한 내용은 Qt Linguist 도움말을 참조하세요. |
-nounfinished | 미완성 번역은 포함하지 마세요. |
-markuntranslated <prefix> | 메시지에 실제 번역이 없는 경우 지정된 문자열이 접두사로 붙은 소스 텍스트를 대신 사용하세요. |
-version | lrelease-pro 버전을 표시하고 종료합니다. |
예제
qmake 프로젝트에서 QM 파일 생성하기
lrelease-pro myproject.pro
JSON 프로젝트 설명 생성
프로젝트의 번역을 설명하는 JSON 파일을 생성합니다:
lrelease-pro myproject.pro -dump-json project.json
그런 다음 생성된 JSON 파일을 lrelease 으로 사용합니다:
lrelease -project project.json
© 2026 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.