mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
22 lines
492 B
Mathematica
22 lines
492 B
Mathematica
|
|
||
|
#import "ActionMenuRatioToDisplayRatioTransformer.h"
|
||
|
|
||
|
@implementation ActionMenuRatioToDisplayRatioTransformer
|
||
|
|
||
|
+ (Class) transformedValueClass
|
||
|
{
|
||
|
return [NSString class];
|
||
|
}
|
||
|
|
||
|
+ (BOOL) allowsReverseTransformation
|
||
|
{
|
||
|
return NO;
|
||
|
}
|
||
|
|
||
|
- (id) transformedValue: (id) value
|
||
|
{
|
||
|
return value == nil ? nil : [NSString stringWithFormat: NSLocalizedString(@"Stop at Ratio (%.2f)",
|
||
|
"Action context menu -> ratio stop"), [value floatValue]];
|
||
|
}
|
||
|
|
||
|
@end
|