Some more renames.
[enjoyable.git] / Classes / NJMappingMenuController.m
index 882a984..6d9250f 100644 (file)
                        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:)
             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