[iOS] Fixed using of some localized string constants.

Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
vng 2021-07-26 13:48:33 +03:00 committed by Alexander Borsuk
parent 6d55262a15
commit 050649759d
2 changed files with 7 additions and 9 deletions

View file

@ -4,7 +4,6 @@
#import "MWMDownloaderDialogHeader.h"
#import "MWMStorage+UI.h"
#import "SwiftBridge.h"
#import "UILabel+RuntimeAttributes.h"
#include <CoreApi/Framework.h>
@ -66,16 +65,16 @@ CGFloat const kAnimationDuration = .05;
case routing::RouterResultCode::InconsistentMWMandRoute:
case routing::RouterResultCode::RouteNotFound:
case routing::RouterResultCode::RouteFileNotExist:
alert.titleLabel.localizedText = @"dialog_routing_download_files";
alert.messageLabel.localizedText = @"dialog_routing_download_and_update_all";
alert.titleLabel.text = L(@"dialog_routing_download_files");
alert.messageLabel.text = L(@"dialog_routing_download_and_update_all");
break;
case routing::RouterResultCode::FileTooOld:
alert.titleLabel.localizedText = @"dialog_routing_download_files";
alert.messageLabel.localizedText = @"dialog_routing_download_and_update_maps";
alert.titleLabel.text = L(@"dialog_routing_download_files");
alert.messageLabel.text = L(@"dialog_routing_download_and_update_maps");
break;
case routing::RouterResultCode::NeedMoreMaps:
alert.titleLabel.localizedText = @"dialog_routing_download_and_build_cross_route";
alert.messageLabel.localizedText = @"dialog_routing_download_cross_route";
alert.titleLabel.text = L(@"dialog_routing_download_and_build_cross_route");
alert.messageLabel.text = L(@"dialog_routing_download_cross_route");
break;
default:
NSAssert(false, @"Incorrect code!");

View file

@ -1,6 +1,5 @@
#import "MWMButton.h"
#import "MWMEditorAdditionalNamesHeader.h"
#import "UILabel+RuntimeAttributes.h"
@interface MWMEditorAdditionalNamesHeader ()
@ -16,7 +15,7 @@
{
MWMEditorAdditionalNamesHeader * h =
[NSBundle.mainBundle loadNibNamed:[self className] owner:nil options:nil].firstObject;
h.label.localizedText = L(@"place_name").uppercaseString;
h.label.text = L(@"place_name").uppercaseString;
h.toggleBlock = toggleBlock;
return h;
}