gettext_simple_rails 0.0.14 → 0.0.15
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b7c6b9a6f203be11f2cb0b3ec042677482a4ee5
|
4
|
+
data.tar.gz: a4c606e9e3a652c28e1b9d6805cadc364d7e8ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d6f290e3158fcd1c7940e45321958eb3ddd1089382426659221dec72cad588a172f2abdf32239a82de749745d7c2431aa7309b32c36690406e12d84b6ce621b
|
7
|
+
data.tar.gz: 961e628b54a7bf1c925730943745cfa35a981ff9e111ad78b82481f95a3b1dfdc3a360b24537b876d94eb08b48b176619a5a6d74163e3cf43332e6b3017251e5
|
@@ -5,16 +5,19 @@ class GettextSimpleRails::Translators::SimpleFormTranslator
|
|
5
5
|
|
6
6
|
def translations
|
7
7
|
@translations = {"simple_form" => {
|
8
|
-
"hints" => {}
|
8
|
+
"hints" => {},
|
9
|
+
"placeholders" => {}
|
9
10
|
}}
|
10
11
|
|
11
12
|
hints = @translations["simple_form"]["hints"]
|
13
|
+
placeholders = @translations["simple_form"]["placeholders"]
|
12
14
|
|
13
15
|
GettextSimpleRails::ModelInspector.model_classes do |inspector|
|
14
16
|
clazz_snake_name = StringCases.camel_to_snake(inspector.clazz.name)
|
15
|
-
|
16
17
|
clazz_hints = {}
|
18
|
+
|
17
19
|
hints[clazz_snake_name] = clazz_hints
|
20
|
+
placeholders[clazz_snake_name] = clazz_hints
|
18
21
|
|
19
22
|
inspector.attributes do |attribute|
|
20
23
|
clazz_hints[attribute.name.to_s] = ""
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gettext_simple_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|