Index: jquery_countdown.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/jquery_countdown/Attic/jquery_countdown.module,v retrieving revision 1.1.2.9 diff -u -r1.1.2.9 jquery_countdown.module --- jquery_countdown.module 8 Sep 2009 18:30:43 -0000 1.1.2.9 +++ jquery_countdown.module 25 Oct 2009 22:06:12 -0000 @@ -76,15 +76,6 @@ drupal_add_js(drupal_get_path('module', 'jquery_countdown') .'/jquery_countdown/jquery.countdown.js'); } - // Enable localization if available. - global $language; - if (isset($language->language)) { - $localization = drupal_get_path('module', 'jquery_countdown') .'/jquery_countdown/jquery.countdown-'. $language->language .'.js'; - if (file_exists($localization)) { - drupal_add_js($localization); - } - } - // Register the jQuery Countdown behaviour. drupal_add_js(drupal_get_path('module', 'jquery_countdown') .'/jquery_countdown.js'); $jquery_countdown_added = TRUE; Index: jquery_countdown.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/jquery_countdown/Attic/jquery_countdown.js,v retrieving revision 1.1.2.4 diff -u -r1.1.2.4 jquery_countdown.js --- jquery_countdown.js 8 Sep 2009 18:22:27 -0000 1.1.2.4 +++ jquery_countdown.js 25 Oct 2009 22:06:12 -0000 @@ -57,3 +57,36 @@ } return dateVal; }; + +/** + * jQuery Countdown Drupal translation. + */ +(function($) { + $.countdown.regional['drupal'] = { + labels: [ + Drupal.t('Years'), + Drupal.t('Months'), + Drupal.t('Weeks'), + Drupal.t('Days'), + Drupal.t('Hours'), + Drupal.t('Minutes'), + Drupal.t('Seconds') + ], + labels1: [ + Drupal.t('Year'), + Drupal.t('Month'), + Drupal.t('Week'), + Drupal.t('Day'), + Drupal.t('Hour'), + Drupal.t('Minute'), + Drupal.t('Second') + ], + compactLabels: [ + Drupal.t('y'), + Drupal.t('m'), + Drupal.t('w'), + Drupal.t('d') + ], + timeSeparator: ':', isRTL: false}; + $.countdown.setDefaults($.countdown.regional['drupal']); +})(jQuery);