Jelajahi Sumber

First Steps: implement missing l10n

Felix Paul Kühne 11 tahun lalu
induk
melakukan
05a052cb2a

+ 2 - 0
Resources/VLCFirstStepsFourthPageViewController.xib

@@ -7,6 +7,8 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCFirstStepsFourthPageViewController">
             <connections>
+                <outlet property="accessDescriptionLabel" destination="cEb-8k-t4u" id="JBU-nj-whN"/>
+                <outlet property="uploadDescriptionLabel" destination="kne-kQ-uVu" id="OXe-Ss-YDA"/>
                 <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
             </connections>
         </placeholder>

+ 1 - 0
Resources/VLCFirstStepsSecondPageViewController.xib

@@ -7,6 +7,7 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCFirstStepsSecondPageViewController">
             <connections>
+                <outlet property="descriptionLabel" destination="Ihj-9n-NF0" id="fo4-L3-xL4"/>
                 <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
             </connections>
         </placeholder>

+ 2 - 0
Resources/VLCFirstStepsSixthPageViewController.xib

@@ -7,6 +7,8 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCFirstStepsSixthPageViewController">
             <connections>
+                <outlet property="flossDescriptionLabel" destination="RNO-mo-7OT" id="mnB-vD-Ybw"/>
+                <outlet property="learnMoreButton" destination="IqZ-6V-1cm" id="HOi-2l-hUC"/>
                 <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
             </connections>
         </placeholder>

+ 2 - 0
Resources/VLCFirstStepsThirdPageViewController.xib

@@ -7,6 +7,8 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCFirstStepsThirdPageViewController">
             <connections>
+                <outlet property="connectDescriptionLabel" destination="93K-R3-pGV" id="Zzt-EM-pNh"/>
+                <outlet property="uploadDescriptionLabel" destination="0Qh-Pn-NAG" id="ERN-lP-zCi"/>
                 <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
             </connections>
         </placeholder>

TEMPAT SAMPAH
Resources/en.lproj/Localizable.strings


+ 1 - 1
Sources/VLCFirstStepsFifthPageViewController.m

@@ -27,7 +27,7 @@
 
 - (NSString *)pageTitle
 {
-    return @"Playback";
+    return NSLocalizedString(@"FIRST_STEPS_PLAYBACK", @"");
 }
 
 - (NSUInteger)page

+ 0 - 1
Sources/VLCFirstStepsFirstPageViewController.h

@@ -17,7 +17,6 @@
 @property (readonly) NSString *pageTitle;
 @property (readonly) NSUInteger page;
 
-@property (nonatomic, strong) IBOutlet UIButton *letsGoButton;
 @property (nonatomic, strong) IBOutlet UILabel *titleLabel;
 @property (nonatomic, strong) IBOutlet UILabel *subtitleLabel;
 

+ 4 - 2
Sources/VLCFirstStepsFirstPageViewController.m

@@ -21,12 +21,14 @@
 - (void)viewDidLoad
 {
     [super viewDidLoad];
-    /* FIXME: l10n */
+
+    self.titleLabel.text = NSLocalizedString(@"FIRST_STEPS_WELCOME", @"");
+    self.subtitleLabel.text = NSLocalizedString(@"FIRST_STEPS_WELCOME_DETAIL", @"");
 }
 
 - (NSString *)pageTitle
 {
-    return @"Welcome";
+    return NSLocalizedString(@"FIRST_STEPS_WELCOME", @"");;
 }
 
 - (NSUInteger)page

+ 3 - 0
Sources/VLCFirstStepsFourthPageViewController.h

@@ -17,4 +17,7 @@
 @property (readonly) NSString *pageTitle;
 @property (readonly) NSUInteger page;
 
+@property (nonatomic, strong) IBOutlet UILabel *uploadDescriptionLabel;
+@property (nonatomic, strong) IBOutlet UILabel *accessDescriptionLabel;
+
 @end

+ 3 - 2
Sources/VLCFirstStepsFourthPageViewController.m

@@ -22,12 +22,13 @@
 {
     [super viewDidLoad];
 
-    /* FIXME: l10n */
+    self.uploadDescriptionLabel.text = NSLocalizedString(@"FIRST_STEPS_CLOUD_UPLOAD_DETAILS", @"");
+    self.accessDescriptionLabel.text = NSLocalizedString(@"FIRST_STEPS_CLOUD_ACCESS_DETAILS", @"");
 }
 
 - (NSString *)pageTitle
 {
-    return @"Clouds";
+    return NSLocalizedString(@"FIRST_STEPS_CLOUDS", @"");
 }
 
 - (NSUInteger)page

+ 2 - 0
Sources/VLCFirstStepsSecondPageViewController.h

@@ -17,4 +17,6 @@
 @property (readonly) NSString *pageTitle;
 @property (readonly) NSUInteger page;
 
+@property (nonatomic, strong) IBOutlet UILabel *descriptionLabel;
+
 @end

+ 3 - 2
Sources/VLCFirstStepsSecondPageViewController.m

@@ -22,12 +22,13 @@
 {
     [super viewDidLoad];
 
-    /* FIXME: l10n */
+    NSString *model = [[UIDevice currentDevice] model];
+    self.descriptionLabel.text = [NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_ITUNES_DETAILS", @""), model, model];
 }
 
 - (NSString *)pageTitle
 {
-    return @"iTunes File Sync";
+    return NSLocalizedString(@"FIRST_STEPS_ITUNES", @"");
 }
 
 - (NSUInteger)page

+ 3 - 0
Sources/VLCFirstStepsSixthPageViewController.h

@@ -17,6 +17,9 @@
 @property (readonly) NSString *pageTitle;
 @property (readonly) NSUInteger page;
 
+@property (nonatomic, strong) IBOutlet UILabel *flossDescriptionLabel;
+@property (nonatomic, strong) IBOutlet UIButton *learnMoreButton;
+
 - (IBAction)learnMore:(id)sender;
 
 @end

+ 2 - 1
Sources/VLCFirstStepsSixthPageViewController.m

@@ -22,7 +22,8 @@
 {
     [super viewDidLoad];
 
-    /* FIXME: l10n */
+    self.flossDescriptionLabel.text = NSLocalizedString(@"FIRST_STEPS_FLOSS", @"");
+    [self.learnMoreButton setTitle:NSLocalizedString(@"BUTTON_LEARN_MORE", @"") forState:UIControlStateNormal];
 }
 
 - (NSString *)pageTitle

+ 3 - 0
Sources/VLCFirstStepsThirdPageViewController.h

@@ -17,4 +17,7 @@
 @property (readonly) NSString *pageTitle;
 @property (readonly) NSUInteger page;
 
+@property (nonatomic, strong) IBOutlet UILabel *connectDescriptionLabel;
+@property (nonatomic, strong) IBOutlet UILabel *uploadDescriptionLabel;
+
 @end

+ 3 - 2
Sources/VLCFirstStepsThirdPageViewController.m

@@ -22,12 +22,13 @@
 {
     [super viewDidLoad];
 
-    /* FIXME: l10n */
+    self.connectDescriptionLabel.text = [NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_WIFI_CONNECT_DETAILS",@""), [[UIDevice currentDevice] model]];
+    self.uploadDescriptionLabel.text = NSLocalizedString(@"FIRST_STEPS_WIFI_UPLOAD_DETAILS", @"");
 }
 
 - (NSString *)pageTitle
 {
-    return @"WiFi Upload";
+    return NSLocalizedString(@"HTTP_UPLOAD", @"");
 }
 
 - (NSUInteger)page

+ 1 - 1
Sources/VLCFirstStepsViewController.m

@@ -42,7 +42,7 @@
 
     UIBarButtonItem *dismissButton = [UIBarButtonItem themedDoneButtonWithTarget:self andSelector:@selector(dismissFirstSteps)];
     self.navigationItem.rightBarButtonItem = dismissButton;
-    self.title = @"Welcome";
+    self.title = NSLocalizedString(@"FIRST_STEPS_WELCOME", @"");
 
     [self addChildViewController:pageVC];
     [self.view addSubview:[pageVC view]];