lib/cocoa/sugarcube-localized/nsstring.rb in sugarcube-2.0.1 vs lib/cocoa/sugarcube-localized/nsstring.rb in sugarcube-2.0.2
- old
+ new
@@ -1,10 +1,10 @@
class NSString
# This can be called as `"Hello".localized` or `"Hello"._`. The `str._`
# syntax is meant to be reminiscent of gettext-style `_(str)`.
def localized(value=nil, table=nil)
- @localized = NSBundle.mainBundle.localizedStringForKey(self, value: value, table: table)
+ NSBundle.mainBundle.localizedStringForKey(self, value: value, table: table)
end
alias _ localized
end