Conversation
2fba06d to
1caa10e
Compare
|
@MKodde Would you please help me fix the last few unit tests? 🙎🏻♂️ I'm stuck and this close to going |
1caa10e to
e8bf462
Compare
|
@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 ;) |
51a7a38 to
8c0383e
Compare
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
8c0383e to
0bb2a4e
Compare
src/OpenConext/EngineBlock/Metadata/Factory/ValueObject/EngineBlockConfiguration.php
Show resolved
Hide resolved
|
@tvdijen can you rebase the pr? ill test it after and if it works ill approve it :D |
I'll rebase it if needed. Need to dive in anyway. |
|
I'm sorry, I'm not going over this struggle again after this PR aged like milk for two years. |
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
After storing organization translation keys instead of translated values
in EngineBlockConfiguration, contact persons were inadvertently using the
raw key string ('metadata_organization_name') as their GivenName rather
than the actual translated value.
ContactPerson elements in SAML metadata have no locale support, so the
translation is resolved once at construction time using the default locale.
bb87c8e to
9a56b01
Compare

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:
Instead of:
Everything was being translated using the default locale. This PR attempts to fix that.