Felix Paul Kühne преди 9 години
родител
ревизия
ca056a10ff

+ 2 - 3
Apple-TV/Playback/Playback Info/VLCPlaybackInfoSubtitlesFetcherViewController.m

@@ -40,7 +40,7 @@
     NSString *selectedLocale = [defaults stringForKey:kVLCSettingLastUsedSubtitlesSearchLanguage];
     if (!selectedLocale) {
         NSString *preferredLanguage = [[NSLocale preferredLanguages] firstObject];
-        /* we may receive 'en_GB' so strip that to 'en' */
+        /* we may receive 'en-GB' so strip that to 'en' */
         if ([preferredLanguage containsString:@"-"]) {
             preferredLanguage = [[preferredLanguage componentsSeparatedByString:@"-"] firstObject];
         }
@@ -167,7 +167,7 @@
     if (section == 0)
         return @"";
 
-    return @"Found items";
+    return NSLocalizedString(@"FOUND_SUBS", nil);
 }
 
 #pragma mark - table view delegate
@@ -227,7 +227,6 @@
 {
     [_activityIndicatorView stopAnimating];
     self.tableView.userInteractionEnabled = YES;
-
 }
 
 @end

+ 1 - 1
Apple-TV/Playback/Playback Info/VLCPlaybackInfoTracksTVViewController.m

@@ -86,7 +86,7 @@
 - (void)downloadMoreSPU
 {
     VLCPlaybackInfoSubtitlesFetcherViewController *targetViewController = [[VLCPlaybackInfoSubtitlesFetcherViewController alloc] initWithNibName:nil bundle:nil];
-    targetViewController.title = @"Download subtitles from OpenSubtitles.org...";;
+    targetViewController.title = NSLocalizedString(@"DOWNLOAD_SUBS_FROM_OSO", nil);
     [self presentViewController:targetViewController
                        animated:YES
                      completion:nil];

+ 2 - 0
Resources/en.lproj/Localizable.strings

@@ -308,6 +308,8 @@
 "HTTP_SERVER_OFF"="Enable Remote Playback";
 "CACHED_MEDIA"="Cached Media";
 "CACHED_MEDIA_LONG"="Media shown here is stored locally on your Apple TV. Note that contents can be removed by the operating system without prior notice anytime when VLC is not running in case your device runs out of storage.";
+"DOWNLOAD_SUBS_FROM_OSO"="Download subtitles from OpenSubtitles.org...";
+"FOUND_SUBS"="Found subtitles";
 
 // Local Network Service Names
 "UPNP_LONG"="Universal Plug'n'Play (UPnP)";