translate-rails3-plus 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -32,15 +32,11 @@ module TranslateHelper
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def translate_javascript_includes
|
35
|
-
sources = []
|
36
35
|
if File.exists?(File.join(Rails.root, "public", "javascripts", "prototype.js"))
|
37
|
-
|
36
|
+
javascript_include_tag("prototype.js")
|
38
37
|
else
|
39
|
-
|
38
|
+
javascript_include_tag("http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js")
|
40
39
|
end
|
41
|
-
sources.map do |src|
|
42
|
-
%Q{<script src="#{src}" type="text/javascript"></script>}
|
43
|
-
end.join("\n").html_safe
|
44
40
|
end
|
45
41
|
|
46
42
|
def translate_link(key, text, from, to)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translate-rails3-plus
|
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:
|
@@ -16,7 +16,7 @@ date: 2012-07-09 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: ya2yaml
|
19
|
-
requirement: &
|
19
|
+
requirement: &24746952 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version: '0.30'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *24746952
|
28
28
|
description: ! 'This plugin provides a web interface for translating Rails I18n texts
|
29
29
|
|
30
30
|
(requires Rails 3.0 or higher) from one locale to another.
|