[ReplayGain Info] Info strings are now localized
The strings are now part of the localized strings storage, which is still awaiting a volunteer to add more translations to the app. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
a0a5106e51
commit
636fefaf6f
|
@ -262,18 +262,18 @@ extern NSMutableDictionary<NSString *, AlbumArtwork *> *__artworkDictionary;
|
|||
- (NSString *)gainCorrection {
|
||||
if(self.replayGainAlbumGain) {
|
||||
if(self.replayGainAlbumPeak)
|
||||
return @"Album Gain plus Peak";
|
||||
return NSLocalizedStringFromTableInBundle(@"GainAlbumGainPeak", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
else
|
||||
return @"Album Gain";
|
||||
return NSLocalizedStringFromTableInBundle(@"GainAlbumGain", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
} else if(self.replayGainTrackGain) {
|
||||
if(self.replayGainTrackPeak)
|
||||
return @"Track Gain plus Peak";
|
||||
return NSLocalizedStringFromTableInBundle(@"GainTrackGainPeak", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
else
|
||||
return @"Track Gain";
|
||||
return NSLocalizedStringFromTableInBundle(@"GainTrackGain", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
} else if(self.volume && self.volume != 1.0) {
|
||||
return @"Volume scale";
|
||||
return NSLocalizedStringFromTableInBundle(@"GainVolumeScale", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
} else {
|
||||
return @"None";
|
||||
return NSLocalizedStringFromTableInBundle(@"GainNone", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -281,19 +281,19 @@ extern NSMutableDictionary<NSString *, AlbumArtwork *> *__artworkDictionary;
|
|||
- (NSString *)gainInfo {
|
||||
NSMutableArray *gainItems = [[NSMutableArray alloc] init];
|
||||
if(self.replayGainAlbumGain) {
|
||||
[gainItems addObject:[NSString stringWithFormat:@"Album Gain: %+.2f dB", self.replayGainAlbumGain]];
|
||||
[gainItems addObject:[NSString stringWithFormat:@"%@: %+.2f dB", NSLocalizedStringFromTableInBundle(@"GainAlbumGain", nil, [NSBundle bundleForClass:[self class]], @""), self.replayGainAlbumGain]];
|
||||
}
|
||||
if(self.replayGainAlbumPeak) {
|
||||
[gainItems addObject:[NSString stringWithFormat:@"Album Peak: %.6f", self.replayGainAlbumPeak]];
|
||||
[gainItems addObject:[NSString stringWithFormat:@"%@: %.6f", NSLocalizedStringFromTableInBundle(@"GainAlbumPeak", nil, [NSBundle bundleForClass:[self class]], @""), self.replayGainAlbumPeak]];
|
||||
}
|
||||
if(self.replayGainTrackGain) {
|
||||
[gainItems addObject:[NSString stringWithFormat:@"Track Gain: %+.2f dB", self.replayGainTrackGain]];
|
||||
[gainItems addObject:[NSString stringWithFormat:@"%@: %+.2f dB", NSLocalizedStringFromTableInBundle(@"GainTrackGain", nil, [NSBundle bundleForClass:[self class]], @""), self.replayGainTrackGain]];
|
||||
}
|
||||
if(self.replayGainTrackPeak) {
|
||||
[gainItems addObject:[NSString stringWithFormat:@"Track Peak: %.6f", self.replayGainTrackPeak]];
|
||||
[gainItems addObject:[NSString stringWithFormat:@"%@: %.6f", NSLocalizedStringFromTableInBundle(@"GainTrackPeak", nil, [NSBundle bundleForClass:[self class]], @""), self.replayGainTrackPeak]];
|
||||
}
|
||||
if(self.volume && self.volume != 1) {
|
||||
[gainItems addObject:[NSString stringWithFormat:@"Volume Scale: %.2f%C", self.volume, (unichar)0x00D7]];
|
||||
[gainItems addObject:[NSString stringWithFormat:@"%@: %.2f%C", NSLocalizedStringFromTableInBundle(@"GainVolumeScale", nil, [NSBundle bundleForClass:[self class]], @""), self.volume, (unichar)0x00D7]];
|
||||
}
|
||||
return [gainItems componentsJoinedByString:@"\n"];
|
||||
}
|
||||
|
|
|
@ -65,3 +65,12 @@
|
|||
|
||||
"TimeLastPlayed" = "Last played";
|
||||
"TimeFirstSeen" = "First seen";
|
||||
|
||||
"GainAlbumGain" = "Album Gain";
|
||||
"GainAlbumGainPeak" = "Album Gain plus Peak";
|
||||
"GainAlbumPeak" = "Album Peak";
|
||||
"GainTrackGain" = "Track Gain";
|
||||
"GainTrackGainPeak" = "Track Gain plus Peak";
|
||||
"GainTrackPeak" = "Track Peak";
|
||||
"GainVolumeScale" = "Volume Scale";
|
||||
"GainNone" = "None";
|
||||
|
|
|
@ -65,3 +65,12 @@
|
|||
|
||||
"TimeLastPlayed" = "Last played";
|
||||
"TimeFirstSeen" = "First seen";
|
||||
|
||||
"GainAlbumGain" = "Album Gain";
|
||||
"GainAlbumGainPeak" = "Album Gain plus Peak";
|
||||
"GainAlbumPeak" = "Album Peak";
|
||||
"GainTrackGain" = "Track Gain";
|
||||
"GainTrackGainPeak" = "Track Gain plus Peak";
|
||||
"GainTrackPeak" = "Track Peak";
|
||||
"GainVolumeScale" = "Volume Scale";
|
||||
"GainNone" = "None";
|
||||
|
|
Loading…
Reference in New Issue