lib/fast_gettext/storage.rb in fast_gettext-0.6.12 vs lib/fast_gettext/storage.rb in fast_gettext-0.7.0

- old
+ new

@@ -125,12 +125,12 @@ end # for chaining: puts set_locale('xx') == 'xx' ? 'applied' : 'rejected' # returns the current locale, not the one that was supplied # like locale=(), whoes behavior cannot be changed - def set_locale(new_locale, options={}) + def set_locale(new_locale) new_locale = best_locale_in(new_locale) - self._locale = new_locale if new_locale || options[:reset_on_unknown] + self._locale = new_locale locale end @@default_locale = nil def default_locale=(new_locale)