This has probably been answered a long time ago, and I'm just not using the
right keywords, but - can anyone tell me the preferred way of
internationalizing MacRuby applications?
I've done about an hour of Googling, and come up with two examples on GitHub.
The best one seems to be Marius Soute
you can pass a "plain string" (e.g. "text string" not @"text string") and
macruby will treat it as an NSString.
and I think the localized version is fetched using:
NSBundle.mainBundle.localizedStringForKey('text string', value:nil,
table:nil)
@colinta
colinta.com
github.com/colinta
On
Thanks, Colin!
I knew I was missing something - I didn't think to look in NSBundle, and my
Googling didn't come up with that, either.
/Carolyn
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
https://lists.macosforge.org/mailman/listin