para-i18n 0.1.1 → 0.1.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: 7ca0ae98159f636ad5cf97f4481d066819e4daf2
4
- data.tar.gz: e2bd232647bd4edee8c06fc82a931fad40ef7211
3
+ metadata.gz: e4782fe23a947f29315a50521a2b37459805191e
4
+ data.tar.gz: 569735c680d189e33941c807b978f6aa99c34f89
5
5
  SHA512:
6
- metadata.gz: 79e0910d8bf7ec05871b8721f547ee29b4fd4e5192f2aaf1d8ae7bd1f825dd8a79040d144c538e3c2b1677d1cd8f420d2137d6db0d9ba37ffa6e907bdf876330
7
- data.tar.gz: b19299a63bb9eff4690854f285eda67dab0c5df3bbd1cbbd703ab5139b71fede3425b49d97abc1bb048390b4b8c6b4372be2cb23cb3937db61de40cab638ad62
6
+ metadata.gz: 98a6a60bff18fbb0f0dc9db479d22cd3ba03f36650f88dfc729e9f9b909092869542707682417c343551a26c764bca883ad915dbb91c26ad84dd2b8abbb62f1b
7
+ data.tar.gz: b855da1d71f6b4435db90b925638aea1a05617cf036828dd51cb223f623a9e6c3e476a7f9f75f22869404d618a8b952a69265b1c2be8791f4c0a35c2f1c5e07d
data/README.md CHANGED
@@ -149,6 +149,12 @@ locale, and will allow you to find the resources with the translated slugs.
149
149
  Note that if I18n fallbacks are enabled, it will try to fall back to the next
150
150
  locale if no resource was found for the given slug and locale.
151
151
 
152
+ ## Migrating from Globalize
153
+
154
+ There's a dedicated section in the Wiki that can help your migrate your app grom Globalize to Para::I18n.
155
+
156
+ You can find this guide here : [Migrating from Globalize](https://github.com/para-cms/para-i18n/wiki/Migrating-from-Globalize)
157
+
152
158
  ## Contributing
153
159
 
154
160
  Bug reports and pull requests are welcome on GitHub at https://github.com/para-cms/para-i18n.
@@ -1,3 +1,3 @@
1
- $(document).on 'page:change', ->
1
+ $(document).on 'page:change turbolinks:load', ->
2
2
  $('body').on 'change', '[data-locale-select]', (e) ->
3
3
  $(e.currentTarget).closest('form').submit()
@@ -1,9 +1,11 @@
1
- = page_top_bar(title: resource_title_for(resource), type: 'crud/edit')
1
+ = page_top_bar(title: resource_title_for(resource), type: 'crud/translate')
2
2
 
3
3
  .page-content-wrap
4
- .well
5
- = form_tag @component.relation_path(resource, :translation, action: :edit), method: :get do
6
- = label :target_locale, t('i18n_admin.translations.choose_locale')
7
- = select_tag :target_locale, options_for_select(@locales.map { |locale| [locale, locale] }, @target_locale), data: { :'locale-select' => true }
4
+ = form_tag @component.relation_path(resource, :translation, action: :edit), method: :get, class: 'form-horizontal form-group-separated' do
5
+ .block.form-inputs
6
+ .form-group
7
+ = label :target_locale, t('i18n_admin.translations.choose_locale'), class: 'control-label col-md-3 pull-left'
8
+ .col-md-9
9
+ = select_tag :target_locale, options_for_select(@locales.map { |locale| [locale, locale] }, @target_locale), data: { :'locale-select' => true, selectize: true, multi: false, value: { text: @target_locale, value: @target_locale } }
8
10
 
9
11
  = render find_partial_for(resource, :translations_form)
@@ -1,5 +1,5 @@
1
1
  module Para
2
2
  module I18n
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
data/lib/para/i18n.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'para'
2
+
1
3
  require 'para/i18n/version'
2
4
 
3
5
  require 'para/i18n/fallbacks'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: para-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin Ballestrino
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-12 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler