diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index 5201b7ef..e1e87cbb 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -137,13 +137,8 @@ module SortHelper # # def sort_header_tag(column, options = {}) - if options[:caption] - caption = options[:caption] - options.delete(:caption) - else - caption = titleize(Inflector::humanize(column)) - end - options[:title]= "Sort by #{caption}" unless options[:title] + caption = options.delete(:caption) || titleize(Inflector::humanize(column)) + options[:title]= l(:label_sort_by, caption) unless options[:title] content_tag('th', sort_link(column, caption), options) end diff --git a/lang/bg.yml b/lang/bg.yml index 1c7b5e4a..4daf691e 100644 --- a/lang/bg.yml +++ b/lang/bg.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Вход button_submit: Изпращане diff --git a/lang/de.yml b/lang/de.yml index 7f1876e8..cd8b82b1 100644 --- a/lang/de.yml +++ b/lang/de.yml @@ -405,6 +405,7 @@ label_week: Woche label_date_from: Von label_date_to: Bis label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Einloggen button_submit: OK diff --git a/lang/en.yml b/lang/en.yml index 7f77eca3..d1e45fcc 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Login button_submit: Submit diff --git a/lang/es.yml b/lang/es.yml index a6e068af..e2fa8ad5 100644 --- a/lang/es.yml +++ b/lang/es.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Conexión button_submit: Someter diff --git a/lang/fr.yml b/lang/fr.yml index 86cc9cea..4c679bb6 100644 --- a/lang/fr.yml +++ b/lang/fr.yml @@ -405,6 +405,7 @@ label_week: Semaine label_date_from: Du label_date_to: Au label_language_based: Basé sur la langue +label_sort_by: Trier par "%s" button_login: Connexion button_submit: Soumettre diff --git a/lang/it.yml b/lang/it.yml index 1bc6dccb..f674a472 100644 --- a/lang/it.yml +++ b/lang/it.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Login button_submit: Invia diff --git a/lang/ja.yml b/lang/ja.yml index b5fc4845..4495c0a5 100644 --- a/lang/ja.yml +++ b/lang/ja.yml @@ -406,6 +406,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: ログイン button_submit: 変更 diff --git a/lang/nl.yml b/lang/nl.yml index 4e221ce2..bb753f97 100644 --- a/lang/nl.yml +++ b/lang/nl.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Inloggen button_submit: Toevoegen diff --git a/lang/pt-br.yml b/lang/pt-br.yml index c4390366..b1505f26 100644 --- a/lang/pt-br.yml +++ b/lang/pt-br.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Login button_submit: Enviar diff --git a/lang/pt.yml b/lang/pt.yml index 8c7d2cf7..4c072971 100644 --- a/lang/pt.yml +++ b/lang/pt.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Login button_submit: Enviar diff --git a/lang/sv.yml b/lang/sv.yml index e18f824c..eb10f95e 100644 --- a/lang/sv.yml +++ b/lang/sv.yml @@ -405,6 +405,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: Logga in button_submit: Skicka diff --git a/lang/zh.yml b/lang/zh.yml index 2af95255..fa58056b 100644 --- a/lang/zh.yml +++ b/lang/zh.yml @@ -407,6 +407,7 @@ label_week: Week label_date_from: From label_date_to: To label_language_based: Language based +label_sort_by: Sort by "%s" button_login: 登录 button_submit: 提交