Browse Source

Deduplicate strings

Felix Paul Kühne 10 years ago
parent
commit
cee7085fb5

BIN
Resources/en.lproj/Localizable.strings


+ 1 - 1
Sources/VLCAppDelegate.m

@@ -282,7 +282,7 @@
 
             NSString *scheme = url.scheme;
             if ([scheme isEqualToString:@"http"] || [scheme isEqualToString:@"https"] || [scheme isEqualToString:@"ftp"]) {
-                VLCAlertView *alert = [[VLCAlertView alloc] initWithTitle:NSLocalizedString(@"OPEN_STREAM_OR_DOWNLOAD", nil) message:url.absoluteString cancelButtonTitle:NSLocalizedString(@"BUTTON_DOWNLOAD", nil) otherButtonTitles:@[NSLocalizedString(@"BUTTON_PLAY", nil)]];
+                VLCAlertView *alert = [[VLCAlertView alloc] initWithTitle:NSLocalizedString(@"OPEN_STREAM_OR_DOWNLOAD", nil) message:url.absoluteString cancelButtonTitle:NSLocalizedString(@"BUTTON_DOWNLOAD", nil) otherButtonTitles:@[NSLocalizedString(@"PLAY_BUTTON", nil)]];
                 alert.completion = ^(BOOL cancelled, NSInteger buttonIndex) {
                     if (cancelled)
                         [self downloadMovieFromURL:url fileNameOfMedia:nil];

+ 1 - 1
Sources/VLCFirstStepsFifthPageViewController.m

@@ -27,7 +27,7 @@
     self.repeatLabel.text = NSLocalizedString(@"FIRST_STEPS_REPEAT", nil);
     self.subtitlesLabel.text = NSLocalizedString(@"FIRST_STEPS_SUBTITLES", nil);
     self.audioLabel.text = NSLocalizedString(@"FIRST_STEPS_AUDIO", nil);
-    self.volumeLabel.text = NSLocalizedString(@"FIRST_STEPS_VOLUME", nil);
+    self.volumeLabel.text = NSLocalizedString(@"VOLUME", nil);
     self.positionLabel.text = NSLocalizedString(@"FIRST_STEPS_POSITION", nil);
     self.effectsLabel.text = NSLocalizedString(@"VIDEO_FILTER", nil);
 }

+ 1 - 1
Sources/VLCLocalPlexFolderListViewController.m

@@ -472,7 +472,7 @@
             NSString *message = [NSString stringWithFormat:@"%@ (%@)\naudio(%@) video(%@)", mediaSize, durationInSeconds, audioCodec, videoCodec];
             NSString *summary = [NSString stringWithFormat:@"%@", [[ObjList objectAtIndex:0] objectForKey:@"summary"]];
 
-            VLCAlertView *alertView = [[VLCAlertView alloc] initWithTitle:title message:message cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", nil) otherButtonTitles:@[NSLocalizedString(@"BUTTON_PLAY", nil), NSLocalizedString(@"BUTTON_DOWNLOAD", nil)]];
+            VLCAlertView *alertView = [[VLCAlertView alloc] initWithTitle:title message:message cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", nil) otherButtonTitles:@[NSLocalizedString(@"PLAY_BUTTON", nil), NSLocalizedString(@"BUTTON_DOWNLOAD", nil)]];
             if (![summary isEqualToString:@""]) {
                 UITextView *textView = [[UITextView alloc] initWithFrame:alertView.bounds];
                 textView.text = summary;

+ 2 - 2
VLC for iOS WatchKit Extension/VLCDetailInterfaceController.m

@@ -27,8 +27,8 @@
     [super awakeWithContext:context];
     self.title = NSLocalizedString(@"DETAIL", nil);
     self.playNowButton.accessibilityLabel = NSLocalizedString(@"PLAY_NOW", nil);
-    self.titleLabel.accessibilityLabel = NSLocalizedString(@"TITLE_LABEL", nil);
-    self.durationLabel.accessibilityLabel = NSLocalizedString(@"DURATION_LABEL", nil);
+    self.titleLabel.accessibilityLabel = NSLocalizedString(@"TITLE", nil);
+    self.durationLabel.accessibilityLabel = NSLocalizedString(@"DURATION", nil);
 
     [self addNowPlayingMenu];
     [self configureWithFile:context];

+ 3 - 3
VLC for iOS WatchKit Extension/VLCNowPlayingInterfaceController.m

@@ -44,9 +44,9 @@
     [self setTitle:NSLocalizedString(@"PLAYING", nil)];
     self.skipBackwardButton.accessibilityLabel = NSLocalizedString(@"BWD_BUTTON", nil);
     self.skipForwardButton.accessibilityLabel = NSLocalizedString(@"FWD_BUTTON", nil);
-    self.volumeSlider.accessibilityLabel = NSLocalizedString(@"VOLUME_SLIDER", nil);
-    self.durationLabel.accessibilityLabel = NSLocalizedString(@"DURATION_LABEL", nil);
-    self.titleLabel.accessibilityLabel = NSLocalizedString(@"TITLE_LABEL", nil);
+    self.volumeSlider.accessibilityLabel = NSLocalizedString(@"VOLUME", nil);
+    self.durationLabel.accessibilityLabel = NSLocalizedString(@"DURATION", nil);
+    self.titleLabel.accessibilityLabel = NSLocalizedString(@"TITLE", nil);
 
     [self setPlaying:YES];
 

+ 3 - 3
VLC for iOS WatchKit Extension/en.lproj/Localizable.strings

@@ -13,9 +13,9 @@
 "PLAY_BUTTON"="Play";
 "PAUSE_BUTTON"="Pause";
 
-"VOLUME_SLIDER"="Volume";
-"DURATION_LABEL"="Duration";
-"TITLE_LABEL"="Title";
+"VOLUME"="Volume";
+"DURATION"="Duration";
+"TITLE"="Title";
 
 // accessibility labels for the playlist
 "OBJECT_TYPE_SHOW"="Show";