Class: NSString

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-phrase/nsstring.rb

Instance Method Summary collapse

Instance Method Details

#_localized(value = nil, table = nil) ⇒ Object Also known as: __



2
3
4
5
6
# File 'lib/motion-phrase/nsstring.rb', line 2

def _localized(value=nil, table=nil)
  @localized = NSBundle.mainBundle.localizedStringForKey(self, value:value, table:table)
  storeTranslation(self, @localized, value, table) if phraseEnabled?
  @localized
end