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

Facets filter labels not translated in result block #10158

Conversation

jeromeroucou
Copy link
Contributor

@jeromeroucou jeromeroucou commented Nov 30, 2023

What this PR does / why we need it:

With this PR we have a translated facets filters on search block result, same as facets labels (on the left panel)

Which issue(s) this PR closes:

Special notes for your reviewer:

I do 3 commits :

  • the first to indent the code
  • the second to had some comments and remove old "dead" code : staticSolrFieldFriendlyNamesBySolrField is now get resource bundle. So we doesn't have to keep the quick fix for Search Results - Publication Status Facet Weirdness #618
  • the third to get filter label from resource bundle, like for facets

Suggestions on how to test this:

To test this PR, I would recommend activating internationalization

@pdurbin pdurbin added the Size: 3 A percentage of a sprint. 2.1 hours. label Feb 28, 2024
@pdurbin
Copy link
Member

pdurbin commented Sep 4, 2024

I blindly merged this code into a test branch of mine and it seemed to help: #10694 (comment)

@jeromeroucou
Copy link
Contributor Author

Good news if it's help ! I can close my PR if it's include into yours

@pdurbin
Copy link
Member

pdurbin commented Sep 6, 2024

Sorry, I wasn't clear. Please don't close this PR as we plan to test it separately (but I'm not sure when). Thanks.

@coveralls
Copy link

Coverage Status

coverage: 20.715% (+0.004%) from 20.711%
when pulling d8a10a2 on Recherche-Data-Gouv:9408_facets_filter_labels_not_translated_result_block
into 1d31fb0 on IQSS:develop.

@cmbz cmbz added the FY25 Sprint 7 FY25 Sprint 7 (2024-09-25 - 2024-10-09) label Sep 30, 2024
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

The code looks reasonable and Iike I said at #10158 (comment) I did some light testing of this PR in a different context (while looking at #10694 (comment) ). Approved.

@jeromeroucou we released 6.4 today so please merge the latest from "develop" into this PR when you get a chance. Thanks.

@stevenwinship stevenwinship self-assigned this Oct 4, 2024
@stevenwinship
Copy link
Contributor

QA: Tested with Spanish and saw the translated value

@stevenwinship stevenwinship merged commit d50c484 into IQSS:develop Oct 4, 2024
11 checks passed
@stevenwinship stevenwinship removed their assignment Oct 4, 2024
@jeromeroucou jeromeroucou deleted the 9408_facets_filter_labels_not_translated_result_block branch October 4, 2024 15:48
@pdurbin pdurbin added this to the 6.5 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 7 FY25 Sprint 7 (2024-09-25 - 2024-10-09) Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: Done 🧹
Status: 🚀 Done (Recherche Data Gouv)
Development

Successfully merging this pull request may close these issues.

Facets filter labels not translated in result block
5 participants