Module: Air18n::DefaultTextChangeObserver
- Defined in:
- lib/air18n/default_text_change_observer.rb
Instance Method Summary collapse
-
#allow_default_text_change?(locale, key, old_default, new_default) ⇒ Boolean
Called when default text for key changes from old_default to new_default in locale.
-
#default_text_changed(locale, key, old_default, new_default) ⇒ Object
Called when default text for key changes from old_default to new_default in locale (which is necessarilly the default locale).
Instance Method Details
#allow_default_text_change?(locale, key, old_default, new_default) ⇒ Boolean
Called when default text for key changes from old_default to new_default in locale. If return value is true, the text in the default locale will be changed to new_default; otherwise it will stay as old_default.
12 13 |
# File 'lib/air18n/default_text_change_observer.rb', line 12 def allow_default_text_change?(locale, key, old_default, new_default) end |
#default_text_changed(locale, key, old_default, new_default) ⇒ Object
Called when default text for key changes from old_default to new_default in locale (which is necessarilly the default locale). Return value is ignored.
6 7 |
# File 'lib/air18n/default_text_change_observer.rb', line 6 def default_text_changed(locale, key, old_default, new_default) end |