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

8381 curation lables internationalization #8466

Merged

Conversation

JayanthyChengan
Copy link
Contributor

What this PR does / why we need it:
To display curation Labels in multiple languages.

Which issue(s) this PR closes:

Closes #8381

Special notes for your reviewer:

Suggestions on how to test this:

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@coveralls
Copy link

coveralls commented Mar 7, 2022

Coverage Status

Coverage decreased (-0.003%) to 18.861% when pulling e3017f5 on scholarsportal:8381_curationLables_internationalization into 27a733f on IQSS:develop.

@@ -2517,6 +2517,12 @@ Each set of labels is identified by a curationLabelSet name and a JSON Array of

``curl -X PUT -d '{"Standard Process":["Author contacted", "Privacy Review", "Awaiting paper publication", "Final Approval"], "Alternate Process":["State 1","State 2","State 3"]}' http://localhost:8080/api/admin/settings/:AllowedCurationLabels``

If the Dataverse Installation supports multiple languages, the curation label translations should be added to the Bundle property files.
Copy link
Member

Choose a reason for hiding this comment

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

I'd recommend being explicit w.r.t. the rewrite rule - i.e. the entries have to be lower case and spaces replaced with _

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added additional notes

@@ -1953,6 +1954,14 @@ public String getExternalStatusLabel() {
return externalStatusLabel;
}

public String getLocaleExternalStatusLabel() {
Copy link
Member

Choose a reason for hiding this comment

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

minor point - could there be a util function instead of three ~near duplicate ones in different classes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @qqmyers , moved the function to DatasetUtil.java

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.

@JayanthyChengan thanks for the pull request!

I ran the code and it see to work fine (I put some values in Bundle.properties). I noticed a small .rst problem and left a comment about where to put the key/value pairs. Please take a look.

doc/sphinx-guides/source/installation/config.rst Outdated Show resolved Hide resolved
@pdurbin pdurbin assigned JayanthyChengan and unassigned pdurbin Mar 14, 2022
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.

Looks good, thanks for the pull request, @JayanthyChengan

@kcondon I only did minimal testing. I created a file at src/main/java/propertyFiles/CurationLabels.properties and put in some values I wanted to override (as explained in the doc update). I didn't try adding a French translation but I think the file would be called CurationLabels_fr.properties. In practice, installations won't be putting these files anywhere in the src directory. They'll put them (along with other properties files) in a "lang" directory: https://guides.dataverse.org/en/5.9/installation/config.html#configuring-the-lang-directory . Thanks my understanding anyway.

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Review 🦁 to QA 🔎✅ Mar 16, 2022
@pdurbin
Copy link
Member

pdurbin commented Mar 21, 2022

@JayanthyChengan now that we've released Dataverse 5.10 can you please update your branch from "develop"? Thanks.

@kcondon kcondon self-assigned this Mar 21, 2022
@JayanthyChengan
Copy link
Contributor Author

@pdurbin : merged develop branch .

@kcondon kcondon merged commit 7ab984d into IQSS:develop Mar 22, 2022
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Mar 22, 2022
@pdurbin pdurbin added this to the 5.11 milestone Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Curation labels are not internationalized
5 participants