PageRenderTime 251ms CodeModel.GetById 17ms app.highlight 221ms RepoModel.GetById 1ms app.codeStats 0ms

/timeline/scripts/l10n/de/labellers.js

http://showslow.googlecode.com/
JavaScript | 27 lines | 18 code | 5 blank | 4 comment | 0 complexity | cb7fc9ee60f5bfafd2684ab31a9890be MD5 | raw file
 1/*==================================================
 2 *  Localization of labellers.js
 3 *==================================================
 4 */
 5
 6Timeline.GregorianDateLabeller.monthNames["de"] = [
 7    "Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"
 8];
 9
10Timeline.GregorianDateLabeller.labelIntervalFunctions["de"] = function(date, intervalUnit) {
11    var text;
12    var emphasized = false;
13    
14    var date2 = Timeline.DateTime.removeTimeZoneOffset(date, this._timeZone);
15    
16    switch(intervalUnit) {
17    case Timeline.DateTime.DAY:
18    case Timeline.DateTime.WEEK:
19        text = date2.getUTCDate() + ". " +
20            Timeline.GregorianDateLabeller.getMonthName(date2.getUTCMonth(), this._locale);
21        break;
22    default:
23        return this.defaultLabelInterval(date, intervalUnit);
24    }
25    
26    return { text: text, emphasized: emphasized };
27};