Skip to content

Conversation

@mmertsock
Copy link
Member

@mmertsock mmertsock commented Mar 11, 2025

The built-in ResearchKit translations for login buttons is "Login", but we want to use "Log In". I opted to simply make this customizable so we can use the localized string that we already have in the MDH repo, rather than changing the translations in ResearchKit itself.

Testing

This is tested as part of https://github.com/CareEvolution/MyDataHelps-iOS/pull/1400

@mmertsock mmertsock requested a review from eschramm March 11, 2025 18:52
Copy link

@eschramm eschramm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


@implementation ORK1LoginStepViewController
@implementation ORK1LoginStepViewController {
NSString *_loginButtonTitle;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to refamiliarize myself with the nuances of having an @Property declaration in the header, but doing the work manually in the .m file with a custom setter/getter :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same 😆. Luckily ResearchKit already has several instances of this pattern to confirm I was doing the right thing.

@mmertsock mmertsock merged commit 0417324 into CEVRelease-2.x Mar 12, 2025
1 check passed
@mmertsock mmertsock deleted the mmertsock/login-button branch March 12, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants