air18n 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/air18n/default_text_change_observer.rb +15 -0
- data/lib/air18n/version.rb +1 -1
- data/make_gem +1 -1
- metadata +2 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
module Air18n
|
2
|
+
module DefaultTextChangeObserver
|
3
|
+
# Called when default text for key changes from old_default to new_default
|
4
|
+
# in locale (which is necessarilly the default locale).
|
5
|
+
# Return value is ignored.
|
6
|
+
def default_text_changed(locale, key, old_default, new_default)
|
7
|
+
end
|
8
|
+
|
9
|
+
# Called when default text for key changes from old_default to new_default in locale.
|
10
|
+
# If return value is true, the text in the default locale will be changed
|
11
|
+
# to new_default; otherwise it will stay as old_default.
|
12
|
+
def allow_default_text_change?(locale, key, old_default, new_default)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/air18n/version.rb
CHANGED
data/make_gem
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: air18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- lib/air18n.rb
|
149
149
|
- lib/air18n/backend.rb
|
150
150
|
- lib/air18n/class_methods.rb
|
151
|
+
- lib/air18n/default_text_change_observer.rb
|
151
152
|
- lib/air18n/less_silly_chain.rb
|
152
153
|
- lib/air18n/logging_helper.rb
|
153
154
|
- lib/air18n/mock_priority.rb
|