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/

Reply via email to