You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Wrong month formatting is used for table captions of gantt diagram. Some languages/locales use different word for standalone month name and month as a part of date string.
English word "January" is used for both standalone month name (January'70) and part of date string (The 1st of January 1970).
But Ukrainian, Czech, Greek, Croatian, Russian, Polish, Finnish, Catalan languages have different words. For example, in Greek: "Ιανουάριος 1970" as standalone month and "1 Ιανουαρίου 1970" as a part of date string.
The problem is in Month.java: TextStyle.FULL_STANDALONE and TextStyle.FULL can't be used interchangeably. Specifically it might not be decided on longest criteria.
I would consider to use two separate methods for standalone and partial usage of month name.
Expected behavior
Correspondingly, captions have to be:
en: January 1970 — correct
el: Ιανουάριος 1970 instead of Ιανουαρίου 1970
fi: Tammikuu 1970 instead of Tammikuuta 1970
ru: Январь 1970 instead of Января 1970
Screenshots
Additional context
To illustrate the difference of month representation one may run following code in java:
Description
Wrong month formatting is used for table captions of gantt diagram. Some languages/locales use different word for standalone month name and month as a part of date string.
English word "January" is used for both standalone month name (January'70) and part of date string (The 1st of January 1970).
But Ukrainian, Czech, Greek, Croatian, Russian, Polish, Finnish, Catalan languages have different words. For example, in Greek: "Ιανουάριος 1970" as standalone month and "1 Ιανουαρίου 1970" as a part of date string.
The problem is in Month.java: TextStyle.FULL_STANDALONE and TextStyle.FULL can't be used interchangeably. Specifically it might not be decided on
longest
criteria.I would consider to use two separate methods for standalone and partial usage of month name.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correspondingly, captions have to be:
en:
January 1970
— correctel:
Ιανουάριος 1970
instead ofΙανουαρίου 1970
fi:
Tammikuu 1970
instead ofTammikuuta 1970
ru:
Январь 1970
instead ofЯнваря 1970
Screenshots
![image](https://user-images.githubusercontent.com/15768610/229517038-758ccf40-e15a-4f61-8a78-6862496d6a90.png)
Additional context
To illustrate the difference of month representation one may run following code in
java
:The text was updated successfully, but these errors were encountered: