diff options
-rw-r--r-- | board.cpp | 8 | ||||
-rw-r--r-- | i18n/en.qm | bin | 1528 -> 1958 bytes | |||
-rw-r--r-- | i18n/en.ts | 44 | ||||
-rw-r--r-- | i18n/es.qm | bin | 1574 -> 2004 bytes | |||
-rw-r--r-- | i18n/es.ts | 52 |
5 files changed, 86 insertions, 18 deletions
@@ -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"); } } Binary files differ@@ -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> Binary files differ@@ -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> |