Qt dynamic translations webpage
Project goalsThis project main goals are improving quality and easiness of internationalization of Qt applications by providing tools to modify translations of applications in runtime.
ScreenshotsCurrent screenshots can be found here.
Using in other applications
In general, qt-tr will be source (but not binary) compatible with Qt (currently many QString methods are not implemented). So recompiling any application with qt-tr should be possible without modifying source.
In order to be able to use translation features, it is necessary to set translation handler in QApplication, using QApplication::installTrHandler() method. Code of translation handler must be also compiled with application. For example of doing this, see qtrstringtest application code.
Strings which can be dynamically translated must use QTrString class instead of QString. Also proper QTrStringElement must be created for this string. In general, this can be easily accomplished by overriding standard internationalization macros (tr() in Qt or i18n()) with dynamic translation version. For example see dyntr() macro in qtrstringtest. This macro needs compiling in QTrString element code (files ktrstring.h and ktrstring.cpp) and translation handler working with this element (files basictrhandler.h and basictrhandler.cpp).
|Last modified: $Id: index.php,v 1.7 2004/09/27 23:51:05 klichota Exp $|