mack-localization 0.7.1.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mack-localization/configuration.rb +9 -14
- data/lib/mack-localization.rb +1 -0
- metadata +13 -3
@@ -9,21 +9,16 @@ module Mack
|
|
9
9
|
module Localization # :nodoc:
|
10
10
|
module Configuration
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
"base_directory" => Mack::Paths.app("lang"),
|
19
|
-
"content_expiry" => 3600
|
20
|
-
}
|
21
|
-
end
|
12
|
+
configatron.mack.localization.base_language = 'en'
|
13
|
+
configatron.mack.localization.supported_languages = %w{bp en fr it de es}
|
14
|
+
configatron.mack.localization.char_encoding = 'us-ascii'
|
15
|
+
configatron.mack.localization.dynamic_translation = false
|
16
|
+
configatron.mack.localization.base_directory = Mack::Paths.app('lang')
|
17
|
+
configatron.mack.localization.content_expiry = 3600
|
22
18
|
|
23
|
-
|
24
|
-
path = Mack::Paths.config("localization", "localization.yml")
|
19
|
+
path = Mack::Paths.config("localization", "localization.rb")
|
25
20
|
if File.exists?(path)
|
26
|
-
|
21
|
+
require path
|
27
22
|
end
|
28
23
|
end
|
29
24
|
end
|
@@ -35,6 +30,6 @@ class Object
|
|
35
30
|
# Give access to the mack l10n config object from anywhere inside the application
|
36
31
|
#
|
37
32
|
def l10n_config
|
38
|
-
|
33
|
+
configatron.mack.localization
|
39
34
|
end
|
40
35
|
end
|
data/lib/mack-localization.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-localization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darsono Sutedja
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-10-06 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,6 +22,16 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.0.2
|
24
24
|
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mack-caching
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.8.0
|
34
|
+
version:
|
25
35
|
description: Localization support for Mack Framework
|
26
36
|
email: Darsono.Sutedja@gmail.com
|
27
37
|
executables: []
|
@@ -77,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
87
|
requirements: []
|
78
88
|
|
79
89
|
rubyforge_project: magrathea
|
80
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.3.0
|
81
91
|
signing_key:
|
82
92
|
specification_version: 2
|
83
93
|
summary: Localization support for Mack Framework
|