# ActivescaffoldJapaneseL10n require 'locale_ja_jp' class Object alias_method :as__without_jp, :as_ def as__with_jp(*args) pars = args.dup fmt = pars.shift text = ACTIVESCAFFOLD_LOCALIZATION_MAP[fmt] if text text = text % pars unless pars.empty? return text end return as__without_jp(*args) end alias_method :as_, :as__with_jp end