Closed GoogleCodeExporter closed 9 years ago
This is an enhancement.
If there would be a language selection in the main report page, it would
probably need a persistent cookie like for the choosen period.
But what would be the locale including the language and the country? (The
locale, and in particular the country, changes the date formats and the number
formats in the reports).
The need to select again the language or locale in each dev/qa/prod environment
is not the best option either.
Given that a language / locale selection would not be so usable, I think it is
better to add a javamelody parameter. This would need to change the enum
"Parameter" and the method "I18N#getCurrentLocale()"
Original comment by evernat@free.fr
on 19 Dec 2012 at 1:33
Here is a patch to make the language configurable.
Original comment by xiukongt...@gmail.com
on 24 Dec 2012 at 1:39
Attachments:
I have enhanced your patch to be able to set a locale (for example, "en_US",
"en", "fr_FR", "de_DE" or "pt_BR") and not only a language.
And I have renamed the javamelody parameter to "locale".
It can be set like the others optional parameters:
http://code.google.com/p/javamelody/wiki/UserGuide#6._Optional_parameters
It is committed in trunk (revision 3202) and ready for the next release (1.43).
I have made a new build and it is available at:
http://javamelody.googlecode.com/files/javamelody-20121225.jar
Thanks
Original comment by evernat@free.fr
on 25 Dec 2012 at 2:44
Original issue reported on code.google.com by
xiukongt...@gmail.com
on 18 Dec 2012 at 11:42