You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sounds good. If you wanted to drop the I18n part, you could create a mapping for the I18n class that you wrote; however, I'm not sure use of the I18n class is complicated enough to warrant a mapping.
Perhaps just using #extend in the class that implements the app would be enough, just like how apps include HotCocoa right now.
Currently, in order to internationalise the menus of the app i'm doing, I have the following in the menu.rb file:
("apple:about" then references values in the Localizable.strings files for each country, yadda yadda)
I think it might be useful for hotcocoa to have certain localisation shortcuts built-in, especially since the NSLocalizedString macro (http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/macro/NSLocalizedString) doesn't appear to work in MacRuby.
I was thinking of having something like this (ahem, 'inspired' by http://guides.rubyonrails.org/i18n.html#the-public-i18n-api):
What would also be neat is to not have to always put I18n in front, but I don't know the innards of hotcocoa well enough yet to accomplish that.
Anyway,
The text was updated successfully, but these errors were encountered: