NSLocalizedString not works in plugin

Chen Ze surfchen at gmail.com
Sun Jan 24 04:43:06 UTC 2010


Below is the code. it works in an normal(like window based) cocoa
program but not works when I use in an adium plugin.

- (void)installPlugin
{
	NSAlert *alert =
	[NSAlert
	 alertWithMessageText:NSLocalizedString(@"my title", @"")
	 defaultButton:NSLocalizedString(@"OK", @"")
	 alternateButton:nil
	 otherButton:nil
	 informativeTextWithFormat:NSLocalizedString(@"my text",@"")];
	[alert
	 performSelector:@selector(runModal)
	 onThread:[NSThread mainThread]
	 withObject:nil waitUntilDone:NO];
}

and the the files are:
zh_CN.lproj/Localizable.strings
English.lproj/Localizable.strings

I also tried AILocalizedString with the table name which is same as
bundle name.it also not works.

Did I miss something? I am new to plugin development.

-- 
aka Surf Chen
http://chenze.name/




More information about the devel mailing list