Skip to content

Commit 55923db

Browse files
committed
Added localization
1 parent 18a4598 commit 55923db

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

BitStoreToday/TodayViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ - (void)viewWillAppear:(BOOL)animated {
2828
[super viewWillAppear:animated];
2929

3030
UILabel* description = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 30)];
31-
description.text = @"Current price:";
31+
description.text = NSLocalizedString(@"current_price", nil);
3232
description.font = [UIFont systemFontOfSize:13];
3333
description.textColor = [UIColor colorWithWhite:0.5 alpha:1.0];
3434
[self.view addSubview:description];
@@ -80,7 +80,7 @@ - (void)updatePriceLabel {
8080
if (user.cachedPrice) {
8181
_priceLabel.text = [NSString stringWithFormat:@"%.0f %@", [user.cachedPrice floatValue], user.todayCurrency];
8282
} else {
83-
_priceLabel.text = @"Loading...";
83+
_priceLabel.text = NSLocalizedString(@"loading", nil);
8484
}
8585
}
8686

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
"current_price" = "Aktueller Preis:";
2+
"loading" = "Lädt...";
13
"receive" = "Empfangen";
24
"send" = "Senden";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
"current_price" = "Current price:";
2+
"loading" = "Loading...";
13
"receive" = "Receive";
24
"send" = "Send";

0 commit comments

Comments
 (0)