Browse Source

OSO: add missing l10n

Felix Paul Kühne 9 years ago
parent
commit
ca056a10ff

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

@@ -40,7 +40,7 @@
     NSString *selectedLocale = [defaults stringForKey:kVLCSettingLastUsedSubtitlesSearchLanguage];
     NSString *selectedLocale = [defaults stringForKey:kVLCSettingLastUsedSubtitlesSearchLanguage];
     if (!selectedLocale) {
     if (!selectedLocale) {
         NSString *preferredLanguage = [[NSLocale preferredLanguages] firstObject];
         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:@"-"]) {
         if ([preferredLanguage containsString:@"-"]) {
             preferredLanguage = [[preferredLanguage componentsSeparatedByString:@"-"] firstObject];
             preferredLanguage = [[preferredLanguage componentsSeparatedByString:@"-"] firstObject];
         }
         }
@@ -167,7 +167,7 @@
     if (section == 0)
     if (section == 0)
         return @"";
         return @"";
 
 
-    return @"Found items";
+    return NSLocalizedString(@"FOUND_SUBS", nil);
 }
 }
 
 
 #pragma mark - table view delegate
 #pragma mark - table view delegate
@@ -227,7 +227,6 @@
 {
 {
     [_activityIndicatorView stopAnimating];
     [_activityIndicatorView stopAnimating];
     self.tableView.userInteractionEnabled = YES;
     self.tableView.userInteractionEnabled = YES;
-
 }
 }
 
 
 @end
 @end

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

@@ -86,7 +86,7 @@
 - (void)downloadMoreSPU
 - (void)downloadMoreSPU
 {
 {
     VLCPlaybackInfoSubtitlesFetcherViewController *targetViewController = [[VLCPlaybackInfoSubtitlesFetcherViewController alloc] initWithNibName:nil bundle:nil];
     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
     [self presentViewController:targetViewController
                        animated:YES
                        animated:YES
                      completion:nil];
                      completion:nil];

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

@@ -308,6 +308,8 @@
 "HTTP_SERVER_OFF"="Enable Remote Playback";
 "HTTP_SERVER_OFF"="Enable Remote Playback";
 "CACHED_MEDIA"="Cached Media";
 "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.";
 "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
 // Local Network Service Names
 "UPNP_LONG"="Universal Plug'n'Play (UPnP)";
 "UPNP_LONG"="Universal Plug'n'Play (UPnP)";