i18n_screwdriver 7.4 → 7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/i18n_screwdriver/version.rb +1 -1
- data/lib/tasks/i18n.rake +8 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94bd26e4628cc630514ad733d735a604e65659a2
|
4
|
+
data.tar.gz: 074a5fbf05496fc63f0dc03fbbc477098b40190a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd45ff11f2994dd24be3899623eeb558a7552fd6f84e8b2c174161096e517ef3749484288880def27eef43ef571b6abc8678481172de6660303e4a62d0c4cc6
|
7
|
+
data.tar.gz: 36808961678afd19b0625adcc9677ad423340e0a2b2d87e14453eac930a3849e91d5c2e0c7e9b32b79e1045df44b9db5c10568ab8ed0d6f7e640a300bb5f66d7
|
data/lib/tasks/i18n.rake
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
namespace :i18n do
|
2
2
|
desc 'Find all translations in views, helpers and controllers'
|
3
|
-
task :update
|
3
|
+
task :update do
|
4
|
+
require "i18n_screwdriver"
|
5
|
+
require "yaml"
|
6
|
+
|
4
7
|
translations = I18nScrewdriver.gather_translations
|
5
8
|
puts "Found #{translations.keys.size} unique translations"
|
6
9
|
default_locale = I18n.default_locale.to_s
|
@@ -8,7 +11,10 @@ namespace :i18n do
|
|
8
11
|
end
|
9
12
|
|
10
13
|
desc 'Translate all not yet translated texts for a given locale'
|
11
|
-
task :translate
|
14
|
+
task :translate do
|
15
|
+
require "i18n_screwdriver"
|
16
|
+
require "yaml"
|
17
|
+
|
12
18
|
raise "ERROR: usage: TRANSLATE=de rake i18n:translate" unless ENV['TRANSLATE']
|
13
19
|
locale = ENV['TRANSLATE']
|
14
20
|
default_locale = I18n.default_locale.to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_screwdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '7.
|
4
|
+
version: '7.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Miesel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04
|
12
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project: i18n_screwdriver
|
84
|
-
rubygems_version: 2.4.
|
84
|
+
rubygems_version: 2.4.5
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: make translating with rails i18n fun again
|