X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJInputButton.m;h=caa4d8e55c54ba1824ecd957228defab821f5c3d;hp=0c3b0ce32de0105413d0d1c4e68c86be853e62b7;hb=235c087385a6e959ba7edefe4a3cbbbc00b2a534;hpb=1ddf0ccce8bbc789483ae087390c2e93abdbd7ea diff --git a/Classes/NJInputButton.m b/Classes/NJInputButton.m index 0c3b0ce..caa4d8e 100644 --- a/Classes/NJInputButton.m +++ b/Classes/NJInputButton.m @@ -14,10 +14,10 @@ - (id)initWithName:(NSString *)name idx:(int)idx max:(long)max { if ((self = [super init])) { _max = max; + self.name = [NSString stringWithFormat:NSLocalizedString(@"button %d", @"button name"), idx]; + if (name.length) - self.name = [NSString stringWithFormat:@"Button %d - %@", idx, name]; - else - self.name = [NSString stringWithFormat:@"Button %d", idx]; + self.name = [self.name stringByAppendingFormat:@"- %@", name]; } return self; }