translation 0.9.5 → 0.9.6

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: 61d74cef08246ebc2fb57c359957e82ea18c0024
4
- data.tar.gz: 935f1c9c13da8244b0ece61700a3a07e76a79161
3
+ metadata.gz: 26c222c8c1149a0c4bd21129c4f3a9dd7e723978
4
+ data.tar.gz: 739654aa93c95f0ab8e1a1bc8a95bcc44e87fd03
5
5
  SHA512:
6
- metadata.gz: 41b3cdfcee4610adce8f938c805ce18316e96871b57e4663297991d1fef4801d3d5e0b640030523d6b35d2c6fdf42299d38bc314cb6be95f6e0d398579b8c6cd
7
- data.tar.gz: 67178106997e7b09f293beeaebd487f9e86b5e2babf73518bb8fb4383094d10d8bfa79a5e014ab1c8635893acbb80c2531cbd1fff43672c4d8fcc0bd7c5792c7
6
+ metadata.gz: 7e79d8d3234aa840421148ec31c0d155f91fc3db730eef3d72a5e2de7ccacc348935e522400d65a20ee8159ac727e298bd7ddceae5dce57daaf6b176283fa976
7
+ data.tar.gz: d265300164c4341f64929c21f4dbdd79ab3543be228962e2555b37e4dbfb5ee2cb4f60daa8bc77923f0fea96856480778ceab345a9e7e1f4e07df4a63dc76c03
data/lib/translation.rb CHANGED
@@ -46,8 +46,8 @@ module TranslationIO
46
46
  yield @config
47
47
 
48
48
  Proxy.bindtextdomain(TEXT_DOMAIN, {
49
- :path => @config.locales_path,
50
- :charset => 'utf-8'
49
+ :path => @config.locales_path,
50
+ :output_charset => @config.charset
51
51
  })
52
52
 
53
53
  Proxy.textdomain(TEXT_DOMAIN)
@@ -6,6 +6,7 @@ module TranslationIO
6
6
  attr_accessor :verbose
7
7
  attr_accessor :test
8
8
  attr_accessor :ignored_key_prefixes
9
+ attr_accessor :charset
9
10
 
10
11
  def initialize
11
12
  self.locales_path = File.join('config', 'locales', 'gettext')
@@ -15,6 +16,7 @@ module TranslationIO
15
16
  self.verbose = 1
16
17
  self.test = false
17
18
  self.ignored_key_prefixes = []
19
+ self.charset = 'UTF-8'
18
20
  end
19
21
 
20
22
  def pot_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurelien Malisart
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-10 00:00:00.000000000 Z
12
+ date: 2014-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gettext