translation_rails 0.0.5 → 0.0.6

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 CHANGED
@@ -1,28 +1,59 @@
1
- translation-rails
2
- =================
1
+ ## Translation Rails
3
2
 
4
- include translation_center use it
3
+ ## Getting started
5
4
 
6
- Setup:
5
+ ```ruby
6
+ gem 'translation_center', :git => 'https://github.com/jypandjio/translation_center'
7
+ gem 'translation_rails'
8
+ ```
7
9
 
8
- gem 'translation_center', :git => "https://github.com/jypandjio/translation_center"
10
+ Run bundle install command
9
11
 
10
- gem 'translation_rails'
12
+ Install translation_rails in your application
11
13
 
12
- rails g translation_rails:install
14
+ ```ruby
15
+ rails generate translation_rails:install
16
+ ```
13
17
 
14
- rake db:migrate
18
+ Run the migrations
15
19
 
16
- rake translation_rails:add_lang[en]
20
+ ```ruby
21
+ rake db:migrate
22
+ ```
17
23
 
18
- To migrate translations from TranslationCenter database to yaml files
24
+ Run this rake to add some languages to the translation center
19
25
 
20
- rake translation_center:db2yaml
26
+ ```ruby
27
+ rake translation_rails:add_lang[en]
28
+ rake translation_rails:add_lang[nl]
29
+ ```
21
30
 
22
- To migrate translations from yaml files to TranslationCenter database
31
+ This will add three languages to the translation_center,you need to add them in the config/translation_center.yml
23
32
 
24
- rake translation_center:yaml2db
33
+ ```ruby
34
+ development:
35
+ lang:
36
+ en:
37
+ name: 'English'
38
+ direction: 'ltr'
39
+ ar:
40
+ name: 'Arabic'
41
+ direction: 'rtl'
42
+ de:
43
+ name: 'German'
44
+ direction: 'ltr'
45
+ ```
25
46
 
47
+ To migrate translations from yaml files to TranslationCenter database
26
48
 
49
+ ```ruby
50
+ rake translation_center:yaml2db
51
+ ```
27
52
 
28
-
53
+ To migrate translations from TranslationCenter database to yaml files
54
+
55
+ ```ruby
56
+ rake translation_center:db2yaml
57
+ ```
58
+
59
+ Visit translation_center: http://localhost:port/translation_center
@@ -1,3 +1,3 @@
1
1
  module TranslationRails
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translation_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: