Hello L, and PlantUML team,
Here is a proposal from Mike for a Change Request or a PR, on:
According to their source code, there are hardcoded values for days and months as Enums and they use name() method to get their English names. I would recommend you to clone their repo and change the hardcoded values in two classes:
1. In file src/net/sourceforge/plantuml/project/time/DayOfWeek.java replace method shortName like this:
public String shortName() {
Locale locale = Locale.getDefault();
String s = StringUtils.capitalize(java.time.DayOfWeek.valueOf(this.toString()).getDisplayName(TextStyle.SHORT_STANDALONE, locale));
return s.substring(0,2);
}
2. In file src/net/sourceforge/plantuml/project/time/Month.java replace two methods like this
public String shortName() {
return StringUtils.capitalize(java.time.Month.valueOf(this.toString()).getDisplayName(TextStyle.SHORT_STANDALONE,Locale.getDefault()));
}
and
public String longName() {
return StringUtils.capitalize(java.time.Month.valueOf(this.toString()).getDisplayName(TextStyle.FULL_STANDALONE,Locale.getDefault()));
}
I compile only these two classes and replace them in jar file. This works for me.
Mike.
@PlantUML: Could you implement that? or add a parameter to define the locale on Gantt diagram?
Thank to Mike, and PlantUML team,
Regards,
Th.