rails_locale_sorter 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_locale_sorter.rb +1 -3
- data/lib/rails_locale_sorter/version.rb +1 -1
- metadata +4 -4
data/lib/rails_locale_sorter.rb
CHANGED
@@ -45,7 +45,7 @@ module RailsLocaleSorter
|
|
45
45
|
|
46
46
|
def parse_to_yaml(truth = "en.yml")
|
47
47
|
# for ya2yaml
|
48
|
-
$KCODE="
|
48
|
+
$KCODE="UTF8"
|
49
49
|
Dir::mkdir(@out) unless File.exists? @out
|
50
50
|
|
51
51
|
translations = YAML::load_file("#{@source}/#{truth}")
|
@@ -54,9 +54,7 @@ module RailsLocaleSorter
|
|
54
54
|
with_each_file do |f, filename|
|
55
55
|
me = YAML::load(f)
|
56
56
|
unless filename == truth
|
57
|
-
puts me.inspect
|
58
57
|
me = create_missing_keys(me, mergee)
|
59
|
-
puts me.inspect
|
60
58
|
end
|
61
59
|
|
62
60
|
me = OrderFact.convert_and_sort(me, true)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_locale_sorter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Wheeler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-02-
|
18
|
+
date: 2012-02-09 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|