2013-10-11 19:02:05 +00:00
|
|
|
//
|
|
|
|
// Created by UFO on 12/5/12.
|
|
|
|
//
|
|
|
|
#import "MiniModeMenuTitleTransformer.h"
|
|
|
|
|
|
|
|
@implementation MiniModeMenuTitleTransformer
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
+ (Class)transformedValueClass {
|
|
|
|
return [NSString class];
|
|
|
|
}
|
|
|
|
+ (BOOL)allowsReverseTransformation {
|
|
|
|
return NO;
|
|
|
|
}
|
2013-10-11 19:02:05 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (id)transformedValue:(id)value {
|
|
|
|
if([(NSNumber *)value boolValue]) {
|
|
|
|
return NSLocalizedString(@"SwitchFromMiniPlayer", @"");
|
|
|
|
} else {
|
|
|
|
return NSLocalizedString(@"SwitchToMiniPlayer", @"");
|
|
|
|
}
|
2013-10-11 19:02:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|