From a690870e46508d5b81eb1682be542a93682f51a4 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Wed, 1 May 2013 02:49:55 +0200 Subject: update translations --- board.cpp | 8 ++++---- i18n/en.qm | Bin 1528 -> 1958 bytes i18n/en.ts | 44 +++++++++++++++++++++++++++++++++++++++----- i18n/es.qm | Bin 1574 -> 2004 bytes i18n/es.ts | 52 +++++++++++++++++++++++++++++++++++++++++++--------- 5 files changed, 86 insertions(+), 18 deletions(-) diff --git a/board.cpp b/board.cpp index 329626f..1f12b0e 100644 --- a/board.cpp +++ b/board.cpp @@ -247,15 +247,15 @@ QString Board::formatDateTime(const QDateTime &dateTime, DateTimePrecisionOption if (precision & (TodayYesterday | RelativeDate)) { if (precision & ShowTime) { const QString time = ldt.time().toString(Qt::DefaultLocaleShortDate); - if (days < 1) { + if (days == 0) { return tr("Today %1").arg(time); - } else if (days <= 1) { + } else if (days == 1) { return tr("Yesterday %1").arg(time); } } else { - if (days < 1) { + if (days == 0) { return tr("Today"); - } else if (days <= 1) { + } else if (days == 1) { return tr("Yesterday"); } } diff --git a/i18n/en.qm b/i18n/en.qm index af5384b..eb5404a 100644 Binary files a/i18n/en.qm and b/i18n/en.qm differ diff --git a/i18n/en.ts b/i18n/en.ts index 8a350d7..4df7598 100644 --- a/i18n/en.ts +++ b/i18n/en.ts @@ -4,22 +4,22 @@ Board - + Today Today - + Yesterday Yesterday - + Just now Just now - + %n second(s) ago %n seconds ago @@ -27,13 +27,47 @@ - + %n minute(s) ago %n minute ago %n minutes ago + + + Today %1 + Today %1 + + + + Yesterday %1 + Yesterday %1 + + + + %n week(s) ago + + %n week ago + %n weeks ago + + + + + %n month(s) ago + + %n month ago + %n months ago + + + + + %n year(s) ago + + %n year ago + %n years ago + + BoardPage diff --git a/i18n/es.qm b/i18n/es.qm index d4af107..abcd05a 100644 Binary files a/i18n/es.qm and b/i18n/es.qm differ diff --git a/i18n/es.ts b/i18n/es.ts index 1810ae7..0bc16fa 100644 --- a/i18n/es.ts +++ b/i18n/es.ts @@ -4,34 +4,68 @@ Board - + Today Hoy - + Yesterday Ayer - + Just now Ahora mismo - + %n second(s) ago - hace %n segundo - hace %n segundos + Hace %n segundo + Hace %n segundos - + %n minute(s) ago - hace %n minuto - hace %n minutos + Hace %n minuto + Hace %n minutos + + + + + Today %1 + Hoy, %1 + + + + Yesterday %1 + Ayer, %1 + + + + %n week(s) ago + + Hace %n semana + Hace %n semanas + + + + + %n month(s) ago + + Hace %n mes + Hace %n meses + + + + + %n year(s) ago + + Hace %n año + Hace %n años -- cgit v1.2.3