Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Button: Prefix translation key for provider name #13

Open
hitsoul11 opened this issue Aug 1, 2024 · 4 comments
Open

Login Button: Prefix translation key for provider name #13

hitsoul11 opened this issue Aug 1, 2024 · 4 comments

Comments

@hitsoul11
Copy link

Hi there,

currently the provider name in the login button is translated without any prefix. In my opinion it would be better to prefix the translation key with something like sso_button_provider.[providerName].

@hitsoul11 hitsoul11 changed the title Login Button: Prefix translation for provider name Login Button: Prefix translation key for provider name Aug 1, 2024
@BlackbitDevs
Copy link
Collaborator

This would mean that we also have to add the corresponding translation, otherwise the button label would be initially "sso_button_provider.My SSO provider". Currently it is implemented similar as for Pimcore data objects - there actually also the field titles get used as translation keys but if you do not translate them, you will simply see the field titles.

@hitsoul11
Copy link
Author

Ok, understood. Maybe you can add an additional provider config value for the translation key / button label and set it to the provider name as default.

@BlackbitDevs
Copy link
Collaborator

Before I do that, I would rather create the translation key and assign the provider name in all languages ;-)

But what is the actual problem why you want the prefix? Because usually when somebody wants to change a translation, he goes to translations, searches for the currently visible (wrong) translation and then changes it. Nobody will search for the key because this is most often not even visible.

@hitsoul11
Copy link
Author

We set our provider's name to company/customer name. But we would like to label the sso button to "login with [company]".
So, it's easy to set a translation for company name to "login with [company]". But we also use the company names in different contexts like in data objects / option field (labels), ....
Do you recommend to name the provider as "login with [company]" instead of "[company]"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants