From 82e3df434c2645bd89594558772297564d4e44a1 Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Tue, 4 Jun 2013 10:51:52 +0200 Subject: [PATCH 1/2] define translation for WikiControllers default breadcrumb --- app/controllers/wiki_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 3110ed612b..194c68630d 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -342,4 +342,8 @@ private def load_pages_for_index @pages = @wiki.pages.with_updated_on.all(:order => 'title', :include => {:wiki => :project}) end + + def default_breadcrumb + Wiki.name.humanize + end end From a833e9a9c420e27e5739aa634f169757c224ab0a Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Tue, 4 Jun 2013 18:18:00 +0200 Subject: [PATCH 2/2] fix missing calendar translation in breadcrums --- app/controllers/issues/calendars_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/issues/calendars_controller.rb b/app/controllers/issues/calendars_controller.rb index a20444b40d..10bce2857f 100644 --- a/app/controllers/issues/calendars_controller.rb +++ b/app/controllers/issues/calendars_controller.rb @@ -46,4 +46,10 @@ class Issues::CalendarsController < ApplicationController render :layout => !request.xhr? end + +private + + def default_breadcrumb + l(:label_calendar) + end end