From 2d49fb1c7e69fa7747f9a7a9a57f4d8d662cee4f Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Wed, 4 May 2011 18:14:50 +0200 Subject: [PATCH] Include the language in all widget caches --- lib/widget/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/base.rb b/lib/widget/base.rb index 2467719e7d..4a1174845c 100644 --- a/lib/widget/base.rb +++ b/lib/widget/base.rb @@ -61,7 +61,7 @@ class Widget::Base < Widget def cache_key @cache_key ||= Digest::SHA1::hexdigest begin if subject.respond_to? :cache_key - "#{self.class.name.demodulize}/#{subject.cache_key}/#{@options.sort_by(&:to_s)}" + "#{I18n.locale.to_s}/#{self.class.name.demodulize}/#{subject.cache_key}/#{@options.sort_by(&:to_s)}" else subject.inspect end