Fix relative-date translation #4172

Merged
infinite-persistence merged 3 commits from fix-relative-date-translation into master 2020-05-11 20:54:06 +02:00

3 commits

Author SHA1 Message Date
infiinte-persistence
8d848255a8
Add changelog entry for #4172 2020-05-11 22:04:01 +08:00
infiinte-persistence
34a68aab83
Refactor DateTime to allow it's translated result string to be re-used elsewhere, for consistency. 2020-05-11 16:07:47 +08:00
infiinte-persistence
8a20f24a53
Fix localization issue in DateTime.
The class was only returning a localized string for 'years' and 'months'; English was used for the rest.

- Fixed by handling the remaining cases.
- New strings were added (1) so that they will all be consistent language-wise until the translators handle them all (2) allows for cleaner code through variable re-use (%duration%).
2020-05-11 16:07:46 +08:00