Sha256: 6656aaad5d2bfd6401700562ac7e4bf1c081fbee285a27c53257f82aae1441d2
Contents?: true
Size: 604 Bytes
Versions: 13
Compression:
Stored size: 604 Bytes
Contents
class Object def to_l string, binding = nil lang = RubyExt::Localization.language unless lang == RubyExt::Localization::DEFAULT_LANGUAGE aself = self.respond_to(:localization_self) || self aclass = (aself.class == Class or aself.class == Module) ? aself : aself.class localization = aclass.localization lang if localization and localization.include? string string = localization[string] else RubyExt::Localization.log.warn("Not localized: '#{aclass.name}' '#{string}'!") end end string = string.interpolate binding if binding return string end end
Version data entries
13 entries across 13 versions & 1 rubygems