X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJInputHat.m;h=d267b716e7ae652cd7dfaae63cee8507e3dfc0ab;hp=e0e127fec646b6d4b15e51b144cede49ede7c0b2;hb=235c087385a6e959ba7edefe4a3cbbbc00b2a534;hpb=1ddf0ccce8bbc789483ae087390c2e93abdbd7ea diff --git a/Classes/NJInputHat.m b/Classes/NJInputHat.m index e0e127f..d267b71 100644 --- a/Classes/NJInputHat.m +++ b/Classes/NJInputHat.m @@ -31,11 +31,11 @@ static BOOL active_fourway[20] = { - (id)initWithIndex:(int)index { if ((self = [super init])) { - self.children = @[[[NJInput alloc] initWithName:@"Up" base:self], - [[NJInput alloc] initWithName:@"Down" base:self], - [[NJInput alloc] initWithName:@"Left" base:self], - [[NJInput alloc] initWithName:@"Right" base:self]]; - self.name = [NSString stringWithFormat:@"Hat Switch %d", index]; + self.children = @[[[NJInput alloc] initWithName:NSLocalizedString(@"hat up", @"hat switch up state") base:self], + [[NJInput alloc] initWithName:NSLocalizedString(@"hat down", @"hat switch down state") base:self], + [[NJInput alloc] initWithName:NSLocalizedString(@"hat left", @"hat switch left state") base:self], + [[NJInput alloc] initWithName:NSLocalizedString(@"hat right", @"hat switch right state") base:self]]; + self.name = [NSString stringWithFormat:NSLocalizedString(@"hat switch %d", @"hat switch name"), index]; } return self; }