summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board.cpp8
-rw-r--r--i18n/en.qmbin1528 -> 1958 bytes
-rw-r--r--i18n/en.ts44
-rw-r--r--i18n/es.qmbin1574 -> 2004 bytes
-rw-r--r--i18n/es.ts52
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
--- a/i18n/en.qm
+++ b/i18n/en.qm
Binary files 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 @@
<context>
<name>Board</name>
<message>
- <location filename="../board.cpp" line="234"/>
+ <location filename="../board.cpp" line="257"/>
<source>Today</source>
<translation>Today</translation>
</message>
<message>
- <location filename="../board.cpp" line="236"/>
+ <location filename="../board.cpp" line="259"/>
<source>Yesterday</source>
<translation>Yesterday</translation>
</message>
<message>
- <location filename="../board.cpp" line="254"/>
+ <location filename="../board.cpp" line="238"/>
<source>Just now</source>
<translation>Just now</translation>
</message>
<message numerus="yes">
- <location filename="../board.cpp" line="256"/>
+ <location filename="../board.cpp" line="240"/>
<source>%n second(s) ago</source>
<translation>
<numerusform>%n seconds ago</numerusform>
@@ -27,13 +27,47 @@
</translation>
</message>
<message numerus="yes">
- <location filename="../board.cpp" line="259"/>
+ <location filename="../board.cpp" line="243"/>
<source>%n minute(s) ago</source>
<translation>
<numerusform>%n minute ago</numerusform>
<numerusform>%n minutes ago</numerusform>
</translation>
</message>
+ <message>
+ <location filename="../board.cpp" line="251"/>
+ <source>Today %1</source>
+ <translation>Today %1</translation>
+ </message>
+ <message>
+ <location filename="../board.cpp" line="253"/>
+ <source>Yesterday %1</source>
+ <translation>Yesterday %1</translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../board.cpp" line="270"/>
+ <source>%n week(s) ago</source>
+ <translation>
+ <numerusform>%n week ago</numerusform>
+ <numerusform>%n weeks ago</numerusform>
+ </translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../board.cpp" line="272"/>
+ <source>%n month(s) ago</source>
+ <translation>
+ <numerusform>%n month ago</numerusform>
+ <numerusform>%n months ago</numerusform>
+ </translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../board.cpp" line="274"/>
+ <source>%n year(s) ago</source>
+ <translation>
+ <numerusform>%n year ago</numerusform>
+ <numerusform>%n years ago</numerusform>
+ </translation>
+ </message>
</context>
<context>
<name>BoardPage</name>
diff --git a/i18n/es.qm b/i18n/es.qm
index d4af107..abcd05a 100644
--- a/i18n/es.qm
+++ b/i18n/es.qm
Binary files 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 @@
<context>
<name>Board</name>
<message>
- <location filename="../board.cpp" line="234"/>
+ <location filename="../board.cpp" line="257"/>
<source>Today</source>
<translation>Hoy</translation>
</message>
<message>
- <location filename="../board.cpp" line="236"/>
+ <location filename="../board.cpp" line="259"/>
<source>Yesterday</source>
<translation>Ayer</translation>
</message>
<message>
- <location filename="../board.cpp" line="254"/>
+ <location filename="../board.cpp" line="238"/>
<source>Just now</source>
<translation>Ahora mismo</translation>
</message>
<message numerus="yes">
- <location filename="../board.cpp" line="256"/>
+ <location filename="../board.cpp" line="240"/>
<source>%n second(s) ago</source>
<translation>
- <numerusform>hace %n segundo</numerusform>
- <numerusform>hace %n segundos</numerusform>
+ <numerusform>Hace %n segundo</numerusform>
+ <numerusform>Hace %n segundos</numerusform>
</translation>
</message>
<message numerus="yes">
- <location filename="../board.cpp" line="259"/>
+ <location filename="../board.cpp" line="243"/>
<source>%n minute(s) ago</source>
<translation>
- <numerusform>hace %n minuto</numerusform>
- <numerusform>hace %n minutos</numerusform>
+ <numerusform>Hace %n minuto</numerusform>
+ <numerusform>Hace %n minutos</numerusform>
+ </translation>
+ </message>
+ <message>
+ <location filename="../board.cpp" line="251"/>
+ <source>Today %1</source>
+ <translation>Hoy, %1</translation>
+ </message>
+ <message>
+ <location filename="../board.cpp" line="253"/>
+ <source>Yesterday %1</source>
+ <translation>Ayer, %1</translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../board.cpp" line="270"/>
+ <source>%n week(s) ago</source>
+ <translation>
+ <numerusform>Hace %n semana</numerusform>
+ <numerusform>Hace %n semanas</numerusform>
+ </translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../board.cpp" line="272"/>
+ <source>%n month(s) ago</source>
+ <translation>
+ <numerusform>Hace %n mes</numerusform>
+ <numerusform>Hace %n meses</numerusform>
+ </translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../board.cpp" line="274"/>
+ <source>%n year(s) ago</source>
+ <translation>
+ <numerusform>Hace %n año</numerusform>
+ <numerusform>Hace %n años</numerusform>
</translation>
</message>
</context>