X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJDeviceController.m;h=2ce3fa93c8f72bb2f6acb4f32b71d9540f5bc76e;hp=2849838b22e2c576de28e45d06add5f278075776;hb=235c087385a6e959ba7edefe4a3cbbbc00b2a534;hpb=1ddf0ccce8bbc789483ae087390c2e93abdbd7ea diff --git a/Classes/NJDeviceController.m b/Classes/NJDeviceController.m index 2849838..2ce3fa9 100644 --- a/Classes/NJDeviceController.m +++ b/Classes/NJDeviceController.m @@ -202,13 +202,13 @@ static void remove_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDD IOHIDManagerSetDeviceMatchingMultiple(_hidManager, (__bridge CFArrayRef)criteria); IOReturn ret = IOHIDManagerOpen(_hidManager, kIOHIDOptionsTypeNone); if (ret != kIOReturnSuccess) { - [[NSAlert alertWithMessageText:@"Input devices are unavailable" + [[NSAlert alertWithMessageText:NSLocalizedString(@"input devices unavailable", + @"error title when devices can't be read") defaultButton:nil alternateButton:nil otherButton:nil - informativeTextWithFormat:@"Error 0x%08x occured trying to access your devices. " - @"Input may not be correctly detected or mapped.", - ret] + informativeTextWithFormat:NSLocalizedString(@"input error 0x%08x occurred", + @"message containing IOReturn failure code when devices can't be read"), ret] beginSheetModalForWindow:outlineView.window modalDelegate:nil didEndSelector:nil