Fwd: About.com | Your IM/Chat Has Been Nominated for a Reader's Choice Award!

2010-01-25 Thread Eric Richie
-- Forwarded message -- From: Brandon De Hoyos im.gu...@about.com Date: Mon, Jan 25, 2010 at 3:22 PM Subject: About.com | Your IM/Chat Has Been Nominated for a Reader's Choice Award! To: pr...@adium.im Dear Adium: Congratulations! This email is being sent to inform you that

Re: NSLocalizedString not works in plugin

2010-01-25 Thread Evan Schoenberg, M.D.
Chen, You want to use AILocalizedStringFromTableInBundle() (or NSLocalizedStringFromTableInBundle() which is identical, as the former is #define'd as the latter) with [self bundleForClass:[self class]] as the bundle argument. Otherwise, you are looking up strings from the main bundle

Re: NSLocalizedString not works in plugin

2010-01-25 Thread Peter Hosey
On Jan 25, 2010, at 16:46:42, Evan Schoenberg, M.D. wrote: You want to use AILocalizedStringFromTableInBundle() … with [self bundleForClass:[self class]] as the bundle argument. Otherwise, you are looking up strings from the main bundle (Adium.app's bundle) which is not what you want, as

Re: NSLocalizedString not works in plugin

2010-01-25 Thread Evan Schoenberg, M.D.
On Jan 25, 2010, at 7:25 PM, Peter Hosey wrote: On Jan 25, 2010, at 16:46:42, Evan Schoenberg, M.D. wrote: You want to use AILocalizedStringFromTableInBundle() … with [self bundleForClass:[self class]] as the bundle argument. Otherwise, you are looking up strings from the main bundle

Re: NSLocalizedString not works in plugin

2010-01-25 Thread Peter Hosey
On Jan 25, 2010, at 17:35:29, Evan Schoenberg, M.D. wrote: The code the OP posted used NSLocalizedString(), which won't work without specifying the bundle. He also said: “I also tried AILocalizedString with the table name which is same as bundle name.it also not works.” So, Chen Ze, the