diff --git a/localization/rssguard_nl.ts b/localization/rssguard_nl.ts index e3fc935a0..6c1c16243 100644 --- a/localization/rssguard_nl.ts +++ b/localization/rssguard_nl.ts @@ -50,51 +50,51 @@ Cannot add standard category - + Kan geen standaard categorie toevoegen You cannot add new standard category now because feed update is ongoing. - + Je kan niet een nieuwe standaard categorie toevoegen omdat feeds aan het updaten zijn. Cannot add standard feed - + Kan geen standaard feed toevoegen You cannot add new standard feed now because feed update is ongoing. - + Je kan niet een nieuwe standaard feed toevoegen omdat feeds aan het updaten zijn. Cannot edit item - + Kan item niet bewerken Selected item cannot be edited because feed update is ongoing. - + Gekozen item kan niet worden bewerkt omdat feeds aan het updaten zijn. Cannot delete item - + Kan item niet verwijderen Selected item cannot be deleted because feed update is ongoing. - + Geselecteerde item kan niet worden verwijderd omdat feeds aan het updaten zijn. Cannot update all items - + Kan alle items niet updaten You cannot update all items because another feed update is ongoing. - + Je kan niet alle items updaten omdat feeds aan het updaten zijn. Cannot update selected items - + Kan geselecteerde items niet updaten You cannot update selected items because another feed update is ongoing. - + Je kan gekozen items niet updaten omdat feeds aan het updaten zijn. @@ -161,7 +161,7 @@ <body>RSS Guard is a (very) tiny feed reader.<br><br>This software is distributed under the terms of GNU General Public License, version 3.<br><br>Contacts:<ul><li><a href="mailto://%1">%1</a> ~email</li><li><a href="%2">%2</a> ~website</li></ul>You can obtain source code for RSS Guard from its website.<br><br><br>Copyrigh (C) 2011-%3 %4</body> - <body>RSS Guard is een (zeer) makelijk om te gebruiken feed lezer.<br><br>Dit programma is beschikbaar onder te termen van de GNU General Public License versie 3.<br><br>Contacts:<ul><li><a href="mailto://%1">%1</a> ~email</li><li><a ref="%2">%2</a> ~website </li><ul>U kunt de broncode voor RSS Guard verkrijgen op de website.<br><br><br>Auteursrecht(C)2011-%3 %4</body> + <body>RSS Guard is een (zeer) makelijk te gebruiken feed lezer.<br><br>Dit programma is beschikbaar onder te termen van de GNU General Public License versie 3.<br><br>Contacts:<ul><li><a href="mailto://%1">%1</a> ~email</li><li><a ref="%2">%2</a> ~website </li><ul>U kunt de broncode voor RSS Guard verkrijgen op de website.<br><br><br>Auteursrecht(C)2011-%3 %4</body> @@ -232,23 +232,23 @@ Update selected feeds/categories. - Update geselekteerde feeds/categorieën. + Update geselecteerde feeds/categorieën. Edit selected feed/category. - Bewerk geselekteerde feeds/categorieën. + Bewerk geselecteerde feeds/categorieën. Mark selected messages as read. - Markeer geselekteerde bericht als gelezen. + Markeer geselecteerde bericht als gelezen. Mark selected messages as unread. - Markeer geselekteerde bericht als ongelezen. + Markeer geselecteerde bericht als ongelezen. Switch importance of selected messages. - Wissel de belangrijkheid van geselekteerde berichten. + Wissel de belangrijkheid van geselecteerde berichten. &Web browser @@ -352,7 +352,7 @@ Update &selected items - Update ge&seleckteerde items + Update ge&selecteerde items Mark &selected items read @@ -400,35 +400,35 @@ Add new standard category. - + Voeg nieuw standaard categorie toe. Add new item - + Voeg nieuw item toe Switch &fullscreen/normal mode - + Schakel &beeldvullende/normale modus &Edit selected item - + &Bewerk geselecteerde item &Delete selected item - + &Verwijder geselecteerde items Standard &feed - + Standaard &feed Add new standard feed. - + Voeg nieuw standaard feed toe. Standard &category - + Standaard &categorie @@ -763,7 +763,7 @@ Use in-memory database as the working database - + Gebruik in-geheugen database als de werkende database Usage of in-memory working database has several advantages and pitfalls. Make sure that you are familiar with these before you turn this feature on. Advantages: @@ -777,329 +777,339 @@ Disadvantages: <li>application startup and shutdown can take little longer (max. 2 seconds).</li> </ul> Authors of this application are NOT responsible for lost data. - + Het gebruik van in-geheugen werkende database heeft een aantal voordelen en nadelen.Zorg ervoor dat u er bekend mee bent voordat u deze functie inschakelt. Voordelen: +<ul> +<li>hogere snelheid voor feed/bericht manipulaties (vooral met duizenden berichten weergegeven),</li> +<li>gehele database opgeslagen in het RAM geheugen, waardoor uw harde schijf meer rust.</li> +</ul> +Nadelen: +<ul> +<li>als rssguard crasht, gaan wijzigingen van laatste sessie verloren,</li> +<li>opstarten en afsluiten van rssguard kan iets langer duren (max. 2 seconden).</li> +</lu> +Auteurs van Rssguard zijn NIET verantwoordelijk voor verlies van gegevens. in-memory database switched - + in-geheugen database overgeschakeld Internal web browser - + Interne webbrowser External web browser - + Externe webbrowser Remove all read messages from all standard feeds on application exit - + Verwijder de gelezen berichten van alle standaard feeds als rssguard sluit FormStandardCategoryDetails Parent category - Oudere categorie + Oudere categorie Title - Titel + Titel Description - Omschrijving + Omschrijving Icon - Pictogram + Pictogram Select parent item for your category. - + Kies hoofd item voor je categorie. Select icon for your category. - + Selecteer pictogram voor je categorie. Add new standard category - + Voeg nieuw standaard categorie toe Edit existing standard category - + Bewerk bestaande standaard categorie Category name is ok. - + Categorie naam is ok. Category name is too short. - + Categorie naam is te kort. Description is empty. - + Omschrijving is leeg. The description os ok. - + Omschrijving is ok. Select icon file for the category - + Kies pictogram bestand voor de categorie Images (*.bmp *.jpg *.jpeg *.png *.svg *.tga) - + Afbeeldingen (*.bmp *.jpg *.jpeg *.png *.svg *.tga) Select icon - + Selecteer pictogram Cancel - + Annuleer Look in: - + Kijk in: Icon name: - + Pictogram naam: Icon type: - + Type pictogram: Category title - + Titel categorie Set title for your category. - + Stel titel in voor je categorie. Category description - + Categorie omschrijving Set description for your category. - + Stel omschrijving in voor je categorie. Icon selection - + Pictogram selectie Load icon from file... - + Laad pictogram uit een bestand... Do not use icon - + Gebruik geen pictogram Use default icon - + Gebruik standaard pictogram FormStandardFeedDetails Parent category - Oudere categorie + Oudere categorie Select parent item for your feed. - + Kies hoofd item voor je feed. Type - Type + Type Select type of the standard feed. - + Selecteer type van de standaard feed. Title - Titel + Titel Description - Omschrijving + Omschrijving URL - + Encoding - + Coderen Select encoding of the standard feed. If you are unsure about the encoding, then select "UTF-8" encoding. - + Kies codering van de standaard feed. Als je niet zeker bent van de codering, selecteer dan "UTF-8" codering. Icon - Pictogram + Pictogram Select icon for your feed. - + Selecteer pictogram voor je feed. Add new standard feed - + Voeg nieuw standaard feed toe Edit existing standard feed - + Bewerk bestaande standaard feed Feed name is ok. - + Feed naam is ok. Feed name is too short. - + Feed naam is te kort. Description is empty. - + Omschrijving is leeg. The description os ok. - + Omschrijving is ok. Feed title - + Feed naam Set title for your feed. - + Stel titel in voor je feed. Feed description - + Feed omschrijving Set description for your feed. - + Stel omschrijving voor feed in. Set url for your feed. - + Stel url in voor je feed. Some feeds require authentication, including GMail feeds. BASIC, NTLM-2 and DIGEST-MD5 authentication schemes are supported. - + Sommige feeds vereisen verificatie,inclusief GMail feeds, BASIC, NTLM-2 en DIGEST-MD5 verificaties schema's worden ondersteund. Requires authentication - + Vereist verificatie Username - Gebruikersnaam + Gebruikersnaam Password - Paswoord + Paswoord The url is ok. - + De url is ok. The url does not meet standard pattern. Does your url start with "http://" or "https://" prefix. - + De URL voldoet niet aan het standaard patroon. Start je url met "http://" of "https://" prefix. The url is empty. - + De url is leeg. Username is ok or it is not needed. - + Gebruikersnaam is ok of het is niet nodig. Username is empty. - + Gebruikersnaam is leeg. Password is ok or it is not needed. - + Paswoord is ok of het is niet nodig. Password is empty. - + Paswoord is leeg. Select icon file for the feed - + Selecteer pictogram bestand voor je feed Images (*.bmp *.jpg *.jpeg *.png *.svg *.tga) - + Afbeeldingen (*.bmp *.jpg *.jpeg *.png *.svg *.tga) Select icon - + Selecteer pictogram Cancel - + Annuleer Look in: - + Kijk in: Icon name: - + Pictogram naam: Icon type: - + Type pictogram: Auto-fetch feed metadata - + Automatisch de feed metadata ophalen Full feed url including scheme - + Volledige feed url inclusief schema Set username to access the feed. - + Stel gebruikersnaam in voor toegang tot feed. Set password to access the feed. - + Stel paswoord in voor toegang tot feed. Icon selection - + Pictogram selectie Load icon from file... - + Laad pictogram uit een bestand... Do not use icon - + Gebruik geen pictogram Use default icon - + Gebruik standaard pictogram @@ -1114,7 +1124,7 @@ Authors of this application are NOT responsible for lost data. <p>RSS Guard is a (very) easy-to-use feed reader. It supports all major feed formats, including RSS, ATOM and RDF.</p><p>Make sure you explore all available features. If you find a bug or if you want to propose new feature, then create new <a href="%1"><span style="text-decoration: underline; color:#0000ff;">issue report</span></a>.</p><p>RSS Guard can be translated to any language. Contact its <a href="mailto:%2"><span style="text-decoration: underline; color:#0000ff;">author</span></a> in case of your interest.</p><p><br/></p> - <p>RSS Guard is een (zeer) makelijk om te gebruiken feed lezer.Het ondersteund alle grote formaten, inclusief RSS, ATOM en RDF.</p><p>Maak gebruik van all beschikbare functies die er zijn. Ook als je een bug vind, of je hebt een nieuwe functie die je wilt zien, maak dan een nieuwe <a href="%1"><span style="text decoration: underline;color:#0000ff;">probleem rapport</span></a>.</p><p>RSS Guard kan naar iedere taal worden vertaald. Contactpersoon is <a href="mailto:%2"><span style="text-decoration: underline; color:#0000ff;">Auteur</span></a>In geval van belangstelling.</p><p><br/></p> + <p>RSS Guard is een (zeer) makelijk te gebruiken feed lezer.Het ondersteund alle grote formaten, inclusief RSS, ATOM en RDF.</p><p>Maak gebruik van all beschikbare functies die er zijn. Ook als je een bug vind, of je hebt een nieuwe functie die je wilt zien, maak dan een nieuwe <a href="%1"><span style="text decoration: underline;color:#0000ff;">probleem rapport</span></a>.</p><p>RSS Guard kan naar iedere taal worden vertaald. Contactpersoon is <a href="mailto:%2"><span style="text-decoration: underline; color:#0000ff;">Auteur</span></a>In geval van belangstelling.</p><p><br/></p> @@ -1307,7 +1317,10 @@ Deze categorie bevat geen nested items. %3 Encoding: %4 - + %1 (%2) +%3 + +Codering: %4 @@ -1336,11 +1349,11 @@ Encoding: %4 TabBar Close this tab. - + Sluit dit tabblad. Close tab - + Sluit tabblad @@ -1421,19 +1434,19 @@ Encoding: %4 Go back. - + Ga terug. Go forward. - + Ga vooruit. Reload current web page. - + Vernieuw huidige webpagina. Stop web page loading. - + Stop het laden van pagina. diff --git a/src/core/databasefactory.cpp b/src/core/databasefactory.cpp index 03b270f97..f357e35e5 100644 --- a/src/core/databasefactory.cpp +++ b/src/core/databasefactory.cpp @@ -67,7 +67,7 @@ QSqlDatabase DatabaseFactory::initializeInMemoryDatabase() { query_db.exec("PRAGMA temp_store = MEMORY"); // Sample query which checks for existence of tables. - query_db.exec("SELECT value FROM Information WHERE key = 'schema_version'"); + query_db.exec("SELECT inf_value FROM Information WHERE inf_key = 'schema_version'"); if (query_db.lastError().isValid()) { qWarning("Error occurred. In-memory database is not initialized. Initializing now."); diff --git a/src/core/defs.h.in b/src/core/defs.h.in index c51af58eb..dd96a41ab 100755 --- a/src/core/defs.h.in +++ b/src/core/defs.h.in @@ -41,6 +41,7 @@ #define INTERNAL_URL_NEWSPAPER "@APP_LOW_NAME@:newspaper" #define DEFAULT_AUTO_UPDATE_INTERVAL 15 #define AUTO_UPDATE_INTERVAL 60000 +#define STARTUP_UPDATE_DELAY 500 #define APP_DB_INIT_FILE "db_init.sql" #define APP_DB_INIT_MEMORY "db_init_memory.sql" diff --git a/src/gui/feedmessageviewer.cpp b/src/gui/feedmessageviewer.cpp index b6d99c93a..be912f02f 100644 --- a/src/gui/feedmessageviewer.cpp +++ b/src/gui/feedmessageviewer.cpp @@ -44,6 +44,9 @@ FeedMessageViewer::FeedMessageViewer(QWidget *parent) // Start the feed downloader thread. m_feedDownloaderThread->start(); + + // Now, update all feeds if user has set it. + m_feedsView->updateAllFeedsOnStartup(); } FeedMessageViewer::~FeedMessageViewer() { diff --git a/src/gui/feedsview.cpp b/src/gui/feedsview.cpp index e85530701..6e6983963 100644 --- a/src/gui/feedsview.cpp +++ b/src/gui/feedsview.cpp @@ -117,6 +117,13 @@ void FeedsView::updateAllFeeds() { } } +void FeedsView::updateAllFeedsOnStartup() { + if (Settings::instance()->value(APP_CFG_FEEDS, "feeds_update_on_startup", false).toBool()) { + qDebug("Requesting update for all feeds on application startup."); + QTimer::singleShot(STARTUP_UPDATE_DELAY, this, SLOT(updateAllFeeds())); + } +} + void FeedsView::updateSelectedFeeds() { if (SystemFactory::instance()->applicationCloseLock()->tryLock()) { emit feedsUpdateRequested(selectedFeeds()); diff --git a/src/gui/feedsview.h b/src/gui/feedsview.h index 7be511b28..e34d6edf0 100644 --- a/src/gui/feedsview.h +++ b/src/gui/feedsview.h @@ -52,6 +52,7 @@ class FeedsView : public QTreeView { public slots: // Feed updating. void updateAllFeeds(); + void updateAllFeedsOnStartup(); void updateSelectedFeeds(); // Is executed when next auto-update round could be done. diff --git a/src/gui/formsettings.cpp b/src/gui/formsettings.cpp index 6a4b4fb23..cb6aa9f1e 100755 --- a/src/gui/formsettings.cpp +++ b/src/gui/formsettings.cpp @@ -157,6 +157,7 @@ void FormSettings::loadFeedsMessages() { m_ui->m_checkAutoUpdate->setChecked(Settings::instance()->value(APP_CFG_FEEDS, "auto_update_enabled", false).toBool()); m_ui->m_spinAutoUpdateInterval->setValue(Settings::instance()->value(APP_CFG_FEEDS, "auto_update_interval", DEFAULT_AUTO_UPDATE_INTERVAL).toInt()); m_ui->m_spinFeedUpdateTimeout->setValue(Settings::instance()->value(APP_CFG_FEEDS, "feed_update_timeout", DOWNLOAD_TIMEOUT).toInt()); + m_ui->m_checkUpdateAllFeedsOnStartup->setChecked(Settings::instance()->value(APP_CFG_FEEDS, "feeds_update_on_startup", false).toBool()); } void FormSettings::saveFeedsMessages() { @@ -164,6 +165,7 @@ void FormSettings::saveFeedsMessages() { Settings::instance()->setValue(APP_CFG_FEEDS, "auto_update_enabled", m_ui->m_checkAutoUpdate->isChecked()); Settings::instance()->setValue(APP_CFG_FEEDS, "auto_update_interval", m_ui->m_spinAutoUpdateInterval->value()); Settings::instance()->setValue(APP_CFG_FEEDS, "feed_update_timeout", m_ui->m_spinFeedUpdateTimeout->value()); + Settings::instance()->setValue(APP_CFG_FEEDS, "feeds_update_on_startup", m_ui->m_checkUpdateAllFeedsOnStartup->isChecked()); FormMain::instance()->tabWidget()->feedMessageViewer()->feedsView()->updateAutoUpdateStatus(); } diff --git a/src/gui/formsettings.ui b/src/gui/formsettings.ui index d47378d2f..1a4506f15 100644 --- a/src/gui/formsettings.ui +++ b/src/gui/formsettings.ui @@ -17,7 +17,7 @@ - 0 + 5 @@ -755,14 +755,14 @@ Authors of this application are NOT responsible for lost data. Feeds - + Auto-update all feeds every - + false @@ -781,14 +781,14 @@ Authors of this application are NOT responsible for lost data. - + Feed connection timeout - + Connection timeout is time interval which is reserved for downloading new messages for the feed. If this time interval elapses, then download process is aborted. @@ -807,6 +807,13 @@ Authors of this application are NOT responsible for lost data. + + + + Update all feed on application startup + + +