onoma 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 890d5c0a9fe72ab997f84787c018d0d15babc7f1
4
- data.tar.gz: 2e08211af0656a58fce6ee321dcead9d2e301469
3
+ metadata.gz: aba1791abc5529456d045ded7ad27359fcbcca27
4
+ data.tar.gz: d566bff7770b296c6ead582294ad81dd9036724f
5
5
  SHA512:
6
- metadata.gz: 34ab0b8193a1875fc0545e24e99c3c9abad3c97506acdf420b559253bc1288d2f656b06508fa8265f6cbcb91cb5a1d75f20acf7f84e9e3713a3af0c0c4b1ca8f
7
- data.tar.gz: 38d9f0d8d1001a44d095eb5bdfcf34796cf994b83c9509290b17ebef0c052fe798420042ac5f6ece34201313022bb77c5933200131d20b66176281230dbf66a7
6
+ metadata.gz: eee3f5f960b5e18bbc36352b29519df271d8fbf82106770f549ac4e64224e8c029ee000268110d83a3de2d67c0c5fbbd4f6c38a7d720cc8d8fd90d6e948b302c
7
+ data.tar.gz: af14bf42979d9fdb3288d54b76356ea4d1acafd467a24a3b840bc2d159e204aacb9230beaa76706edffbd43c583af8418b9c944808414a0ab6af572edd01f268
@@ -301,7 +301,8 @@ module Onoma
301
301
 
302
302
  # Return human name
303
303
  def human_name(options = {})
304
- "nomenclatures.#{name}.name".t(options.merge(default: ["labels.#{name}".to_sym, name.to_s.humanize]))
304
+ I18n.translate("nomenclatures.#{name}.name",
305
+ options.merge(default: ["labels.#{name}".to_sym, name.to_s.humanize]))
305
306
  end
306
307
  alias humanize human_name
307
308
 
data/lib/onoma/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Onoma
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
data/lib/onoma.rb CHANGED
@@ -77,5 +77,10 @@ module Onoma
77
77
  def set
78
78
  @@set ||= Database.open(reference_path)
79
79
  end
80
+
81
+ def load_locales
82
+ I18n.load_path.concat(Dir.glob(root.join('config', 'locales', '**', '*.yml')))
83
+ end
80
84
  end
81
85
  end
86
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onoma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice TEXIER