以下の例は、Qtアプリケーションを翻訳するための準備方法を示しています:

  • Hello tr()は、QTranslator オブジェクトの作成を示す C++ アプリケーションです。また、tr() 関数の最も簡単な使い方を示しており、ユーザーが見えるソーステキストを翻訳用にマークしています。
  • Arrow Padは、現在のロケールに応じてアプリケーションに翻訳を読み込ませる方法を示すC++アプリケーションです。また、tr() の2引数形式を使用することで、翻訳者に追加情報を提供することもできます。
  • Troll PrintはC++アプリケーションで、同じコンテキストで同一のソーステキストを区別する方法を示しています。また、アプリケーションがアップグレードされたときに、トランスレータの作業を最小化する方法も示しています。
  • Qt Quick I18N は、 アプリケーションを国際化する方法を示します。Qt Quick

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