以下成员源于类 QJSEngine 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
								
(obsolete)
								
								void
							 | 
							installTranslatorFunctions (const QJSValue & object = QJSValue()) | 
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
Installs translator functions on the given object , or on the Global Object if no object is specified.
The relation between script translator functions and C++ translator functions is described in the following table:
| Script Function | Corresponding C++ Function | 
|---|---|
| qsTr() | QObject::tr () | 
| QT_TR_NOOP () | QT_TR_NOOP () | 
| qsTranslate() | QCoreApplication::translate () | 
| QT_TRANSLATE_NOOP () | QT_TRANSLATE_NOOP () | 
| qsTrId() | qtTrId () | 
| QT_TRID_NOOP () | QT_TRID_NOOP () | 
It also adds an arg() method to the string prototype.
该函数在 Qt 5.4 引入。
另请参阅 Qt 国际化 .