X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJMappingMenuController.m;h=6d9250f95ed897b56868bad9bc72a6bd7eaa777e;hp=882a984405b2fc5865de6ee2cc45d067a05e2fb5;hb=58ce8f7f50f382f18e7b416eca737803af284868;hpb=9a400b562a83ed0ef9449cded72152d1e4860f5c diff --git a/Classes/NJMappingMenuController.m b/Classes/NJMappingMenuController.m index 882a984..6d9250f 100644 --- a/Classes/NJMappingMenuController.m +++ b/Classes/NJMappingMenuController.m @@ -27,12 +27,12 @@ name:NJEventMappingChanged object:nil]; [center addObserver:self - selector:@selector(eventTranslationActivated:) - name:NJEventTranslationActivated + selector:@selector(eventSimulationStarted:) + name:NJEventSimulationStarted object:nil]; [center addObserver:self - selector:@selector(eventTranslationDeactivated:) - name:NJEventTranslationDeactivated + selector:@selector(eventSimulationStopped:) + name:NJEventSimulationStopped object:nil]; } return self; @@ -76,7 +76,8 @@ [self.menu insertItem:item atIndex:index++]; if (added == MAXIMUM_MAPPINGS_IN_MENU && mappings.count > MAXIMUM_MAPPINGS_IN_MENU + 1) { - NSString *msg = [NSString stringWithFormat:@"(and %lu more…)", + NSString *msg = [NSString stringWithFormat:NSLocalizedString(@"mapping overflow %lu", + @"menu item when mappings list overflows"), mappings.count - MAXIMUM_MAPPINGS_IN_MENU]; NSMenuItem *end = [[NSMenuItem alloc] initWithTitle:msg action:@selector(_mappingListWasChosen:) @@ -98,14 +99,14 @@ item.state = mapping == item.representedObject; } -- (void)eventTranslationActivated:(NSNotification *)note { - self.eventTranslationToggle.title = @"Disable"; +- (void)eventSimulationStarted:(NSNotification *)note { + self.eventSimulationToggle.title = NSLocalizedString(@"Disable", + @"menu item text to disable event simulation"); } -- (void)eventTranslationDeactivated:(NSNotification *)note { - self.eventTranslationToggle.title = @"Enable"; +- (void)eventSimulationStopped:(NSNotification *)note { + self.eventSimulationToggle.title = NSLocalizedString(@"Enable", + @"menu item text to enable event simulation"); } - - @end