lib/lolita-i18n/backend.rb in lolita-i18n-0.1.18 vs lib/lolita-i18n/backend.rb in lolita-i18n-0.2.0
- old
+ new
@@ -28,20 +28,20 @@
translation_key=translation_key(key)
value=Yajl::Parser.parse(translation.to_json)
if value.blank?
del key
else
- if Lolita.i18n.backend.store_translations(locale,{translation_key=>value},:escape=>false)
+ if Lolita::I18n.backend.store_translations(locale,{translation_key=>value},:escape=>false)
Lolita::I18n::GoogleTranslate.del_translation locale, translation_key
true
else
false
end
end
end
def del key
- Lolita.i18n.store.del key
+ Lolita::I18n.store.del key
end
def locale(key)
translate_to(key) || ::I18n.default_locale
end
\ No newline at end of file