translation_rails 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +6 -0
- data/lib/translation_rails/dependencies.rb +1 -1
- data/lib/translation_rails/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -56,4 +56,10 @@ To migrate translations from TranslationCenter database to yaml files
|
|
|
56
56
|
rake translation_center:db2yaml
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
Add this line to your app layouts(after javascript_include_tag)
|
|
60
|
+
|
|
61
|
+
```ruby
|
|
62
|
+
yield :head
|
|
63
|
+
```
|
|
64
|
+
|
|
59
65
|
Visit translation_center: http://localhost:port/translation_center
|
|
@@ -13,7 +13,7 @@ module ActiveSupport
|
|
|
13
13
|
require_or_load_without_translation_rails(file_name, const_path)
|
|
14
14
|
if file_name.starts_with?(Rails.root.to_s + '/app')
|
|
15
15
|
relative_name = file_name.gsub(Rails.root.to_s, '')
|
|
16
|
-
engine_file = File.join(TranslationRails::Engine.root, relative_name)
|
|
16
|
+
engine_file = File.join(::TranslationRails::Engine.root, relative_name)
|
|
17
17
|
require_or_load_without_translation_rails(engine_file, const_path) if File.file?(engine_file)
|
|
18
18
|
end
|
|
19
19
|
end
|