i18n_screwdriver 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{i18n_screwdriver}
8
- s.version = "0.2.1"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tobias Miesel"]
data/lib/tasks/i18n.rake CHANGED
@@ -1,4 +1,5 @@
1
1
  namespace :i18n do
2
+ desc 'find all translations in views, helpers and controllers'
2
3
  task :update => :environment do
3
4
 
4
5
  translations = {}
@@ -42,7 +43,8 @@ namespace :i18n do
42
43
  write_translation_file(language, existing_translations)
43
44
  end
44
45
  end
45
-
46
+
47
+ desc 'translate foreign language file line by line'
46
48
  task :translate => :environment do
47
49
  raise "ERROR: usage: TRANSLATE=de rake i18n:translate" unless ENV['TRANSLATE']
48
50
  language = ENV['TRANSLATE']
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_screwdriver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Miesel