diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-03-10 16:47:24 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-03-10 16:47:24 +0100 |
commit | 603f7bf1d221e375fc5af9cdf3dab028fe4643f1 (patch) | |
tree | 412b136c24b9f1e0989569be6dd8e27f9d5c0b37 /timepollhead.rb | |
parent | 67e8513901baaac898b44c4d126619bb5e6f7c42 (diff) |
localize date strings
Diffstat (limited to '')
-rw-r--r-- | timepollhead.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/timepollhead.rb b/timepollhead.rb index 61b8b2a..bae1526 100644 --- a/timepollhead.rb +++ b/timepollhead.rb @@ -120,7 +120,7 @@ class TimePollHead ret = "<tr><th class='invisible'></th>" head_count("%Y-%m",false).each{|title,count| year, month = title.split("-").collect{|e| e.to_i} - ret += "<th colspan='#{count}'>#{Date::ABBR_MONTHNAMES[month]} #{year}</th>\n" + ret += "<th colspan='#{count}'>#{Date::DATE_TEXTS[Date_locale.get_language_key(Locale.current)][:abbr_monthnames][month]} #{year}</th>\n" } ret += "<th class='invisible'></th></tr><tr><th class='invisible'></th>" @@ -229,7 +229,7 @@ END ret += "</tr><tr>\n" - 7.times{|i| ret += "<th class='weekday'>#{Date::ABBR_DAYNAMES[(i+1)%7]}</th>" } + 7.times{|i| ret += "<th class='weekday'>#{Date::DATE_TEXTS[Date_locale.get_language_key(Locale.current)][:abbr_daynames][(i+1)%7]}</th>" } ret += "</tr><tr>\n" ((@startdate.wday+7-1)%7).times{ @@ -287,7 +287,7 @@ END ret += "<th class='invisible'></th>" head_count("%Y-%m",true).each{|title,count| year,month = title.split("-").collect{|e| e.to_i} - ret += "<th colspan='#{count}'>#{Date::ABBR_MONTHNAMES[month]} #{year}</th>\n" + ret += "<th colspan='#{count}'>#{Date::DATE_TEXTS[Date_locale.get_language_key(Locale.current)][:abbr_monthnames][month]} #{year}</th>\n" } ret += "</tr><tr><th>" + _("Time") + "</th>" |