文脈に応じた文字列の表示
Qt Linguist が翻訳可能な文字列を含むソースファイルにアクセスできる場合、Sources and Forms ビューでは、Strings ビューの現在の文字列のソースコンテキストが表示されます。現在の文字列を含むソースコードの行がハイライト表示されます。Qt Linguist がソースファイルを見つけられない場合は、想定される絶対ファイルパスが表示されます。
ソースコンテキストに誤ったソース行が表示されている場合、翻訳ファイルがソースファイルと同期していない可能性があります。ファイルの同期方法の詳細については、「lupdate の使用」を参照してください。
Qt Widgets Designer UI フォームは、特別な UI ファイル(.ui)に保存されます。Qt Linguist は、フォーム内の翻訳を表示しようとします。
© 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.