function translate_replacements in Javascript Timer 8
Same name and namespace in other branches
- 6 widgets/jst_timer.module \translate_replacements()
- 7 widgets/jst_timer.module \translate_replacements()
This allows for translation of replacement strings. Since this module uses dynamic javascript, the js file is not available for localize.drupal.org to translate.
Return value
Nothing
File
- widgets/
jst_timer.module, line 537 - Default widget implementation for an up and down timer. This widget does not use hook_ctwidget as it is always included.
Code
function translate_replacements() {
$translate = array(
t('1 year'),
t('@count years'),
t('1 day'),
t('@count days'),
t('1 hour'),
t('@count hours'),
t('1 minute'),
t('@count minutes'),
t('1 second'),
t('@count seconds'),
t('1 month'),
t('@count months'),
);
}