rich_i18n 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.textile +4 -0
- data/VERSION +1 -1
- data/assets/jzip/rich/i18n.js +4 -4
- data/rich_i18n.gemspec +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= Rich-i18n CHANGELOG
|
2
2
|
|
3
|
+
== Version 1.3.4 (November 13, 2010)
|
4
|
+
|
5
|
+
* Fixed updating textareas with seatholders
|
6
|
+
|
3
7
|
== Version 1.3.3 (November 10, 2010)
|
4
8
|
|
5
9
|
* Fixed the disappearing translations after updating them in the front-end by delegating :as_json to @string
|
data/README.textile
CHANGED
@@ -261,6 +261,10 @@ nl:
|
|
261
261
|
criteria: '&Voorbeeld'
|
262
262
|
</pre>
|
263
263
|
|
264
|
+
h2. Disabling Rich-i18n logging
|
265
|
+
|
266
|
+
Just like @ActiveRecord::Base.logger@ and @ActionController::Base.logger@, you can set @Rich::I18n::Engine.logger@ to @nil@ in order to disable logging messages printed by Rich-i18n.
|
267
|
+
|
264
268
|
h2. Contact me
|
265
269
|
|
266
270
|
For support, remarks and requests please mail me at "paul.engel@holder.nl":mailto:paul.engel@holder.nl.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
data/assets/jzip/rich/i18n.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Rich.I18n = (function() {
|
3
3
|
return {
|
4
4
|
beforeEdit: function(inputs, selector, specs, identifier) {
|
5
|
-
var translated_keys = $("<input name='content_item[derivative_keys]' type='hidden'/>")
|
5
|
+
var translated_keys = $("<input name='content_item[derivative_keys]' type='hidden'/>");
|
6
6
|
|
7
7
|
translated_keys.val($(identifier).map(function() {
|
8
8
|
return $(this).attr("data-derivative_key");
|
@@ -12,9 +12,9 @@ Rich.I18n = (function() {
|
|
12
12
|
},
|
13
13
|
afterUpdate: function(form, response, selector, specs, identifier) {
|
14
14
|
$.each(response.translations, function(key, value) {
|
15
|
-
$(
|
16
|
-
$("
|
17
|
-
$("
|
15
|
+
$(".i18n" + identifier + "[data-derivative_key=" + key + "]") .attr("data-value", response.value).html( value);
|
16
|
+
$(".i18n" + identifier + "[data-derivative_key=" + key + "][value]") .attr("data-value", response.value).attr("value" , value);
|
17
|
+
$(".i18n" + identifier + "[data-derivative_key=" + key + "][seatholder]").attr("data-value", response.value).attr("seatholder", value);
|
18
18
|
});
|
19
19
|
SeatHolder.rebind();
|
20
20
|
}
|
data/rich_i18n.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rich_i18n}
|
8
|
-
s.version = "1.3.
|
8
|
+
s.version = "1.3.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Engel"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-13}
|
13
13
|
s.description = %q{Rich-i18n is a module of E9s (http://github.com/archan937/e9s) which enriches I18n, Formtastic, the String and Symbol classes. This simplifies internationalization of your Rails application making a Rails developers life much easier.}
|
14
14
|
s.email = %q{paul.engel@holder.nl}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rich_i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 4
|
10
|
+
version: 1.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Engel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-13 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|