Use the iso639_2 to store the language in MP42Track.

This commit is contained in:
Damiano Galassi committed 2016-11-04 09:57:25 +01:00
1 parent 4ea4fa3d19
commit d503c045fb
5 files changed
+14 -10

No files matched your search

+3 -2
View File
@@ -10,6 +10,7 @@
#import "SBMediaTagsController.h"
#import <MP42Foundation/MP42File.h>
#import <MP42Foundation/MP42Languages.h>
@implementation SBSoundViewController
{
@@ -54,7 +55,7 @@
NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"%@ - %@ - %@",
fileTrack.trackId ? [NSString stringWithFormat:@"%d", fileTrack.trackId] : @"na",
fileTrack.name,
fileTrack.language]
[MP42Languages langForISO_639_2Code:fileTrack.language]]
action:@selector(setFallbackTrack:)
keyEquivalent:@""];
newItem.target = self;
@@ -84,7 +85,7 @@
NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"%@ - %@ - %@",
fileTrack.trackId ? [NSString stringWithFormat:@"%d", fileTrack.trackId] : @"na",
fileTrack.name,
fileTrack.language]
[MP42Languages langForISO_639_2Code:fileTrack.language]]
action:@selector(setFollowsTrack:)
keyEquivalent:@""];
newItem.target = self;