Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add i18n support #20

Closed
wants to merge 1 commit into from

0 participants

@ghost

add i18n support
fix visit method not found in rspec

Leon Kai Yu add i18n support
fix visit method not found in rspec
59443e7
@ghost ghost closed this
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 1, 2013
  1. add i18n support

    Leon Kai Yu authored
    fix visit method not found in rspec
This page is out of date. Refresh to see the latest.
View
2  lib/bootstrap_helper/breadcrumb.rb
@@ -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)
View
2  lib/bootstrap_helper/locale/en.yml
@@ -0,0 +1,2 @@
+"en":
+ home: "Home"
View
2  lib/bootstrap_helper/locale/zh-CN.yml
@@ -0,0 +1,2 @@
+"zh-CN":
+ home: "首页"
View
2  lib/bootstrap_helper/locale/zh-TW.yml
@@ -0,0 +1,2 @@
+"zh-TW":
+ home: "首頁"
View
2  spec/spec_helper.rb
@@ -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:
Something went wrong with that request. Please try again.