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

Translatable configurable metadata #1292

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tvdijen
Copy link
Contributor

@tvdijen tvdijen commented Mar 20, 2024

This is a continuation of #1103 where we made the Organization-data in metadata configurable using the translations-files.

However, the result would be like this:

<md:OrganizationDisplayName lang="en">My fictional organization</md:OrganizationDisplayName>
<md:OrganizationDisplayName lang="nl">My fictional organization</md:OrganizationDisplayName>

Instead of:

<md:OrganizationDisplayName lang="en">My fictional organization</md:OrganizationDisplayName>
<md:OrganizationDisplayName lang="nl">Mijn fictieve organisatie</md:OrganizationDisplayName>

Everything was being translated using the default locale. This PR attempts to fix that.

@tvdijen tvdijen force-pushed the feature/configurable-metadata-translations branch 15 times, most recently from 2fba06d to 1caa10e Compare March 20, 2024 13:48
@tvdijen
Copy link
Contributor Author

tvdijen commented Mar 20, 2024

@MKodde Would you please help me fix the last few unit tests? 🙎🏻‍♂️ I'm stuck and this close to going :goberserk:

@tvdijen tvdijen force-pushed the feature/configurable-metadata-translations branch from 1caa10e to e8bf462 Compare June 5, 2024 15:48
@MKodde
Copy link
Member

MKodde commented Aug 27, 2024

@tvdijen I think I fixed the unit tests. You where on the right track, but needed some additional translations for the different configured languages (en/nl/pt). Now 🤞 the other tests pass.

I also took the liberty to squash the commits, as they are really one atomic whole. But the main reason is to steal (co-author) this commit from you ;)

@MKodde MKodde force-pushed the feature/configurable-metadata-translations branch from 51a7a38 to 8c0383e Compare August 27, 2024 08:52
This is a continuation of OpenConext#1103 where we made the Organization-data in metadata
configurable using the translations-files.

However, the result would be like this:

<md:OrganizationDisplayName lang="en">My fictional organization</md:OrganizationDisplayName>
<md:OrganizationDisplayName lang="nl">My fictional organization</md:OrganizationDisplayName>

Instead of:

<md:OrganizationDisplayName lang="en">My fictional organization</md:OrganizationDisplayName>
<md:OrganizationDisplayName lang="nl">Mijn fictieve organisatie</md:OrganizationDisplayName>

Everything was being translated using the default locale. This PR attempts to fix that.

See: OpenConext#1292
See: OpenConext#1103
@MKodde MKodde force-pushed the feature/configurable-metadata-translations branch from 8c0383e to 0bb2a4e Compare August 27, 2024 08:54
@MKodde MKodde requested review from MKodde and thijskh August 27, 2024 09:05
Copy link
Member

@MKodde MKodde left a comment

Choose a reason for hiding this comment

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

Nice work @tvdijen The good news is that the organization display name is now translated, see one last observation in my feedback below

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