~esnet-graphite/graphite/almanac-integration-old

« back to all changes in this revision

Viewing changes to webapp/content/js/timeline/timeline_js/scripts/l10n/cs/labellers.js

  • Committer: Andrew Wang
  • Date: 2009-07-23 01:42:32 UTC
  • Revision ID: awang@student3.es.net-20090723014232-g4744s51gp8xbu3c
Add a timeline to the bottom of the composer.  Right now it is hard-coded to hit a local almanac on port 7000.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*==================================================
 
2
 *  Localization of labellers.js
 
3
 *==================================================
 
4
 */
 
5
 
 
6
Timeline.GregorianDateLabeller.monthNames["cs"] = [
 
7
    "Leden", "�nor", "B�ezen", "Duben", "Kv�ten", "�erven", "�ervenec", "Srpen", "Z���", "��jen", "Listopad", "Prosinec"
 
8
];
 
9
 
 
10
Timeline.GregorianDateLabeller.dayNames["cs"] = [
 
11
    "Ne", "Po", "�t", "St", "�t", "P�", "So"
 
12
];
 
13
 
 
14
Timeline.GregorianDateLabeller.labelIntervalFunctions["cs"] = function(date, intervalUnit) {
 
15
    var text;
 
16
    var emphasized = false;
 
17
 
 
18
    var date2 = Timeline.DateTime.removeTimeZoneOffset(date, this._timeZone);
 
19
    
 
20
    switch(intervalUnit) {
 
21
    case Timeline.DateTime.DAY:
 
22
    case Timeline.DateTime.WEEK:
 
23
        text = date2.getUTCDate() + ". " + (date2.getUTCMonth() + 1) + ".";
 
24
        break;
 
25
    default:
 
26
        return this.defaultLabelInterval(date, intervalUnit);
 
27
    }
 
28
    
 
29
    return { text: text, emphasized: emphasized };
 
30
};