radiant-globalize2-extension 0.2.0 → 0.2.1

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.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.1
@@ -3,7 +3,7 @@
3
3
  require 'globalize2/form_builder_extensions'
4
4
 
5
5
  class Globalize2Extension < Radiant::Extension
6
- version "0.2"
6
+ version "0.2.1"
7
7
  description "Translate content in Radiant CMS using the Globalize2 Rails plugin."
8
8
  url "http://blog.aissac.ro/radiant/globalize2-extension/"
9
9
 
@@ -5,5 +5,10 @@ module Globalize2
5
5
  before_filter :reset_locale, :only => [:new]
6
6
  end
7
7
  end
8
+
9
+ def reset_locale
10
+ @locale = Globalize2Extension.default_language
11
+ Globalize2Extension.content_locale = I18n.locale = @locale.to_sym
12
+ end
8
13
  end
9
14
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-globalize2-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cristi Duma
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2011-03-29 00:00:00 +02:00
24
+ date: 2011-03-30 00:00:00 +02:00
25
25
  default_executable:
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
@@ -50,6 +50,7 @@ extra_rdoc_files: []
50
50
 
51
51
  files:
52
52
  - Rakefile
53
+ - VERSION
53
54
  - app/views/admin/shared/_change_locale.html.haml
54
55
  - app/views/admin/shared/_change_locale_admin.html.haml
55
56
  - app/views/admin/shared/_globalize_td.html.haml