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 +4 -4
- data/lib/onoma/nomenclature.rb +2 -1
- data/lib/onoma/version.rb +1 -1
- data/lib/onoma.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aba1791abc5529456d045ded7ad27359fcbcca27
|
4
|
+
data.tar.gz: d566bff7770b296c6ead582294ad81dd9036724f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eee3f5f960b5e18bbc36352b29519df271d8fbf82106770f549ac4e64224e8c029ee000268110d83a3de2d67c0c5fbbd4f6c38a7d720cc8d8fd90d6e948b302c
|
7
|
+
data.tar.gz: af14bf42979d9fdb3288d54b76356ea4d1acafd467a24a3b840bc2d159e204aacb9230beaa76706edffbd43c583af8418b9c944808414a0ab6af572edd01f268
|
data/lib/onoma/nomenclature.rb
CHANGED
@@ -301,7 +301,8 @@ module Onoma
|
|
301
301
|
|
302
302
|
# Return human name
|
303
303
|
def human_name(options = {})
|
304
|
-
"nomenclatures.#{name}.name"
|
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
data/lib/onoma.rb
CHANGED