ymdp 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ymdp/javascripts/jquery/i18n.js +7 -1
- data/ymdp.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.7
|
@@ -28,6 +28,8 @@ I18n.init = function() {
|
|
28
28
|
|
29
29
|
I18n.setResources();
|
30
30
|
|
31
|
+
I18n.fallback = "en-US";
|
32
|
+
|
31
33
|
Debug.log("finished calling I18n.init");
|
32
34
|
};
|
33
35
|
|
@@ -78,7 +80,11 @@ I18n.t = I18n.translate;
|
|
78
80
|
|
79
81
|
I18n.translate_phrase = function(key) {
|
80
82
|
// Debug.log("I18n.translate phrase ", key, I18n.currentLanguage, I18n["keys"][I18n.currentLanguage][key]);
|
81
|
-
|
83
|
+
if (I18n["keys"][I18n.currentLanguage] != undefined) {
|
84
|
+
return I18n["keys"][I18n.currentLanguage][key];
|
85
|
+
} else if (I18n["keys"][I18n.fallback] != undefined) {
|
86
|
+
return I18n["keys"][I18n.fallback][key];
|
87
|
+
}
|
82
88
|
};
|
83
89
|
|
84
90
|
I18n.translate_sentence = function(key, args) {
|
data/ymdp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ymdp"
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Isaac Priestley"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-10-25"
|
13
13
|
s.description = "Framework for developing applications in the Yahoo! Mail Development Platform."
|
14
14
|
s.email = "progressions@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ymdp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 7
|
10
|
+
version: 1.4.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Isaac Priestley
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-10-25 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|