balinterdi-missing_t 0.1.0 → 0.1.1
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.markdown +45 -0
- data/Rakefile +1 -1
- data/init.rb +4 -0
- data/lib/missing_t.rb +0 -2
- data/missing_t.gemspec +4 -4
- data/spec/missing_t_spec.rb +0 -2
- metadata +5 -4
- data/README.rdoc +0 -0
data/README.markdown
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Missing T
|
2
|
+
|
3
|
+
Missing T provides an easy way to see which internationalized messages lack their translations in a ruby project that uses I18n (e.g Rails apps)
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Missing T comes packaged as a gem, and is hosted on github. If you have not already done so, first add gems.github.com as a rubygems source:
|
8
|
+
|
9
|
+
$ gem sources -a http://gems.github.com
|
10
|
+
|
11
|
+
And then install the gem itself:
|
12
|
+
|
13
|
+
$ gem install balinterdi-missing_t
|
14
|
+
|
15
|
+
Also, if you prefer to use it as a plugin to Rails project, you can simply do the following:
|
16
|
+
|
17
|
+
$ ./script/plugin install git://github.com/balinterdi/missing_t.git
|
18
|
+
|
19
|
+
## Running
|
20
|
+
|
21
|
+
To find all the messages without translations, you have to be in your project directory and then launch missing_t in the most simple way imaginable:
|
22
|
+
|
23
|
+
$ missing_t
|
24
|
+
|
25
|
+
You should see all messages that don't have translations on the screen, broken down per file, e.g:
|
26
|
+
|
27
|
+
app/views/users/new.html.erb:
|
28
|
+
fr.users.name
|
29
|
+
fr.users.city_of_residence
|
30
|
+
es.users.age
|
31
|
+
|
32
|
+
app/helpers/user_helper.rb:
|
33
|
+
fr.users.travels
|
34
|
+
|
35
|
+
If you wish to see all the lacking translations for a certain language, just provide its language code as a parameter:
|
36
|
+
|
37
|
+
$ missing_t fr
|
38
|
+
|
39
|
+
## Epilogue
|
40
|
+
|
41
|
+
That's all about it, let me know if you find any bugs or have suggestions as to what else should the script do. If you wish you can directly contact me at balint.erdi@gmail.com.
|
42
|
+
|
43
|
+
[http://github.com/balinterdi/missing_t/](http://github.com/balinterdi/missing_t/)
|
44
|
+
|
45
|
+
Copyright (c) 2009 Balint Erdi, released under the MIT license
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('missing_t', '0.1.
|
5
|
+
Echoe.new('missing_t', '0.1.1') do |p|
|
6
6
|
p.description = "See all the missing I18n translations in your Rails project"
|
7
7
|
p.url = "http://github.com/balinterdi/missing_t"
|
8
8
|
p.author = "Balint Erdi"
|
data/init.rb
ADDED
data/lib/missing_t.rb
CHANGED
data/missing_t.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{missing_t}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Balint Erdi"]
|
@@ -11,11 +11,11 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.description = %q{See all the missing I18n translations in your Rails project}
|
12
12
|
s.email = %q{balint.erdi@gmail.com}
|
13
13
|
s.executables = ["missing_t"]
|
14
|
-
s.extra_rdoc_files = ["bin/missing_t", "lib/missing_t.rb", "README.
|
15
|
-
s.files = ["bin/missing_t", "lib/missing_t.rb", "Manifest", "Rakefile", "README.
|
14
|
+
s.extra_rdoc_files = ["bin/missing_t", "lib/missing_t.rb", "README.markdown", "tasks/missing_t.rake"]
|
15
|
+
s.files = ["bin/missing_t", "init.rb", "lib/missing_t.rb", "Manifest", "Rakefile", "README.markdown", "spec/missing_t_spec.rb", "spec/spec_helper.rb", "tasks/missing_t.rake", "missing_t.gemspec"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://github.com/balinterdi/missing_t}
|
18
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Missing_t", "--main", "README.
|
18
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Missing_t", "--main", "README.markdown"]
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.rubyforge_project = %q{missing_t}
|
21
21
|
s.rubygems_version = %q{1.3.1}
|
data/spec/missing_t_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: balinterdi-missing_t
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Balint Erdi
|
@@ -22,14 +22,15 @@ extensions: []
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- bin/missing_t
|
24
24
|
- lib/missing_t.rb
|
25
|
-
- README.
|
25
|
+
- README.markdown
|
26
26
|
- tasks/missing_t.rake
|
27
27
|
files:
|
28
28
|
- bin/missing_t
|
29
|
+
- init.rb
|
29
30
|
- lib/missing_t.rb
|
30
31
|
- Manifest
|
31
32
|
- Rakefile
|
32
|
-
- README.
|
33
|
+
- README.markdown
|
33
34
|
- spec/missing_t_spec.rb
|
34
35
|
- spec/spec_helper.rb
|
35
36
|
- tasks/missing_t.rake
|
@@ -43,7 +44,7 @@ rdoc_options:
|
|
43
44
|
- --title
|
44
45
|
- Missing_t
|
45
46
|
- --main
|
46
|
-
- README.
|
47
|
+
- README.markdown
|
47
48
|
require_paths:
|
48
49
|
- lib
|
49
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
data/README.rdoc
DELETED
File without changes
|