以下の例では、Qt アプリケーションを翻訳用に準備する方法を説明します:

  • Arrow Padは C++ アプリケーションで、現在のロケールに応じてアプリケーションに翻訳を読み込ませる方法を示しています。また、トランスレータに追加情報を提供するtr() の2引数形式の使用方法も示しています。
  • Troll PrintはC++アプリケーションで、同じコンテキストで同一のソーステキストを区別する方法を示しています。また、アプリケーションがアップグレードされたときに、トランスレータの作業を最小化する方法も示しています。

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