diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 50435f6ea..034eef546 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -67,7 +67,11 @@ class ApplicationController < ActionController::Base else I18n.locale = request.compatible_language_from AVAILABLE_LANGUAGE_CODES end + + WillPaginate::ViewHelpers.pagination_options[:previous_label] = "« #{I18n.t('previous')}" + WillPaginate::ViewHelpers.pagination_options[:next_label] = "#{I18n.t('next')} »" end + def clear_gc_stats GC.clear_stats if GC.respond_to?(:clear_stats) end diff --git a/app/views/conversations/index.haml b/app/views/conversations/index.haml index 1214816b5..1285cdd70 100644 --- a/app/views/conversations/index.haml +++ b/app/views/conversations/index.haml @@ -17,7 +17,7 @@ %h3 .right = link_to t('.new_message'), new_conversation_path, :class => 'button', :rel => 'facebox' - Inbox + = t('.inbox') #conversation_inbox - if @conversations.count > 0 diff --git a/config/initializers/will_paginate.rb b/config/initializers/will_paginate.rb deleted file mode 100644 index bc3d0e0d5..000000000 --- a/config/initializers/will_paginate.rb +++ /dev/null @@ -1,6 +0,0 @@ -# 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('previous')}" -WillPaginate::ViewHelpers.pagination_options[:next_label] = "#{I18n.t('next')} »" diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 8c10aaeba..e8544e406 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -184,6 +184,7 @@ en: no_conversation_selected: "no conversation selected" create_a_new_message: "create a new message" no_messages: "no messages" + inbox: "Inbox" show: reply: "reply" delete: "delete and block conversation" @@ -406,12 +407,6 @@ en: posts: doesnt_exist: "that post does not exist!" - tags: - show: - posts_tagged_with: "Posts tagged with #%{tag}" - nobody_talking: "Nobody is talking about %{tag} yet." - people_tagged_with: "People tagged with %{tag}" - profiles: edit: your_public_profile: "Your public profile" @@ -560,6 +555,12 @@ en: show_comments: "show all comments" hide_comments: "hide comments" + tags: + show: + posts_tagged_with: "Posts tagged with #%{tag}" + nobody_talking: "Nobody is talking about %{tag} yet." + people_tagged_with: "People tagged with %{tag}" + users: edit: export_data: "Export Data"