示例
以下示例演示了如何为 Qt 应用程序进行本地化准备:
- Arrow Pad是一个 C++ 应用程序,演示了如何让应用程序根据当前区域设置加载相应的翻译。它还展示了
tr()的双参数形式的使用方法,该形式可为翻译人员提供额外信息。 - 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.