para-i18n 0.1.1 → 0.1.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4782fe23a947f29315a50521a2b37459805191e
|
|
4
|
+
data.tar.gz: 569735c680d189e33941c807b978f6aa99c34f89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,9 +1,11 @@
|
|
|
1
|
-
= page_top_bar(title: resource_title_for(resource), type: 'crud/
|
|
1
|
+
= page_top_bar(title: resource_title_for(resource), type: 'crud/translate')
|
|
2
2
|
|
|
3
3
|
.page-content-wrap
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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)
|
data/lib/para/i18n/version.rb
CHANGED
data/lib/para/i18n.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|