Skip to content

Commit

Permalink
Merge pull request ResearchKit#125 from syoung-smallwisdom/localizati…
Browse files Browse the repository at this point in the history
…on-fix

Fix localization of question about being a tester.
  • Loading branch information
Erin-Mounts committed May 27, 2016
2 parents e1fa92b + ada7f81 commit 1979bd5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions APCAppCore/APCAppCore/DataSubstrate/Model/APCUser+Bridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,11 @@ - (void) showTestUserVerificationAlertWithVc:(__weak UIViewController*)vc

void (^showVcBlock)() = ^
{
NSString* yesStr = NSLocalizedString(@"YES", @"Positive Answer");
NSString* noStr = NSLocalizedString(@"NO", @"Negative Answer");
NSString* title = NSLocalizedString(@"Are you a tester?", @"Question if the user is a quality assurance tester");
NSString* msg = [NSString stringWithFormat:NSLocalizedString(@"Based on your email address, we have detected you are a tester for %@. If this is correct, select %@ so we can store your data separately.", @"Message informing user if and what happens if they are a tester"), [APCUtilities appName], [yesStr lowercaseString]];
NSString* yesStr = NSLocalizedStringWithDefaultValue(@"APC_YES", @"APCAppCore", APCBundle(), @"Yes", @"Positive Answer");
NSString* noStr = NSLocalizedStringWithDefaultValue(@"APC_NO", @"APCAppCore", APCBundle(), @"No", @"Negative Answer");
NSString* title = NSLocalizedStringWithDefaultValue(@"APC_TESTER_PROMPT_TITLE", @"APCAppCore", APCBundle(), @"Are you a tester?", @"Question if the user is a quality assurance tester");
NSString* msgFormat = NSLocalizedStringWithDefaultValue(@"APC_TESTER_PROMPT_MESSAGE_FORMAT%@_%@", @"APCAppCore", APCBundle(), @"Based on your email address, we have detected you are a tester for %@. If this is correct, select %@ so we can store your data separately.", @"Message informing user if and what happens if they are a tester");
NSString* msg = [NSString stringWithFormat:msgFormat, [APCUtilities appName], [yesStr lowercaseString]];

UIAlertController* alert = [UIAlertController alertControllerWithTitle:title
message:msg
Expand Down

0 comments on commit 1979bd5

Please sign in to comment.