JsTranslate

View helper for rendering translations for JavaScript strings.
extends Zend\View\Helper\AbstractHelper
Methods Summary
public
# __construct( array $jsTranslations )
Construct the helper.
public
# __invoke( )
Render translations for JavaScript strings. Add to the "js_translate_strings" module config to add strings to be translated. Use the `Omeka.jsTranslate(str)` function to interpolate translated strings in JS.
Methods inherited from Zend\View\Helper\AbstractHelper
setView(), getView()
Properties Summary
protected $jsTranslations
# NULL
Properties inherited from Zend\View\Helper\AbstractHelper
$view