From b75c06a34b3a1dc89eaec4a7e640dd98a22219b5 Mon Sep 17 00:00:00 2001 From: Martin Widmann Date: Tue, 27 Mar 2012 16:48:31 +0200 Subject: [PATCH] fixed the formatting --- README.markdown | 54 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/README.markdown b/README.markdown index 4a3fa5b..d59959f 100644 --- a/README.markdown +++ b/README.markdown @@ -126,34 +126,32 @@ One thing missing in the original version is i18n support. Especially when it co Adding support for a different language is as easy as modifying `VMM.master_config.i20n` before initializing the `VMM.Timeline`. An example for the German (Austrian) language: -` - VMM.master_config.i18n = { - date: { - month: ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], - month_abbr: ["Jän.", "Feb.", "März", "Apr.", "Mai", "Juni", "Juli", "Aug.", "Sept.", "Okt.", "Nov.", "Dez."], - day: ["Sonntag","Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], - day_abbr: ["So.","Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."], - }, - dateformats: { - year: "yyyy", - month_short: "mmm", - month: "mmmm yyyy", - full_short: "d. mmm", - full: "d. mmmm yyyy", - time_no_seconds_short: "HH:MM", - time_no_seconds_small_date: "HH:MM'
'd. mmmm yyyy''", - full_long: "dddd',' d. mmm yyyy 'um' HH:MM", - full_long_small_date: "HH:MM'
'dddd',' d. mmm yyyy''", - }, - messages: { - loading_timeline: "Chronologie wird geladen...", - return_to_title: "Zurück zum Anfang", - expand_timeline: "Chronologie vergrößern", - contract_timeline: "Chronologie verkleinern" - } - }; - timeline = new VMM.Timeline(); -` + `VMM.master_config.i18n = { + date: { + month: ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], + month_abbr: ["Jän.", "Feb.", "März", "Apr.", "Mai", "Juni", "Juli", "Aug.", "Sept.", "Okt.", "Nov.", "Dez."], + day: ["Sonntag","Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], + day_abbr: ["So.","Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."], + }, + dateformats: { + year: "yyyy", + month_short: "mmm", + month: "mmmm yyyy", + full_short: "d. mmm", + full: "d. mmmm yyyy", + time_no_seconds_short: "HH:MM", + time_no_seconds_small_date: "HH:MM'
'd. mmmm yyyy''", + full_long: "dddd',' d. mmm yyyy 'um' HH:MM", + full_long_small_date: "HH:MM'
'dddd',' d. mmm yyyy''", + }, + messages: { + loading_timeline: "Chronologie wird geladen...", + return_to_title: "Zurück zum Anfang", + expand_timeline: "Chronologie vergrößern", + contract_timeline: "Chronologie verkleinern" + } + }; + timeline = new VMM.Timeline();` For more information about the dateformats, you may refer to the documentation available at the following URL: http://blog.stevenlevithan.com/archives/date-time-format