Browse Source

Translations

development
Godwin 10 years ago
parent
commit
ad2a897ef7
  1. 4
      config/initializers/i18n.rb
  2. 8
      spec/features/pages_spec.rb
  3. BIN
      wizard.jpg

4
config/initializers/i18n.rb

@ -90,9 +90,11 @@ module I18n
end
def initialize
if Rails.env.test? || !File.exist?(filename)
File.open(@@translation_cache_file, 'w+')
end
if Rails.env.test?
File.open(@@translations_file, 'w+')
File.open(@@translation_cache_file, 'w+')
end
@@translation_cache = YAML.load(File.read(@@translation_cache_file)) || Hash.new
super

8
spec/features/pages_spec.rb

@ -1,8 +0,0 @@
require 'spec_helper'
describe 'Home' do
#it "has Hello World in title" do
# visit root_path
# expect(page).to have_title I18n.t('hello')
#end
end

BIN
wizard.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Loading…
Cancel
Save