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:
1 parent
35bac0d003
commit
39a7ec66b0
3 files changed
+7
-6
No files matched your search
@@ -224,7 +224,7 @@ private
|
|||||||
changes_by_day.each {|c| changes_by_month[c.first.to_date.months_ago] += c.last }
|
changes_by_day.each {|c| changes_by_month[c.first.to_date.months_ago] += c.last }
|
||||||
|
|
||||||
fields = []
|
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)]}
|
12.times {|m| fields << month_names[((Date.today.month - 1 - m) % 12)]}
|
||||||
|
|
||||||
graph = SVG::Graph::Bar.new(
|
graph = SVG::Graph::Bar.new(
|
||||||
|
|||||||
@@ -104,11 +104,11 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def day_name(day)
|
def day_name(day)
|
||||||
l(:general_day_names).split(',')[day-1]
|
l(:general_day_names)[day-1]
|
||||||
end
|
end
|
||||||
|
|
||||||
def month_name(month)
|
def month_name(month)
|
||||||
l(:actionview_datehelper_select_month_names).split(',')[month-1]
|
l(:general_text_month_names)[month-1]
|
||||||
end
|
end
|
||||||
|
|
||||||
def pagination_links_full(paginator, count=nil, options={})
|
def pagination_links_full(paginator, count=nil, options={})
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
_gloc_rule_default: '|n| n==1 ? "" : "_plural" '
|
_gloc_rule_default: '|n| n==1 ? "" : "_plural" '
|
||||||
|
|
||||||
actionview_datehelper_select_day_prefix:
|
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_month_prefix:
|
||||||
actionview_datehelper_select_year_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: 1 jour
|
||||||
actionview_datehelper_time_in_words_day_plural: %d jours
|
actionview_datehelper_time_in_words_day_plural: %d jours
|
||||||
actionview_datehelper_time_in_words_hour_about: environ une heure
|
actionview_datehelper_time_in_words_hour_about: environ une heure
|
||||||
@@ -50,7 +49,9 @@ general_lang_name: 'Français'
|
|||||||
general_csv_separator: ';'
|
general_csv_separator: ';'
|
||||||
general_csv_encoding: ISO-8859-1
|
general_csv_encoding: ISO-8859-1
|
||||||
general_pdf_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'
|
general_first_day_of_week: '1'
|
||||||
|
|
||||||
notice_account_updated: Le compte a été mis à jour avec succès.
|
notice_account_updated: Le compte a été mis à jour avec succès.
|
||||||
|
|||||||
Reference in new issue
Block a user