Index: Info.plist =================================================================== --- Info.plist (revision 2833) +++ Info.plist (working copy) @@ -27,7 +27,7 @@ VoikkoSpellService NSLanguages - fi_FI + Finnish NSPortName VoikkoSpellService Index: VoikkoSpellService.m =================================================================== --- VoikkoSpellService.m (revision 2833) +++ VoikkoSpellService.m (working copy) @@ -87,9 +87,15 @@ @end -int main() { - if (voikko_init(&voikko_handle, "fi_FI", 0)) { - fprintf(stderr, "voikko_init failed\n"); +int main(int argc, char **argv) { + char dictpath[1024], *p; + strcpy(dictpath, argv[0]); + if(p = strrchr(dictpath, '/')) { + *p = '\0'; + } + strcat(dictpath, "/../Resources/voikko"); + if (voikko_init_with_path(&voikko_handle, "fi_FI", 0, dictpath)) { + fprintf(stderr, "voikko_init_with_path failed (path = %s)\n", dictpath); exit(1); } NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -101,7 +107,7 @@ exit(1); } VoikkoSpellService *voikkoService = [[VoikkoSpellService alloc] init]; - if ([aServer registerLanguage:@"fi_FI" byVendor:@"Voikko"]) { + if ([aServer registerLanguage:@"Finnish" byVendor:@"Voikko"]) { [aServer setDelegate:voikkoService]; [aServer run]; fprintf(stderr, "Voikko spell server died!\n");