このページでは

Qt 翻訳ファイルの更新

プロジェクトのすべての TS または QM ファイルを更新するには、プロジェクトのコンテキスト・メニューからQt >lupdate All .ts Files for Project またはlrelease All .ts Files for Project に進んでください。

ビルド中に翻訳ツールを実行する

プロジェクトのビルド時にlupdateまたはlreleaseを実行するには、次の手順に従います:

  1. Solution Explorer でプロジェクトを右クリックし、コンテキストメニューからQt >Qt Project Settings を選択します。
  2. Configuration Properties >Qt Translation >General を選択します。
  3. Run Translation Tool During Build で、実行するツールを選択します。

    Qt 翻訳プロパティ

注: Qt Translation プロパティは、プロジェクトに翻訳ファイルがある場合にのみ表示されます。

lupdate プロパティの設定

プロジェクトでlupdate を実行するためのプロパティを設定します:

  1. Solution Explorer でプロジェクトを右クリックし、コンテキストメニューからQt >Qt Project Settings を選択します。
  2. Configuration Properties >Qt Translation >lupdate を選択します。

    ルプデート・プロパティ

  3. プ ロ パテ ィ を選択す る と 、 その説明が表示 さ れます。

AdditionalOptions で設定できるプロパティのリストについては、lupdate options を参照してください。

lrelease プロパティの設定

プロジェクトに対してlrelease を実行するためのプロパティを設定するには、以下の手順に従います:

  1. Solution Explorer でプロジェクトを右クリックし、コンテキスト・メニューからQt >Qt Project Settings を選択します。
  2. Configuration Properties >Qt Translation >lrelease を選択します。

    リリース特性

  3. プ ロ パテ ィ を選択す る と 、 その説明が表示 さ れます。

AdditionalOptions で設定できるプロパティのリストについては、「lrelease options」を参照してください。

Qt 翻訳ファイルの作成」、「 Qt Linguist の 開始」、「Qt による国際化」、「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.