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

experimental approach for localisation of report #189

Closed
wants to merge 3 commits into from

Conversation

ajoecker
Copy link

@ajoecker ajoecker commented Aug 9, 2018

For issue #188

This is a first prototyp-ish approach for allowing to externalise the labels in the report to a property file. It is not complete and shall only be used as a basis for discussion on how to solve this.

E.g. there seems to be localisation package for golang, but I do not understand it now completely. Also it seems to add a new external dependency, so I tried to start with a pure internal approach.

Currently there must be a properties file with all labels and the localised string in the html report plugin itself. The user can then specify the env. variable report_localisation to match a defined properties file. Default is en.

This approach would need also to provide a time format to display any time/date correctly.

Feel free to discuss the approach and/or point to better ways

@sriv sriv added the ready label Aug 9, 2018
@sriv
Copy link
Member

sriv commented Aug 10, 2018

Tests are failing - some tests use the default theme, some use a custom theme. So you may have to change settings accordingly.

Also, would a package like http://nicksnyder.github.io/go-i18n/ help?

@ajoecker
Copy link
Author

i assume that tests are failing, as said, for me it is more a "could this be the right way to do so" discussion, for what I hesitated to open this as a PR.

An external package might help, though I have no overview of the impact of introducing such package

@gaugebot gaugebot bot added the cla-signed label Aug 10, 2018
@nehashri nehashri removed the ready label Oct 8, 2018
@nehashri
Copy link
Contributor

nehashri commented Oct 8, 2018

@ajoecker This PR is stale for sometime. Is any help required to fix this or can we close this PR.

@ajoecker
Copy link
Author

I think we just scrap it ...

@ajoecker ajoecker closed this Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants