例

以下の例は、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.