From 2408ba43587a8cbbc0224871324f80adc0293301 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Mon, 7 Mar 2011 16:44:43 +0100 Subject: [PATCH] fix #1118 for the second issue. When you edit your preferences, the selected language was not set to what you had saved --- app/views/preferences/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/preferences/edit.html.erb b/app/views/preferences/edit.html.erb index d3e9851e..f21f8761 100644 --- a/app/views/preferences/edit.html.erb +++ b/app/views/preferences/edit.html.erb @@ -30,7 +30,7 @@ table_row(pref_name, nowrap_label) { text_field('prefs', pref_name) } end %> - <%= row_with_select_field('locale', I18n.available_locales) %> + <%= row_with_select_field('locale', I18n.available_locales.map {|l| l.to_s}) %> <%= row_with_text_field('date_format') %> <%= row_with_text_field('title_date_format') %> <%= table_row('time_zone', false) { time_zone_select('prefs','time_zone') } %>