Update util.cc

pull/25231/head
Lee Jong Mun 3 years ago committed by GitHub
parent 444de299b6
commit d7d2f4f6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/ui/qt/util.cc

@ -85,7 +85,7 @@ QString timeAgo(const QDateTime &date) {
s = QObject::tr("%1 hour%2 ago").arg(hours).arg(hours > 1 ? "s" : ""); s = QObject::tr("%1 hour%2 ago").arg(hours).arg(hours > 1 ? "s" : "");
} else if (diff < 3600 * 24 * 7) { } else if (diff < 3600 * 24 * 7) {
int days = diff / (60 * 60 * 24); int days = diff / (60 * 60 * 24);
s = QObject::tr("%1 day%2 ago").arg(days).arg(days > 1 ? "s" : ""); s = QObject::tr("%1 day%2 ago").arg(days).arg(days > 1 ? "s" : ""); // %2 "s" show In other languages, this is not normal
} else { } else {
s = date.date().toString(); s = date.date().toString();
} }

Loading…
Cancel
Save