From c6f60740cc4ca2db17b415e77008cbc5c347f9d7 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Wed, 1 May 2013 01:36:12 +0200 Subject: standarize root forum id to 0 (violating spec) --- fetchforumsaction.cpp | 9 +++++++++ i18n/en.qm | Bin 1227 -> 1528 bytes i18n/en.ts | 32 +++++++++++++++++++++++++++++--- i18n/es.qm | Bin 1269 -> 1574 bytes i18n/es.ts | 32 +++++++++++++++++++++++++++++--- 5 files changed, 67 insertions(+), 6 deletions(-) diff --git a/fetchforumsaction.cpp b/fetchforumsaction.cpp index 814ae02..1111957 100644 --- a/fetchforumsaction.cpp +++ b/fetchforumsaction.cpp @@ -56,6 +56,15 @@ void FetchForumsAction::handleFinishedCall() continue; } + if (forum_id < 0) { + qWarning() << "Negative forum_id in" << map; + continue; + } + if (parent_id < 0) { + // Assume this is a root forum + parent_id = 0; + } + query.bindValue(":forum_id", forum_id); query.bindValue(":parent_id", parent_id); query.bindValue(":forum_name", decodeForumText(map["forum_name"])); diff --git a/i18n/en.qm b/i18n/en.qm index 8c5ef2a..af5384b 100644 Binary files a/i18n/en.qm and b/i18n/en.qm differ diff --git a/i18n/en.ts b/i18n/en.ts index 0a41302..8a350d7 100644 --- a/i18n/en.ts +++ b/i18n/en.ts @@ -14,12 +14,12 @@ Yesterday - + Just now Just now - + %n second(s) ago %n seconds ago @@ -27,7 +27,7 @@ - + %n minute(s) ago %n minute ago @@ -48,6 +48,19 @@ Mark subforums read + + ForumModel + + + Announcement + Announcement + + + + Sticky + Sticky + + NewPostSheet @@ -94,4 +107,17 @@ Write your message here + + TopicPage + + + Go to first post + Go to first post + + + + Go to last post + Go to last post + + diff --git a/i18n/es.qm b/i18n/es.qm index c98f21d..d4af107 100644 Binary files a/i18n/es.qm and b/i18n/es.qm differ diff --git a/i18n/es.ts b/i18n/es.ts index fc6cb9d..1810ae7 100644 --- a/i18n/es.ts +++ b/i18n/es.ts @@ -14,12 +14,12 @@ Ayer - + Just now Ahora mismo - + %n second(s) ago hace %n segundo @@ -27,7 +27,7 @@ - + %n minute(s) ago hace %n minuto @@ -48,6 +48,19 @@ Marcar subforos como leídos + + ForumModel + + + Announcement + Anuncio + + + + Sticky + Fijo + + NewPostSheet @@ -94,4 +107,17 @@ Escribe tu mensaje aquí + + TopicPage + + + Go to first post + Ir al primer mensaje + + + + Go to last post + Ir al último mensaje + + -- cgit v1.2.3