Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 5f23d3d

Browse files
committed
Merge branch 'develop' of https://github.com/humancopy/activeadmin-globalize into feature/pull-13
2 parents 9700934 + 815d03d commit 5f23d3d

File tree

13 files changed

+48
-7
lines changed

13 files changed

+48
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ syntax shown below for form declaration doesn't work as is. See comments in code
3333
```ruby
3434

3535
# For usage with strong parameters you'll need to permit them
36-
permit_params translations_attributes: [:id, :locale, :title, :content, :_destroy]
36+
permit_params translations_attributes: [:id, :locale, :title, :description, :_destroy]
3737

3838
index do
3939
# textual translation status
4040
translation_status
4141
# or with flag icons
4242
translation_status_flags
4343
# ...
44-
default_actions
44+
actions
4545
end
4646

4747
# This was the original syntax proposed in this gem, however currently it doesn't work
4848
form do |f|
4949
# ...
5050
f.translated_inputs "Translated fields", switch_locale: false do |t|
5151
t.input :title
52-
t.input :content
52+
t.input :description
5353
end
5454
# ...
5555
end
@@ -61,7 +61,7 @@ form do |f|
6161
f.inputs "Translated fields" do
6262
f.translated_inputs 'ignored title', switch_locale: false do |t|
6363
t.input :title
64-
t.input :content
64+
t.input :description
6565
end
6666
end
6767
# ...
@@ -79,7 +79,7 @@ form do |f|
7979
f.inputs "Translated fields" do
8080
f.translated_inputs 'ignored title', switch_locale: false, available_locales: (I18n.available_locales - [:en]) do |t|
8181
t.input :title
82-
t.input :content
82+
t.input :description
8383
end
8484
end
8585
# ...
@@ -92,7 +92,7 @@ form do |f|
9292
f.inputs "Translated fields" do
9393
f.translated_inputs 'ignored title', switch_locale: false, default_locale: :bn do |t|
9494
t.input :title
95-
t.input :content
95+
t.input :description
9696
end
9797
end
9898
# ...
119 Bytes
Loading
-42 Bytes
Binary file not shown.

app/assets/stylesheets/active_admin/active_admin_globalize_flags.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
// Override flag positions in your stylesheet if you want to change default flags
55
.flag
6+
display: inline-block
67
width: 16px
78
height: 11px
89
vertical-align: middle
@@ -33,6 +34,8 @@
3334
background-position: -32px -22px
3435
&.flag-en // originally flag-us
3536
background-position: -48px -22px
37+
&.flag-he // originally flag-il
38+
background-position: 0 -33px
3639

3740
// Used to distantiate inline locale selector
3841
span.inline-locale-selector

config/locales/de.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ de:
1212
pt-BR: "Portugiesisch"
1313
pt-PT: "Portugiesisch (Portugal)"
1414
tr: "Türkisch"
15+
he: "Hebräisch"
1516

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ en:
1212
pt-BR: "Portuguese"
1313
pt-PT: "Portuguese (Portugal)"
1414
tr: "Turkish"
15+
he: "Hebrew"
1516

config/locales/es.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+

config/locales/he.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+

config/locales/hu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ hu:
1212
pt-BR: "Portuguese"
1313
pt-PT: "Portuguese (Portugal)"
1414
tr: "Török"
15+
he: "Héber"
1516

config/locales/it.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ it:
1212
pt-BR: "Portoghese"
1313
pt-PT: "Portoghese (Portogallo)"
1414
tr: "Turco"
15+
he: "Ebraico"
1516

0 commit comments

Comments
 (0)