IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
878 stars 490 forks source link

UI language toggle to include country codes to support language locales #5046

Open amberleahey opened 6 years ago

amberleahey commented 6 years ago

Related to https://github.com/IQSS/dataverse/issues/4685

Update from the community call today (09-11-2018), many people require having Dataverse in a specific language locale e.g. EN-CA, FR-FR, etc., and to be able to differentiate this in the UI toggle would be good. Please can we revisit the design of the UI toggle to incorporate these country/locales codes?

Someone mentioned using ISO country and language codes or some combination of plain language and code might be best. see: https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html as example of codes to combine...

oscardssmith commented 6 years ago

Probably should have considered this in original implementation. It would not be much harder to do (and still wouldn't). If you have some experience with Java this would actually be a pretty easy first pr. The changes would all be in one file.

amberleahey commented 6 years ago

great, perhaps @JayanthyChengan can take a look!

4tikhonov commented 6 years ago

I've just tested pre-release of 4.9.3 and it works fine. Just a question about translation of metadata fields still remain, how it will be handled in this release?

I see the extension of citation and metadata blocks with translated properties here: https://github.com/scholarsportal/dataverse-property-files/blob/master/french/citation_fr.properties

Should this file should be merged with Bundle_fr.properties file (for French, in this specific example) or it will be separate support of files with properties for every discipline?

4tikhonov commented 6 years ago

Update: I've managed to get all metadata fields translated (just modified 4 lines of source code) from merged Bundle_fr.properties file:

screen shot 2018-09-27 at 9 29 36 pm

I don't know if you guys will be interested in the solution as probably new release is already coming with the same functionality.

pdurbin commented 6 years ago

@4tikhonov that's awesome but #4684 is the issue about metadata fields so could you please post the screenshot over there? My understanding of this issue (#5046) is that it's about French in France vs French in Canada.

cmbz commented 1 month ago

2024/09/16: ABR review, @amberleahey please let us know if this is still a desired feature. If so, could you provide a bit more detail about the request? Thanks.