You are here

function translate_replacements in Javascript Timer 6

Same name and namespace in other branches
  1. 8 widgets/jst_timer.module \translate_replacements()
  2. 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 420
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'),
  );
}