...
The changes to the master English files are automatically imported into the Crowdin project. Translations in languages other English will be automatically updated to reflect the added or out of date translations that need to be corrected, and to remove any keys no longer required.
Translation Strings in PHP Code
To In PHP code, to obtain a correctly translated string for display to a user, based on their settings, use the OX_Translation
class.:
Code Block |
---|
require_once RV_PATH . '/lib/OX/Translation.php'; $oTranslation = new OX_Translation(); $text = $oTranslation->translate('TargetString'); |
Note | ||
---|---|---|
The translation key used excludes the "str" prefix used in the translation files. That is, the above code would be for the following entry in the translation files:
|
Translation Strings in Smarty Templates
In Smarty template code, to obtain a correctly translated string for display to a user, based on their settings, use the t
function:
Code Block |
---|
{t str=TargetString} |
Note | ||
---|---|---|
The translation key used excludes the "str" prefix used in the translation files. That is, the above code would be for the following entry in the translation files:
|
...