Skip to content

chore: [ANDROSDK-2275] Adds plurals terminology to Program, ProgramStage and TrackedEntityType#2661

Open
ferdyrod wants to merge 2 commits into
developfrom
androsdk-2275
Open

chore: [ANDROSDK-2275] Adds plurals terminology to Program, ProgramStage and TrackedEntityType#2661
ferdyrod wants to merge 2 commits into
developfrom
androsdk-2275

Conversation

@ferdyrod

@ferdyrod ferdyrod commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Adds custom plurals terminology to Program object with displayEnrollmentsLabel, displayProgramStagesLabel, displayEventsLabel now are available. To ProgramStage object displayEventsLabel is now available and the TrackedEntityType object displayTrackedEntityTypesLabel is now available.

Related to ANDROSDK-2275

@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown


package org.hisp.dhis.android.network.program

import android.system.Os.access

@vgarciabnz vgarciabnz Jul 9, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not intentional, is it? I don't know why it was not detected by the checks...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Don't know why this was added, will remove it

featureType(featureType?.let { FeatureType.valueOf(it) })
accessLevel(accessLevel?.let { AccessLevel.valueOf(accessLevel) })
displayEnrollmentLabel(displayEnrollmentLabel ?: enrollmentLabel)
displayEnrollmentsLabel(displayEnrollmentsLabel ?: enrollmentLabel)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure we should default to the singular value here, at least not in the SDK. It is important to tell the app that the plural translation is not defined so the app can decide what to to: the app can default to the singular translation or follow another approach.

What do you think? @ferdyrod @andresmr

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes, it makes sense to me.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree, I'll change it

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.

3 participants