add i18n support #20

Closed
wants to merge 1 commit into
from
@@ -15,7 +15,7 @@ module InstanceMethods
protected
def set_breadcrumbs
- @breadcrumbs = ["<a href='/'>Home</a>".html_safe]
+ @breadcrumbs = ["<a href='/'>#{t('home')}</a>".html_safe]
end
def drop_breadcrumb(title=nil, url=nil)
@@ -0,0 +1,2 @@
+"en":
+ home: "Home"
@@ -0,0 +1,2 @@
+"zh-CN":
+ home: "首页"
@@ -0,0 +1,2 @@
+"zh-TW":
+ home: "首頁"
View
@@ -14,6 +14,8 @@
RSpec.configure do |config|
+ config.include Capybara::DSL
+
# ## Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: