Skip to content

get_string_for_date: Use "Yesterday" and "n days ago" correctly.

Rafał Lużyński requested to merge (removed):master into master

Some languages don't have plurals, some reuse the singular form for numbers like 21, 31, 41... Therefore if you want to display "Yesterday" instead of "1 day ago" you must do it explicitly. You can't rely on ngettext(), you can't assume that n == 1 is always singular and n != 1 is always plural.

Merge request reports