From a0f9fb35f3323872bd3231b16c2210238c03857b Mon Sep 17 00:00:00 2001 From: MrZYX Date: Fri, 26 Nov 2010 21:01:13 +0100 Subject: [PATCH] made pagination translatable --- config/initializers/will_paginate.rb | 6 ++++++ config/locales/diaspora/en.yml | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 config/initializers/will_paginate.rb diff --git a/config/initializers/will_paginate.rb b/config/initializers/will_paginate.rb new file mode 100644 index 000000000..eb149ea22 --- /dev/null +++ b/config/initializers/will_paginate.rb @@ -0,0 +1,6 @@ +# Copyright (c) 2010, Diaspora Inc. This file is +# licensed under the Affero General Public License version 3 or later. See +# the COPYRIGHT file. + +WillPaginate::ViewHelpers.pagination_options[:previous_label] = "« #{I18n.t('pagination.previous')}" +WillPaginate::ViewHelpers.pagination_options[:next_label] = "#{I18n.t('pagination.next')} »" diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index d780d8f62..e0e00110e 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -394,3 +394,6 @@ en: webfinger: fetch_failed: "failed to fetch webfinger profile for %{profile_url}" hcard_fetch_failed: "there was a problem fetching the hcard for #{@account}" + pagination: + next: "Next" + previous: "Previous"