po_to_json 0.0.3 → 0.0.4
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/lib/po_to_json.rb +3 -3
- metadata +3 -3
data/lib/po_to_json.rb
CHANGED
|
@@ -26,12 +26,12 @@ class PoToJson
|
|
|
26
26
|
@parsed ||= self.parse
|
|
27
27
|
|
|
28
28
|
@parsed['']['lang'] = language_code
|
|
29
|
-
@parsed['']['domain'] = '
|
|
29
|
+
@parsed['']['domain'] = 'app'
|
|
30
30
|
@parsed['']['plural_forms'] ||= @parsed['']['Plural-Forms']
|
|
31
31
|
|
|
32
32
|
jed_json = {
|
|
33
|
-
domain: '
|
|
34
|
-
locale_data: @parsed
|
|
33
|
+
domain: 'app',
|
|
34
|
+
locale_data: { app: @parsed }
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
"var locales = locales || {}; locales['#{language_code}'] = #{jed_json.to_json};"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: po_to_json
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -14,7 +14,7 @@ date: 2012-07-17 00:00:00.000000000 Z
|
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: json
|
|
17
|
-
requirement: &
|
|
17
|
+
requirement: &70164234852820 !ruby/object:Gem::Requirement
|
|
18
18
|
none: false
|
|
19
19
|
requirements:
|
|
20
20
|
- - ! '>='
|
|
@@ -22,7 +22,7 @@ dependencies:
|
|
|
22
22
|
version: 1.7.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
|
-
version_requirements: *
|
|
25
|
+
version_requirements: *70164234852820
|
|
26
26
|
description: Convert gettext PO files to json to use in your javascript app, based
|
|
27
27
|
po2json.pl (by DuckDuckGo, Inc. http://duckduckgo.com/, Torsten Raudssus <torsten@raudss.us>.)
|
|
28
28
|
email: nubis@woobiz.com.ar
|