Skip to content

chore(i18n): Update placeholders for better clarity#648

Closed
rakekniven wants to merge 1 commit into
H2CK:masterfrom
rakekniven:patch-6
Closed

chore(i18n): Update placeholders for better clarity#648
rakekniven wants to merge 1 commit into
H2CK:masterfrom
rakekniven:patch-6

Conversation

@rakekniven
Copy link
Copy Markdown
Contributor

Reported at Transifex

Copy link
Copy Markdown
Owner

@H2CK H2CK left a comment

Choose a reason for hiding this comment

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

Please have a look at the comments added to the changes.

Comment thread src/App.vue
<NcTextField v-model="editClient.allowedScopes"
:label="t('oidc', 'Allowed Scopes')"
:placeholder="t('oidc', 'openid profile roles')"
:placeholder="t('oidc', 'OpenID profile roles')"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

From my understanding the placeholder should be some kind of example what to enter into the input field. Since the scopes are standardized it shall be openid (in lowercase). From my point of view the translation for this string should be removed at all to eliminate any confusion during translation, since the scope name could not be translated.

Comment thread src/App.vue
<NcTextField v-model="customClaimModal.scope"
:label="t('oidc', 'Scope')"
:placeholder="t('oidc', 'profile')"
:placeholder="t('oidc', 'Profile')"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

As in line 171 here the placeholder contains an example for a defined scope (e.g., profile). The standardized scopes like profile can not be translated. Therefor the translation for this string should be removed.

Comment thread src/App.vue
:label="t('oidc', 'Name')"
:disabled="customClaimModal.isEdit"
:placeholder="t('oidc', 'is_admin')"
:placeholder="t('oidc', 'Is administrator?')"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The placeholder is an example how the custom claim could look like (here: is_admin). Whitespaces and question marks are not allowed as valid chars in the claim name according to the standard. Therefore the proposed change will no longer show a valid input into the field.
If this placeholder causes trouble during translations, then maybe the translation for this placeholder should be removed.

@rakekniven
Copy link
Copy Markdown
Contributor Author

Please have a look at the comments added to the changes.

After reading your comments I fully support to remove translations of given strings.

I do not know the necessary code changes to do that.
Feed free to close my PR and make the changes yourself.

Translators appreciate it.

@H2CK
Copy link
Copy Markdown
Owner

H2CK commented May 13, 2026

Necessary changes will be made outside of this PR.

@H2CK H2CK closed this May 13, 2026
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