activeadmin-globalize 0.6.3 → 1.0.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +80 -10
- data/app/assets/images/active_admin/flags.png +0 -0
- data/app/assets/javascripts/active_admin/active_admin_globalize.js.coffee +2 -1
- data/app/assets/stylesheets/active_admin/{active_admin_globalize.css.sass → active_admin_globalize.sass} +1 -1
- data/app/assets/stylesheets/active_admin/{active_admin_globalize_flags.css.sass → active_admin_globalize_flags.sass} +11 -2
- data/app/assets/stylesheets/active_admin/active_admin_globalize_mixins.sass +27 -0
- data/config/locales/ar.yml +16 -0
- data/config/locales/de.yml +2 -0
- data/config/locales/en.yml +2 -0
- data/config/locales/es.yml +17 -0
- data/config/locales/he.yml +17 -0
- data/config/locales/hu.yml +2 -0
- data/config/locales/it.yml +2 -0
- data/config/locales/pt-BR.yml +2 -0
- data/config/locales/pt-PT.yml +2 -0
- data/lib/active_admin/globalize/attributes_table_extension.rb +28 -18
- data/lib/active_admin/globalize/engine.rb +0 -7
- data/lib/active_admin/globalize/form_builder_extension.rb +6 -6
- data/lib/active_admin/globalize/version.rb +1 -2
- data/lib/active_admin/view_helpers/flag_helper.rb +1 -1
- metadata +37 -22
- data/app/assets/images/active_admin/transparent.gif +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 644ef78265b060ccdd7111b353338c96271c8a43
|
4
|
+
data.tar.gz: a0bbac682946d23d452af8dd090576ca6c62645e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 537af108f150104a125e8125abbee32a0969ae7708661417e517294d19f77f281b173ba0c2c9f0504aea4d9a557e7fdfe53b3e34b941be249c35d2504ebe5e12
|
7
|
+
data.tar.gz: a81398008358f3463ceff01e2ee54426ad7ed33e0d25b5f1a941474161447d6e71807f20e52ff11a207f6b68da7eb974a239facad3167683825716da70577473
|
data/README.md
CHANGED
@@ -1,13 +1,32 @@
|
|
1
1
|
# ActiveAdmin::Globalize
|
2
|
+
|
2
3
|
Makes it easy to translate your resource fields.
|
3
4
|
|
5
|
+
[](http://badge.fury.io/rb/activeadmin-globalize)
|
6
|
+
[](https://travis-ci.org/fabn/activeadmin-globalize)
|
7
|
+
|
8
|
+
## Help Needed
|
9
|
+
|
10
|
+
Looking for maintainers. See https://github.com/fabn/activeadmin-globalize/issues/26
|
11
|
+
|
4
12
|
## Installation
|
5
13
|
|
14
|
+
Current released version on rubygems is `1.0.0.pre`, I won't call it 1.0.0 until some issues has been solved,
|
15
|
+
but, as reported in [this PR](https://github.com/fabn/activeadmin-globalize/pull/25) it should work with both
|
16
|
+
AA 1.0.0 and AA 1.1.0.
|
17
|
+
|
18
|
+
Current version targets Rails 4 and greater and ActiveAdmin >= 1.0.0.
|
19
|
+
|
6
20
|
```ruby
|
7
|
-
gem 'activeadmin-globalize', '~> 0.
|
21
|
+
gem 'activeadmin-globalize', '~> 1.0.0.pre'
|
8
22
|
```
|
9
23
|
|
10
|
-
|
24
|
+
Previous version with support for Rails 3 is maintained in branch [support/0.6.x](https://github.com/fabn/activeadmin-globalize/tree/support/0.6.x)
|
25
|
+
|
26
|
+
## Require Assets
|
27
|
+
|
28
|
+
- active_admin.js: `//= require active_admin/active_admin_globalize.js`
|
29
|
+
- active_admin.css: `*= require active_admin/active_admin_globalize`
|
11
30
|
|
12
31
|
## Your model
|
13
32
|
|
@@ -16,42 +35,93 @@ active_admin_translates :title, :description do
|
|
16
35
|
validates_presence_of :title
|
17
36
|
end
|
18
37
|
```
|
19
|
-
##
|
38
|
+
## In your Active Admin resource definition
|
39
|
+
|
40
|
+
**Important note:** I'm working on a fix for #4 because after AA deprecated and then removed [#form_buffers](https://github.com/activeadmin/activeadmin/pull/3486) the
|
41
|
+
syntax shown below for form declaration doesn't work as is. See comments in code and [discussion](#4) to fix it until I found a solution.
|
20
42
|
|
21
43
|
```ruby
|
44
|
+
|
45
|
+
# For usage with strong parameters you'll need to permit them
|
46
|
+
permit_params translations_attributes: [:id, :locale, :title, :description, :_destroy]
|
47
|
+
|
22
48
|
index do
|
23
49
|
# textual translation status
|
24
50
|
translation_status
|
25
51
|
# or with flag icons
|
26
52
|
translation_status_flags
|
27
53
|
# ...
|
28
|
-
|
54
|
+
actions
|
29
55
|
end
|
30
56
|
|
57
|
+
# This was the original syntax proposed in this gem, however currently it doesn't work
|
31
58
|
form do |f|
|
32
59
|
# ...
|
33
60
|
f.translated_inputs "Translated fields", switch_locale: false do |t|
|
34
61
|
t.input :title
|
35
|
-
t.input :
|
62
|
+
t.input :description
|
63
|
+
end
|
64
|
+
# ...
|
65
|
+
end
|
66
|
+
|
67
|
+
# Instead you have to nest the block inside an #inputs block and the title
|
68
|
+
# should be passed to the inputs method
|
69
|
+
form do |f|
|
70
|
+
# ...
|
71
|
+
f.inputs "Translated fields" do
|
72
|
+
f.translated_inputs 'ignored title', switch_locale: false do |t|
|
73
|
+
t.input :title
|
74
|
+
t.input :description
|
75
|
+
end
|
36
76
|
end
|
37
77
|
# ...
|
38
78
|
end
|
79
|
+
|
80
|
+
# You can also set locales to show in tabs
|
81
|
+
# For example we want to show English translation fields without tab, and want to show other languages within tabs
|
82
|
+
form do |f|
|
83
|
+
# ...
|
84
|
+
f.inputs do
|
85
|
+
Globalize.with_locale(:en) do
|
86
|
+
f.input :title
|
87
|
+
end
|
88
|
+
end
|
89
|
+
f.inputs "Translated fields" do
|
90
|
+
f.translated_inputs 'ignored title', switch_locale: false, available_locales: (I18n.available_locales - [:en]) do |t|
|
91
|
+
t.input :title
|
92
|
+
t.input :description
|
93
|
+
end
|
94
|
+
end
|
95
|
+
# ...
|
96
|
+
end
|
97
|
+
|
98
|
+
# You can also set default language tab
|
99
|
+
# For example we want to make Bengali translation tab as default
|
100
|
+
form do |f|
|
101
|
+
# ...
|
102
|
+
f.inputs "Translated fields" do
|
103
|
+
f.translated_inputs 'ignored title', switch_locale: false, default_locale: :bn do |t|
|
104
|
+
t.input :title
|
105
|
+
t.input :description
|
106
|
+
end
|
107
|
+
end
|
108
|
+
# ...
|
109
|
+
end
|
110
|
+
|
39
111
|
```
|
40
112
|
If `switch_locale` is set, each tab will be rendered switching locale.
|
41
113
|
|
42
|
-
## Friendly ID
|
43
|
-
|
44
|
-
If you want to use Friendly ID together with Globalize, please take a look
|
45
|
-
at the `activeadmin-seo` gem.
|
46
114
|
|
47
115
|
## Hints
|
48
116
|
|
49
117
|
To use the dashed locale keys as 'pt-BR' or 'pt-PT' you need to convert a string
|
50
118
|
to symbol (in application.rb)
|
51
119
|
|
120
|
+
```ruby
|
52
121
|
config.i18n.available_locales = [:en, :it, :de, :es, :"pt-BR"]
|
122
|
+
```
|
53
123
|
|
54
124
|
## Credits
|
55
125
|
|
56
126
|
This work is based on original idea by [@stefanoverna](https://github.com/stefanoverna/activeadmin-globalize),
|
57
|
-
I needed it for AA 0.6.x so I forked the original project.
|
127
|
+
I needed it for AA 0.6.x so I forked the original project and expanded it with more features.
|
Binary file
|
@@ -148,7 +148,8 @@ $ ->
|
|
148
148
|
$td = $(this).closest('td')
|
149
149
|
$('.field-translation', $td).hide()
|
150
150
|
$(".locale-#{$locale}", $td).show()
|
151
|
+
$(this).parent().children('a.ui-translation-trigger').removeClass('active')
|
152
|
+
$(this).addClass('active')
|
151
153
|
e.preventDefault()
|
152
154
|
|
153
155
|
translations()
|
154
|
-
|
@@ -3,10 +3,11 @@
|
|
3
3
|
|
4
4
|
// Override flag positions in your stylesheet if you want to change default flags
|
5
5
|
.flag
|
6
|
+
display: inline-block
|
6
7
|
width: 16px
|
7
8
|
height: 11px
|
8
9
|
vertical-align: middle
|
9
|
-
background: url(
|
10
|
+
background: image-url('active_admin/flags.png') no-repeat
|
10
11
|
&.flag-ar // originally flag-ae
|
11
12
|
background-position: -16px 0
|
12
13
|
&.flag-br
|
@@ -33,10 +34,18 @@
|
|
33
34
|
background-position: -32px -22px
|
34
35
|
&.flag-en // originally flag-us
|
35
36
|
background-position: -48px -22px
|
37
|
+
&.flag-he // originally flag-il
|
38
|
+
background-position: 0 -33px
|
36
39
|
|
37
40
|
// Used to distantiate inline locale selector
|
38
41
|
span.inline-locale-selector
|
39
42
|
margin-right: 10px
|
43
|
+
> .ui-translation-trigger
|
44
|
+
opacity: .4
|
45
|
+
&.empty
|
46
|
+
filter: grayscale(100%)
|
47
|
+
&.active
|
48
|
+
opacity: 1
|
40
49
|
|
41
50
|
.field-translation.hidden
|
42
51
|
display: none
|
@@ -53,4 +62,4 @@ div.field-translation
|
|
53
62
|
|
54
63
|
// prevent tr height flickering
|
55
64
|
span.field-translation.empty
|
56
|
-
vertical-align: bottom
|
65
|
+
vertical-align: bottom
|
@@ -0,0 +1,27 @@
|
|
1
|
+
@mixin border-top-radius($radius)
|
2
|
+
-webkit-border-top-right-radius: $radius
|
3
|
+
border-top-right-radius: $radius
|
4
|
+
-webkit-border-top-left-radius: $radius
|
5
|
+
border-top-left-radius: $radius
|
6
|
+
background-clip: padding-box
|
7
|
+
|
8
|
+
@mixin border-right-radius($radius)
|
9
|
+
-webkit-border-bottom-right-radius: $radius
|
10
|
+
border-bottom-right-radius: $radius
|
11
|
+
-webkit-border-top-right-radius: $radius
|
12
|
+
border-top-right-radius: $radius
|
13
|
+
background-clip: padding-box
|
14
|
+
|
15
|
+
@mixin border-bottom-radius($radius)
|
16
|
+
-webkit-border-bottom-right-radius: $radius
|
17
|
+
border-bottom-right-radius: $radius
|
18
|
+
-webkit-border-bottom-left-radius: $radius
|
19
|
+
border-bottom-left-radius: $radius
|
20
|
+
background-clip: padding-box
|
21
|
+
|
22
|
+
@mixin border-left-radius($radius)
|
23
|
+
-webkit-border-bottom-left-radius: $radius
|
24
|
+
border-bottom-left-radius: $radius
|
25
|
+
-webkit-border-top-left-radius: $radius
|
26
|
+
border-top-left-radius: $radius
|
27
|
+
background-clip: padding-box
|
@@ -0,0 +1,16 @@
|
|
1
|
+
ar:
|
2
|
+
active_admin:
|
3
|
+
globalize:
|
4
|
+
translations: "ترجمة"
|
5
|
+
language:
|
6
|
+
de: "ألماني"
|
7
|
+
en: "الإنجليزية"
|
8
|
+
es: "الأسبانية"
|
9
|
+
fr: "اللغة الفرنسية"
|
10
|
+
hu: "الهنغارية"
|
11
|
+
it: "الإيطالي"
|
12
|
+
pt-BR: "البرتغالية"
|
13
|
+
pt-PT: "البرتغالية (البرتغال)"
|
14
|
+
tr: "اللغة التركية"
|
15
|
+
he: "العبرية"
|
16
|
+
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
es:
|
2
|
+
active_admin:
|
3
|
+
globalize:
|
4
|
+
translations: "Traducciones"
|
5
|
+
language:
|
6
|
+
de: "Alemán"
|
7
|
+
en: "Inglés"
|
8
|
+
es: "Español"
|
9
|
+
fr: "Francés"
|
10
|
+
hu: "Húngaro"
|
11
|
+
it: "Italiano"
|
12
|
+
pt-BR: "Portugués"
|
13
|
+
pt-PT: "Portugués (Portugal)"
|
14
|
+
tr: "Turco"
|
15
|
+
he: "Hebreo"
|
16
|
+
ar: "Arábica"
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
he:
|
2
|
+
active_admin:
|
3
|
+
globalize:
|
4
|
+
translations: "תרגומים"
|
5
|
+
language:
|
6
|
+
de: "גרמנית"
|
7
|
+
en: "אנגלית"
|
8
|
+
es: "ספרדית"
|
9
|
+
fr: "צרפתית"
|
10
|
+
hu: "הונגרית"
|
11
|
+
it: "איטלקית"
|
12
|
+
pt-BR: "פורטוגזית"
|
13
|
+
pt-PT: "פורטוגזית (פורטוגל)"
|
14
|
+
tr: "טורקית"
|
15
|
+
he: "עברית"
|
16
|
+
ar: "ערבית"
|
17
|
+
|
data/config/locales/hu.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/pt-PT.yml
CHANGED
@@ -53,7 +53,7 @@ module ActiveAdmin
|
|
53
53
|
if options[:inline]
|
54
54
|
''.html_safe.tap do |value|
|
55
55
|
# Add selectors for inline locale
|
56
|
-
value << inline_locale_selectors
|
56
|
+
value << inline_locale_selectors(field, options[:locale], &block)
|
57
57
|
# Build translations spans
|
58
58
|
value << field_translations(field, :span, options[:locale], &block)
|
59
59
|
end
|
@@ -61,7 +61,7 @@ module ActiveAdmin
|
|
61
61
|
content_tag(:div, class: 'activeadmin-translations') do
|
62
62
|
''.html_safe.tap do |value|
|
63
63
|
# Render selectors as in translation ui
|
64
|
-
value << block_locale_selectors
|
64
|
+
value << block_locale_selectors(field, options[:locale], &block)
|
65
65
|
# Build translations divs for actual translations
|
66
66
|
value << field_translations(field, :div, options[:locale], &block)
|
67
67
|
end
|
@@ -74,28 +74,26 @@ module ActiveAdmin
|
|
74
74
|
|
75
75
|
# @return [Boolean] true iff the field is translatable
|
76
76
|
def translatable?(field)
|
77
|
-
@
|
78
|
-
@
|
77
|
+
@resource_class.translates? &&
|
78
|
+
@resource_class.translated_attribute_names.include?(field.to_sym)
|
79
79
|
end
|
80
80
|
|
81
81
|
# Build a tag for each field translation with appropriate css classes to make javascript working
|
82
82
|
# @param [String] field field name to render
|
83
83
|
# @param [Symbol] tag tag to enclose field translation
|
84
84
|
# @param [Symbol] initial_locale locale to set as not hidden
|
85
|
-
def field_translations(field, tag, initial_locale)
|
85
|
+
def field_translations(field, tag, initial_locale, &block)
|
86
86
|
available_translations.map do |translation|
|
87
87
|
# Classes for translation span only first element is visible
|
88
88
|
css_classes = ['field-translation', "locale-#{translation.locale}"]
|
89
89
|
# Initially only element for selected locale is visible
|
90
90
|
css_classes.push 'hidden' unless translation.locale == initial_locale.to_sym
|
91
91
|
# Build content for cell or div using translation locale and given block
|
92
|
-
content =
|
93
|
-
block_given? ? yield(translation) : translation.send(field)
|
94
|
-
end
|
92
|
+
content = field_translation_value(translation, field, &block)
|
95
93
|
# return element
|
96
94
|
if tag == :span # inline element
|
97
95
|
# attach class to span if inline
|
98
|
-
css_classes.push(
|
96
|
+
css_classes.push('empty') if content.blank?
|
99
97
|
content_tag(tag, content.presence || 'Empty', class: css_classes)
|
100
98
|
else
|
101
99
|
# block content
|
@@ -107,13 +105,16 @@ module ActiveAdmin
|
|
107
105
|
end.join(' ').html_safe
|
108
106
|
end
|
109
107
|
|
110
|
-
def block_locale_selectors
|
108
|
+
def block_locale_selectors(field, initial_locale, &block)
|
111
109
|
content_tag(:ul, class: 'available-locales locale-selector') do
|
112
|
-
available_translations.map
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
110
|
+
available_translations.map do |translation|
|
111
|
+
css_classes = ['translation-tab']
|
112
|
+
css_classes << 'active' if translation.locale == initial_locale.to_sym
|
113
|
+
css_classes << 'empty' unless content.presence
|
114
|
+
content_tag(:li, class: css_classes) do
|
115
|
+
I18n.with_locale(translation.locale) do
|
116
|
+
default = 'default' if translation.locale == initial_locale.to_sym
|
117
|
+
content_tag(:a, I18n.t(:"active_admin.globalize.language.#{translation.locale}"), href: ".locale-#{translation.locale}", class: default)
|
117
118
|
end
|
118
119
|
end
|
119
120
|
end.join.html_safe
|
@@ -121,19 +122,28 @@ module ActiveAdmin
|
|
121
122
|
end
|
122
123
|
|
123
124
|
# Return flag elements to show the given locale using javascript
|
124
|
-
def inline_locale_selectors
|
125
|
+
def inline_locale_selectors(field, initial_locale, &block)
|
125
126
|
content_tag(:span, class: 'inline-locale-selector') do
|
126
127
|
available_translations.map do |translation|
|
128
|
+
content = field_translation_value(translation, field, &block)
|
129
|
+
css_classes = ['ui-translation-trigger']
|
130
|
+
css_classes << 'active' if translation.locale == initial_locale.to_sym
|
131
|
+
css_classes << 'empty' unless content.presence
|
127
132
|
# Build a link to show the given translation
|
128
|
-
link_to(flag_icon(translation.locale), '#', class:
|
133
|
+
link_to(flag_icon(translation.locale), '#', class: css_classes, data: {locale: translation.locale})
|
129
134
|
end.join(' ').html_safe
|
130
135
|
end
|
131
136
|
end
|
132
137
|
|
133
138
|
def available_translations
|
134
|
-
@record_translations ||= @
|
139
|
+
@record_translations ||= @collection.first.translations.order(:locale)
|
135
140
|
end
|
136
141
|
|
142
|
+
def field_translation_value(translation, field)
|
143
|
+
I18n.with_locale(translation.locale) do
|
144
|
+
block_given? ? yield(translation) : translation.send(field)
|
145
|
+
end
|
146
|
+
end
|
137
147
|
end
|
138
148
|
end
|
139
149
|
end
|
@@ -7,13 +7,6 @@ module ActiveAdmin
|
|
7
7
|
"active_admin/active_admin_globalize.js"
|
8
8
|
]
|
9
9
|
end
|
10
|
-
|
11
|
-
initializer "add assets" do
|
12
|
-
ActiveAdmin.application.register_stylesheet "active_admin/active_admin_globalize.css", :media => :screen
|
13
|
-
ActiveAdmin.application.register_javascript "active_admin/active_admin_globalize.js"
|
14
|
-
end
|
15
|
-
|
16
10
|
end
|
17
11
|
end
|
18
12
|
end
|
19
|
-
|
@@ -5,12 +5,13 @@ module ActiveAdmin
|
|
5
5
|
|
6
6
|
def translated_inputs(name = "Translations", options = {}, &block)
|
7
7
|
options.symbolize_keys!
|
8
|
+
available_locales = options.fetch(:available_locales, I18n.available_locales)
|
8
9
|
switch_locale = options.fetch(:switch_locale, false)
|
9
|
-
|
10
|
-
|
10
|
+
default_locale = options.fetch(:default_locale, I18n.default_locale)
|
11
|
+
template.content_tag(:div, class: "activeadmin-translations") do
|
11
12
|
template.content_tag(:ul, class: "available-locales") do
|
12
|
-
|
13
|
-
default = 'default' if locale ==
|
13
|
+
available_locales.map do |locale|
|
14
|
+
default = 'default' if locale == default_locale
|
14
15
|
template.content_tag(:li) do
|
15
16
|
I18n.with_locale(switch_locale ? locale : I18n.locale) do
|
16
17
|
template.content_tag(:a, I18n.t(:"active_admin.globalize.language.#{locale}"), href:".locale-#{locale}", :class => default)
|
@@ -18,7 +19,7 @@ module ActiveAdmin
|
|
18
19
|
end
|
19
20
|
end.join.html_safe
|
20
21
|
end <<
|
21
|
-
|
22
|
+
available_locales.map do |locale|
|
22
23
|
translation = object.translations.find { |t| t.locale.to_s == locale.to_s }
|
23
24
|
translation ||= object.translations.build(locale: locale)
|
24
25
|
fields = proc do |form|
|
@@ -42,4 +43,3 @@ module ActiveAdmin
|
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|
45
|
-
|
@@ -6,7 +6,7 @@ module ActiveAdmin
|
|
6
6
|
|
7
7
|
# Return an image tag with background of given locale
|
8
8
|
def flag_icon(locale)
|
9
|
-
|
9
|
+
content_tag :i, '', class: "flag flag-#{locale}", title: I18n.t("active_admin.globalize.language.#{locale}")
|
10
10
|
end
|
11
11
|
|
12
12
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-globalize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
@@ -9,65 +9,77 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activeadmin
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0
|
20
|
+
version: '1.0'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '1.2'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- -
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '1.0'
|
31
|
+
- - "<"
|
26
32
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
33
|
+
version: '1.2'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: globalize
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
|
-
- -
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.1.0
|
41
|
+
- - "<"
|
33
42
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
43
|
+
version: '6.0'
|
35
44
|
type: :runtime
|
36
45
|
prerelease: false
|
37
46
|
version_requirements: !ruby/object:Gem::Requirement
|
38
47
|
requirements:
|
39
|
-
- -
|
48
|
+
- - ">="
|
40
49
|
- !ruby/object:Gem::Version
|
41
|
-
version: 3.0
|
50
|
+
version: 3.1.0
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '6.0'
|
42
54
|
- !ruby/object:Gem::Dependency
|
43
55
|
name: bundler
|
44
56
|
requirement: !ruby/object:Gem::Requirement
|
45
57
|
requirements:
|
46
|
-
- -
|
58
|
+
- - ">="
|
47
59
|
- !ruby/object:Gem::Version
|
48
60
|
version: 1.6.1
|
49
61
|
type: :development
|
50
62
|
prerelease: false
|
51
63
|
version_requirements: !ruby/object:Gem::Requirement
|
52
64
|
requirements:
|
53
|
-
- -
|
65
|
+
- - ">="
|
54
66
|
- !ruby/object:Gem::Version
|
55
67
|
version: 1.6.1
|
56
68
|
- !ruby/object:Gem::Dependency
|
57
69
|
name: rake
|
58
70
|
requirement: !ruby/object:Gem::Requirement
|
59
71
|
requirements:
|
60
|
-
- -
|
72
|
+
- - ">="
|
61
73
|
- !ruby/object:Gem::Version
|
62
74
|
version: '0'
|
63
75
|
type: :development
|
64
76
|
prerelease: false
|
65
77
|
version_requirements: !ruby/object:Gem::Requirement
|
66
78
|
requirements:
|
67
|
-
- -
|
79
|
+
- - ">="
|
68
80
|
- !ruby/object:Gem::Version
|
69
81
|
version: '0'
|
70
|
-
description: Handles globalize translations in ActiveAdmin 0
|
82
|
+
description: Handles globalize translations in ActiveAdmin 1.0 and Rails 4.x-5.x
|
71
83
|
email:
|
72
84
|
- stefano.verna@gmail.com
|
73
85
|
- f.napoleoni@gmail.com
|
@@ -78,12 +90,15 @@ files:
|
|
78
90
|
- MIT-LICENSE
|
79
91
|
- README.md
|
80
92
|
- app/assets/images/active_admin/flags.png
|
81
|
-
- app/assets/images/active_admin/transparent.gif
|
82
93
|
- app/assets/javascripts/active_admin/active_admin_globalize.js.coffee
|
83
|
-
- app/assets/stylesheets/active_admin/active_admin_globalize.
|
84
|
-
- app/assets/stylesheets/active_admin/active_admin_globalize_flags.
|
94
|
+
- app/assets/stylesheets/active_admin/active_admin_globalize.sass
|
95
|
+
- app/assets/stylesheets/active_admin/active_admin_globalize_flags.sass
|
96
|
+
- app/assets/stylesheets/active_admin/active_admin_globalize_mixins.sass
|
97
|
+
- config/locales/ar.yml
|
85
98
|
- config/locales/de.yml
|
86
99
|
- config/locales/en.yml
|
100
|
+
- config/locales/es.yml
|
101
|
+
- config/locales/he.yml
|
87
102
|
- config/locales/hu.yml
|
88
103
|
- config/locales/it.yml
|
89
104
|
- config/locales/pt-BR.yml
|
@@ -107,17 +122,17 @@ require_paths:
|
|
107
122
|
- lib
|
108
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
109
124
|
requirements:
|
110
|
-
- -
|
125
|
+
- - ">="
|
111
126
|
- !ruby/object:Gem::Version
|
112
127
|
version: '0'
|
113
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
129
|
requirements:
|
115
|
-
- -
|
130
|
+
- - ">"
|
116
131
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
132
|
+
version: 1.3.1
|
118
133
|
requirements: []
|
119
134
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
135
|
+
rubygems_version: 2.4.8
|
121
136
|
signing_key:
|
122
137
|
specification_version: 4
|
123
138
|
summary: Handles globalize translations
|
Binary file
|