-
Notifications
You must be signed in to change notification settings - Fork 490
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
4679 javascript bundle #5351
4679 javascript bundle #5351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JayanthyChengan this all looks good. Going to move it back to Community Dev however and ask that you update this branch with all the other internationalization branches you have in motion currently. Specifically the #5202 alert msg branch which contains javascript fixes that should be tested here as part of #4679.
@mheppler noticed under My Data tab, there are still English terms not toggling with language selection |
@JayanthyChengan I've got some answers for you on where to locate those text examples you've highlighted above. Account pg > My Data
Let me know if you have any more My Data or javascript questions. It's been a long while since I've looked at this code, but I'd be glad to help sort through it all again to get you pointed in the right direction. |
@mheppler Item 3: `public JsonArrayBuilder getListofSelectedRoles(){
|
Yes, after reviewing the options with the dev team, the best way to get bundle text into the My Data As for the role names, I have asked @scolapasta to provide some feedback for you. |
@JayanthyChengan |
…cript-bundle # Conflicts: # src/main/java/Bundle.properties
…averse/tree/5202-alert-messages " - Added variables in mydata_fragment.xhtml
@mheppler - I tried by passing hidden variables from mydata_fragment.xhtml , and used it in mydata.js to toggle using bundle value. Please check in this commit 507c82f I noticed that from this link => http://localhost:8080/dataverseuser.xhtml?selectTab=dataRelatedToMe , all tabs are working fine. But if I click on "Edit Account -> Account Information or Password" on the right side , I see the below error in server log [2018-12-12T16:53:10.777-0500] [glassfish 4.1] [SEVERE] [] [javax.enterprise.resource.webcontainer.jsf.context] [tid: _ThreadID=32 _ThreadName=http-listener-1(4)] [timeMillis: 1544651590777] [levelValue: 1000] [[ And it doesn't throw error , if I click "Edit Account -> Account Information or Password" from this link http://localhost:8080/dataverseuser.xhtml?selectTab=accountInfo |
@scolapasta And it hits the condition - FacesContext.getCurrentInstance() == null in the DataverseLocaleBean.java , and set localecode = "en" . Any suggestions on this? |
@JayanthyChengan after much hacking and a little hair pulling, I can say that I don't know what the problem was other than there was a problem with using Since I spent so long investigating, and not getting anywhere, I started to reformat some of the code, so I just went ahead and made a pull request with the fix and my reformatting changes. Nothing major. Just used jQuery where I could, since most of the code is already using it. Take a look and let me know if that looks good. |
@mheppler - Thank you for your investigation and the PR. I will test the code and let you know soon. |
Fixed 'ResourceBundles are immutable' error on My Data [ref IQSS#4679]
…cript-bundle # Conflicts: # src/main/webapp/dataset.xhtml
There are merge conflicts in Bundle_fr.properties but I believe that in the long term this file will be remove in favor of the version at https://github.com/GlobalDataverseCommunityConsortium/dataverse-language-packs |
…cript-bundle # Conflicts: # src/main/java/Bundle_fr.properties
@mheppler - I tested the code which looks good for me. Can you please move it to codereview? Thanks |
Good stuff @JayanthyChengan. Thank you. The new |
@mheppler - Actually, the new var approach was implemented by you in this pull request scholarsportal#29 and added the comment #5351 (comment). I merged and tested the code, it looks good for me. Sorry, I am not clear what other suggestions you are pointing to? |
You should be able to see my comments in the files changed view of this PR. It looks like they were "pending" though, as part of a review form, so that was on me for not hitting "submit". You should see them now. |
@mheppler - please review the code. Thanks |
@JayanthyChengan thanks for the quick turn around, but I've got two last items...
|
@mheppler - added new commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good, @JayanthyChengan. Thanks!
Related Issues
Internationalization : remove English static strings from javascript files #4679