QT_I18N_翻訳済み言語

プロジェクトの国際化に使用する言語の一覧。

この変数は Qt 6.7 で導入されました。

プロジェクトの国際化に使用される言語のリストを指定します。個々の言語は、文字列ベースのQLocale コンストラクタと互換性がある必要があります。

QT_I18N_TRANSLATED_LANGUAGES に指定された言語は、以下の目的で使用されます:

  • .qm ファイルを利用する実行可能ターゲットの設定。
  • qt_add_translations() 内で.ts ファイル名を自動的に生成する。

この変数は、qt_standard_project_setup()コマンドを使用して簡単に設定できます。

デフォルトでは、翻訳可能な文字列はen に記述されているものとみなされます。

qt_standard_project_setup()およびqt_add_translations()も参照してください 。

© 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.