FIX: title translation for crawlers

This commit is contained in:
Régis Hanol 2015-07-29 15:39:20 +02:00
parent f7ecfb3a83
commit 9e2632badd
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class ListController < ApplicationController
# Note the first is the default and we don't add a title # Note the first is the default and we don't add a title
if (filter.to_s != current_homepage) && use_crawler_layout? if (filter.to_s != current_homepage) && use_crawler_layout?
filter_title = I18n.t("js.filters.#{filter.to_s}.title") filter_title = I18n.t("js.filters.#{filter.to_s}.title", count: 0)
if list_opts[:category] if list_opts[:category]
@title = I18n.t('js.filters.with_category', filter: filter_title, category: Category.find(list_opts[:category]).name) @title = I18n.t('js.filters.with_category', filter: filter_title, category: Category.find(list_opts[:category]).name)
else else