Remove hard-coded English strings from MyData API#9786
Remove hard-coded English strings from MyData API#9786sekmiller merged 9 commits intoIQSS:developfrom
Conversation
qqmyers
left a comment
There was a problem hiding this comment.
Looks good - did not test but the auto-test and QA should be able to verify the messages aren't getting changed.
FWIW: There are a couple weird text strings in the original that this PR faithfully makes internationalizable, i.e. "retrieveMyDataAsJsonString. User not found! Shouldn't be using this anyway.", "Sorry, the EntityManager isn't working (still).". If anyone knows more about when they might appear, perhaps some more user-oriented text could be substituted.
pdurbin
left a comment
There was a problem hiding this comment.
I didn't test this but it makes sense. Thanks, @stevenferey! We're in the middle of a platform upgrade only release (6.0), but after that we can try to get this in. I love it when we removed hard-coded English.
| myDataFilterParams.error.result.no.role=No results. Please select at least one Role. | ||
| myDataFilterParams.error.result.no.dvobject=No results. Please select one of Dataverses, Datasets, Files. | ||
| myDataFilterParams.error.result.no.publicationStatus=No results. Please select one of {0}. | ||
| myDataFinder.error.result.null=Sorry, the EntityManager isn't working (still). |
There was a problem hiding this comment.
Ha. The poor translators. What in the world is an EntityManager, they'll wonder.
There was a problem hiding this comment.
A little more contextualization in this case with: "Sorry, the authenticated user ID could not be retrieved."
Co-authored-by: Philip Durbin <philipdurbin@gmail.com>
qqmyers
left a comment
There was a problem hiding this comment.
@stevenferey - looks good - probably needs a merge with develop to get the tests to run again.
| #mydata API (DataRetriverAPI.java and MyDataFinder.java) | ||
| dataretrieverAPI.noMsgResultsFound=Sorry, no results were found. | ||
| dataretrieverAPI.authentication.required=Requires authentication. Please login. | ||
| dataretrieverAPI.authentication.required.opt=retrieveMyDataAsJsonString. User not found! Shouldn't be using this anyway. |
There was a problem hiding this comment.
FWIW: This is still odd, but only shows in the log.
|
@stevenferey This PR has a merge conflict. Please resolve. Also I'm seeing a failing test in DataRetrieverApiIT. Can you please take a look at that? Thanks! |
|
` ` @stevenferey Tests are failing - I was able to get them to pass by making these changes locally. I'm not able to update your repo. Does this make sense? And, if so, can you make the changes. Thanks! |
|
Thank you for this feedback, We have updated the error message format in the test case. |
|
Looks good @stevenferey @jeromeroucou Thanks for the contribution and your patience through the process |
What this PR does / why we need it:
Which issue(s) this PR closes:
Closes #9292
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: