~ubuntu-branches/ubuntu/utopic/jquery-goodies/utopic-proposed

« back to all changes in this revision

Viewing changes to countdown/jquery.countdown-ru.js

  • Committer: Package Import Robot
  • Author(s): Marcelo Jorge Vieira (metal)
  • Date: 2012-05-06 21:48:26 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120506214826-s32mskt091qluihm
Tags: 5-1
* New Upstream Version
  + Updated jQuery form from 2.63 to 3.09 (Closes: #656778)
  + Added jQuery Countdown
* Updated Standards-Version to 3.9.3
  + Machine-readable debian/copyright version 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* http://keith-wood.name/countdown.html
 
2
 * Russian initialisation for the jQuery countdown extension
 
3
 * Written by Sergey K. (xslade{at}gmail.com) June 2010. */
 
4
(function($) {
 
5
        $.countdown.regional['ru'] = {
 
6
                labels: ['Лет', 'Месяцев', 'Недель', 'Дней', 'Часов', 'Минут', 'Секунд'],
 
7
                labels1: ['Год', 'Месяц', 'Неделя', 'День', 'Час', 'Минута', 'Секунда'],
 
8
                labels2: ['Года', 'Месяца', 'Недели', 'Дня', 'Часа', 'Минуты', 'Секунды'],
 
9
                compactLabels: ['l', 'm', 't', 'd'], compactLabels1: ['r', 'm', 't', 'd'],
 
10
                whichLabels: function(amount) {
 
11
                        var units = amount % 10;
 
12
                        var tens = Math.floor((amount % 100) / 10);
 
13
                        return (amount == 1 ? 1 : (units >= 2 && units <= 4 && tens != 1 ? 2 :
 
14
                                (units == 1 && tens != 1 ? 1 : 0)));
 
15
                },
 
16
                timeSeparator: ':', isRTL: false};
 
17
        $.countdown.setDefaults($.countdown.regional['ru']);
 
18
})(jQuery);
 
 
b'\\ No newline at end of file'