Commit d6b7fb71 authored by Tobias's avatar Tobias

use short and not and long service titles on Apple TV

parent 7cfe86c6
B"CHOOSE_AUDIO_TRACK"="Choose Audio Track";
......
......@@ -16,7 +16,12 @@
@implementation VLCLocalNetworkServiceBrowserFTP
- (instancetype)init {
return [super initWithName:@"File Transfer Protocol (FTP)"
#if TARGET_OS_TV
NSString *name = NSLocalizedString(@"FTP_SHORT",nil);
#else
NSString *name = NSLocalizedString(@"FTP_LONG",nil);
#endif
return [super initWithName:name
serviceType:@"_ftp._tcp."
domain:@""];
}
......
......@@ -15,7 +15,12 @@
@implementation VLCLocalNetworkServiceBrowserPlex
- (instancetype)init {
return [super initWithName:@"Plex Media Server (via Bonjour)"
#if TARGET_OS_TV
NSString *name = NSLocalizedString(@"PLEX_SHORT",nil);
#else
NSString *name = NSLocalizedString(@"PLEX_LONG",nil);
#endif
return [super initWithName:name
serviceType:@"_plexmediasvr._tcp."
domain:@""];
}
......
......@@ -17,7 +17,13 @@
@implementation VLCLocalNetworkServiceBrowserDSM
- (instancetype)init {
return [super initWithName:NSLocalizedString(@"SMB_CIFS_FILE_SERVERS", nil)
#if TARGET_OS_TV
NSString *name = NSLocalizedString(@"SMB_CIFS_FILE_SERVERS_SHORT", nil);
#else
NSString *name = NSLocalizedString(@"SMB_CIFS_FILE_SERVERS", nil);
#endif
return [super initWithName:name
serviceServiceName:@"dsm"];
}
- (id<VLCLocalNetworkService>)networkServiceForIndex:(NSUInteger)index {
......
......@@ -31,7 +31,11 @@
{
self = [super init];
if (self) {
_name = @"Universal Plug'n'Play (UPnP)";
#if TARGET_OS_TV
_name = NSLocalizedString(@"UPNP_SHORT", nil);
#else
_name = NSLocalizedString(@"UPNP_LONG", nil);
#endif
}
return self;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment