Month/Day names fixes (now stored as arrays in lang files).

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1392 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-05-01 09:49:58 +00:00
parent 35bac0d003
commit 39a7ec66b0
3 changed files with 7 additions and 6 deletions

View File

@@ -224,7 +224,7 @@ private
changes_by_day.each {|c| changes_by_month[c.first.to_date.months_ago] += c.last }
fields = []
month_names = l(:actionview_datehelper_select_month_names_abbr).split(',')
month_names = l(:actionview_datehelper_select_month_names_abbr)
12.times {|m| fields << month_names[((Date.today.month - 1 - m) % 12)]}
graph = SVG::Graph::Bar.new(

View File

@@ -104,11 +104,11 @@ module ApplicationHelper
end
def day_name(day)
l(:general_day_names).split(',')[day-1]
l(:general_day_names)[day-1]
end
def month_name(month)
l(:actionview_datehelper_select_month_names).split(',')[month-1]
l(:general_text_month_names)[month-1]
end
def pagination_links_full(paginator, count=nil, options={})

View File

@@ -1,10 +1,9 @@
_gloc_rule_default: '|n| n==1 ? "" : "_plural" '
actionview_datehelper_select_day_prefix:
actionview_datehelper_select_month_names: Janvier,Février,Mars,Avril,Mai,Juin,Juillet,Août,Septembre,Octobre,Novembre,Décembre
actionview_datehelper_select_month_names_abbr: Jan,Fév,Mars,Avril,Mai,Juin,Juil,Août,Sept,Oct,Nov,Déc
actionview_datehelper_select_month_prefix:
actionview_datehelper_select_year_prefix:
actionview_datehelper_select_year_suffix:
actionview_datehelper_time_in_words_day: 1 jour
actionview_datehelper_time_in_words_day_plural: %d jours
actionview_datehelper_time_in_words_hour_about: environ une heure
@@ -50,7 +49,9 @@ general_lang_name: 'Français'
general_csv_separator: ';'
general_csv_encoding: ISO-8859-1
general_pdf_encoding: ISO-8859-1
general_day_names: Lundi,Mardi,Mercredi,Jeudi,Vendredi,Samedi,Dimanche
general_day_names: [Lundi, Mardi, Mercredi, Jeudi, Vendredi, Samedi, Dimanche]
general_text_month_names: [Janvier, Février, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Décembre]
general_text_month_names_abbr: [Jan, Fév, Mars, Avril, Mai, Juin, Juil, Août, Sept, Oct, Nov, Déc]
general_first_day_of_week: '1'
notice_account_updated: Le compte a été mis à jour avec succès.