ocpsoft / prettytime

Social Style Date and Time Formatting for Java
http://ocpsoft.org/prettytime/
Apache License 2.0
1.29k stars 253 forks source link

[LOW] Typo regarding "months" #220

Closed 0x5ECF4ULT closed 3 years ago

0x5ECF4ULT commented 3 years ago

When setting the locale to de there is a typo when handling months. 1 month becomes "1 Monatn" (comparable to "monhs") instead of "1 Monat" (month). Please see the attached issue for a detailed explaination:

https://github.com/TeamNewPipe/NewPipe/issues/6508

lincolnthree commented 3 years ago

@0x5ECF4ULT Hey there. Thanks for the issue report. Mind sending a PR to fix this? It would be super awesome!

obecker commented 3 years ago

Apparently something's wrong with the isPlural() method used in the decorate/decorateUnrounded implementations in Resources_de.DeTimeFormat. So it might help to know how the prettytime API is used in your case.

lincolnthree commented 3 years ago

Closed via https://github.com/ocpsoft/prettytime/pull/229