|
|
Subject: KDE/kdeedu/parley/src/editor - msg#10579
List: kde-commits
SVN commit 961569 by gladhorn:
fix outdated tooltip, thanks Nightrose
M +1 -1 editor.cpp
--- trunk/KDE/kdeedu/parley/src/editor/editor.cpp #961568:961569
@@ -431,7 +431,7 @@
showStatistics->setIcon(KIcon("view-statistics"));
showStatistics->setText(i18n("&Statistics..."));
connect(showStatistics, SIGNAL(triggered(bool)), m_mainWindow,
SLOT(slotShowStatistics()));
- showStatistics->setWhatsThis(i18n("Show and reset statistics for the
current collection"));
+ showStatistics->setWhatsThis(i18n("Show statistics for the current
collection"));
showStatistics->setToolTip(showStatistics->whatsThis());
showStatistics->setStatusTip(showStatistics->whatsThis());
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
branches/kdepim/enterprise4/kdepimlibs/gpgme++
SVN commit 961567 by tmcguire:
Remove code accidentally checked in by Till in r961006.
M +0 -3 verificationresult.cpp
--- branches/kdepim/enterprise4/kdepimlibs/gpgme++/verificationresult.cpp
#961566:961567
@@ -132,9 +132,6 @@
gpgme_verify_result_t res = gpgme_op_verify_result( ctx );
if ( !res )
return;
- int i = 0;
- for ( gpgme_signature_t sig = res->signatures ; sig ; sig = sig->next, ++i )
- fprintf( stderr, "validity[%d]: %d\n", i, (int)sig->validity );
d.reset( new Private( res ) );
}
Next Message by Date:
click to view message preview
extragear/graphics/kipi-plugins/batchprocessimages
SVN commit 961570 by aclemens:
Q3GroupBox => QGroupBox
M +1 -1 borderimagesdialog.cpp
M +1 -1 borderoptionsdialog.cpp
M +1 -1 colorimagesdialog.cpp
M +1 -1 coloroptionsdialog.cpp
M +1 -1 convertimagesdialog.cpp
M +1 -1 convertoptionsdialog.cpp
M +1 -1 effectimagesdialog.cpp
M +1 -1 effectoptionsdialog.cpp
M +1 -1 filterimagesdialog.cpp
M +1 -1 filteroptionsdialog.cpp
M +1 -1 recompressimagesdialog.cpp
M +42 -24 recompressoptionsdialog.cpp
M +4 -4 renameimagesbase.ui
M +1 -1 renameimageswidget.cpp
M +1 -1 resizeimagesdialog.cpp
M +300 -239 resizeoptionsdialog.cpp
Previous Message by Thread:
click to view message preview
www/sites/forum/mybb-plugins/sitemap/inc/plugins
SVN commit 961559 by tkoski:
Sitemap will now cache results for 84600 seconds
M +28 -0 Sitemap/sitemap.class.php
M +47 -38 sitemap.php
---
trunk/www/sites/forum/mybb-plugins/sitemap/inc/plugins/Sitemap/sitemap.class.php
#961558:961559
@@ -11,13 +11,41 @@
const VALIDATE_XML = true;
+ const CACHE_FILE = "/tmp/forum.kde.org-Sitemap.xml";
+
+ private $validCache = false;
private $urls = array();
private $validateXML = false;
public function __construct($validateXML = false) {
$this->validateXML = $validateXML;
+ $this->checkCache();
}
+ public function isValidCache() {
+ return $this->validCache;
+ }
+
+ private function checkCache() {
+ if(!defined("SITEMAP_CACHE_FILE")) {
+ return false;
+ }
+
+ if(!defined("SITEMAP_CACHE_LIFE_TIME")) {
+ return false;
+ }
+
+ if(!is_readable(SITEMAP_CACHE_FILE)) {
+ return false;
+ }
+ $lastModified = filemtime(SITEMAP_CACHE_FILE);
+ if( (time() - $lastModified) > SITEMAP_CACHE_LIFE_TIME ){
+ return false;
+ }
+ $this->validCache = true;
+ return true;
+ }
+
public function addUrl(SitemapUrl $url) {
$this->urls[] = $url;
}
--- trunk/www/sites/forum/mybb-plugins/sitemap/inc/plugins/sitemap.php
#961558:961559
@@ -174,6 +174,8 @@
$directlyAdded[] = $url;
define("SITEMAP_URLS_ADDED_FROM_CONF", json_encode($directlyAdded));
+ define("SITEMAP_CACHE_LIFE_TIME", 86400);
+ define("SITEMAP_CACHE_FILE", "/tmp/forum.kde.org-Sitemap.xml");
}
function create_sitemap($page) {
@@ -202,49 +204,56 @@
// TODO :: Make validate XML to be able to be defined in the admin tool.
$sitemap = new Sitemap(Sitemap::VALIDATE_XML);
- // 2) Let's add the possible predifined urls in admin GUI.
- $preDefUrls = json_decode(SITEMAP_URLS_ADDED_FROM_CONF);
- if(is_array($preDefUrls)) {
- foreach (json_decode(SITEMAP_URLS_ADDED_FROM_CONF) as $k =>
$elements) {
- $url = new SitemapUrl($elements);
- $sitemap->addUrl($url);
+ if($sitemap->isValidCache()) {
+ $page = file_get_contents(SITEMAP_CACHE_FILE);
+ } else {
+
+ // 2) Let's add the possible predifined urls in admin GUI.
+ $preDefUrls = json_decode(SITEMAP_URLS_ADDED_FROM_CONF);
+ if(is_array($preDefUrls)) {
+ foreach (json_decode(SITEMAP_URLS_ADDED_FROM_CONF) as
$k => $elements) {
+ $url = new SitemapUrl($elements);
+ $sitemap->addUrl($url);
+ }
}
- }
-
- // 3) We do query to get all the threads and forums that are visible
for normal user.
- $query['forums'] = $db->query(
SitemapHelpers::generateSqlQuery(SitemapHelpers::FORUM_QUERY) );
- $query['threads'] = $db->query(
SitemapHelpers::generateSqlQuery(SitemapHelpers::THREAD_QUERY) );
- foreach ( $query as $k => $typeQuery ) {
- while( $rawDbData = $db->fetch_array($typeQuery) ) {
- // We create a array with the elements we want the url
entity to include.
- // In this point we only create the loc element :-p
- $elements =
SitemapHelpers::generateSitemapUrlConstructElm($rawDbData, $mybb);
+
+ // 3) We do query to get all the threads and forums that are
visible for normal user.
+ $query['forums'] = $db->query(
SitemapHelpers::generateSqlQuery(SitemapHelpers::FORUM_QUERY) );
+ $query['threads'] = $db->query(
SitemapHelpers::generateSqlQuery(SitemapHelpers::THREAD_QUERY) );
+ foreach ( $query as $k => $typeQuery ) {
+ while( $rawDbData = $db->fetch_array($typeQuery) ) {
+ // We create a array with the elements we want
the url entity to include.
+ // In this point we only create the loc element
:-p
+ $elements =
SitemapHelpers::generateSitemapUrlConstructElm($rawDbData, $mybb);
+
+ // Let's create the <url>
+ $url = new SitemapUrl($elements);
- // Let's create the <url>
- $url = new SitemapUrl($elements);
-
- // 4) We add the new url to our Sitemap -object...
- $sitemap->addUrl($url);
+ // 4) We add the new url to our Sitemap
-object...
+ $sitemap->addUrl($url);
+ }
}
+
+ // Finally we echo out what we have.
+ // If we have created the Sitemap object with
Sitemap::VALIDATE_XML
+ // the asXML will throw an exeption if the xml is not valid.
+ try {
+ $page = $sitemap->asXML();
+ file_put_contents(SITEMAP_CACHE_FILE, $page, LOCK_EX);
+ } catch (Exception $e) {
+ header('HTTP/1.1 500 Internal Server Error');
+ echo $e->getMessage();
+ exit;
+ }
}
-
- // Finally we echo out what we have.
- // If we have created the Sitemap object with Sitemap::VALIDATE_XML
- // the asXML will throw an exeption if the xml is not valid.
- try {
- $page = $sitemap->asXML();
- // TODO :: COMMENTS HERE PLEASE!!
- // Here we will be doing A HACK :-) We need to set the header
to application/xml
- // AND output something. Otherwise this content-type -header
will be
- // overriden in functions.php:97
- header( "content-type: application/xml; charset=UTF-8" );
- echo '<?xml version="1.0" encoding="UTF-8"?>';
- } catch (Exception $e) {
- header('HTTP/1.1 500 Internal Server Error');
- echo $e->getMessage();
- exit;
- }
+ // TODO :: COMMENTS HERE PLEASE!!
+ // Here we will be doing A HACK :-) We need to set the header to
application/xml
+ // AND output something. Otherwise this content-type -header will be
+ // overriden in functions.php:97
+ header( "content-type: application/xml; charset=UTF-8" );
+ echo '<?xml version="1.0" encoding="UTF-8"?>';
+
// Finally we return the page.
return $page;
}
Next Message by Thread:
click to view message preview
l10n-kde4/nl/messages/extragear-graphics
SVN commit 961586 by rinse:
updates and proofread
M +25 -46 kipiplugin_advancedslideshow.po
---
trunk/l10n-kde4/nl/messages/extragear-graphics/kipiplugin_advancedslideshow.po
#961585:961586
@@ -7,20 +7,20 @@
# Jasper van der Marel <jasper.van.der.marel@xxxxxxxxxx>, 2004.
# Sander Devrieze <s.devrieze@xxxxxxxxxx>, 2004.
# Wilbert Berendsen <wbsoft@xxxxxxxxx>, 2004.
-# Rinse de Vries <rinsedevries@xxxxxx>, 2004, 2005, 2006, 2007, 2008.
+# Rinse de Vries <rinsedevries@xxxxxx>, 2004, 2005, 2006, 2007, 2008, 2009.
# Freek de Kruijf <f.de.kruijf@xxxxxxxxx>, 2008, 2009.
msgid ""
msgstr ""
"Project-Id-Version: kipiplugin_advancedslideshow\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-04-15 12:08+0200\n"
-"PO-Revision-Date: 2009-02-20 12:59+0100\n"
-"Last-Translator: Freek de Kruijf <f.de.kruijf@xxxxxxxxx>\n"
+"PO-Revision-Date: 2009-04-30 14:27+0200\n"
+"Last-Translator: Rinse de Vries <rinsedevries@xxxxxx>\n"
"Language-Team: Dutch <kde-i18n-nl@xxxxxxx>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
+"X-Generator: Lokalize 0.3\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
#: captiondialog.cpp:39
@@ -32,7 +32,7 @@
#: listsounditems.cpp:98
#, kde-format
msgid "%1 is damaged and may not be playable."
-msgstr "%1 is beschadigd en zou niet afspeelbaar kunnen zijn."
+msgstr "%1 is beschadigd en is mogelijk niet afspeelbaar."
#: listsounditems.cpp:100
msgid "Phonon error"
@@ -40,41 +40,36 @@
#: listsounditems.cpp:103
msgid "This file is damaged and may not be playable."
-msgstr "Dit bestand is beschadigd en zou niet afspeelbaar kunnen zijn."
+msgstr "Dit bestand is beschadigd en is mogelijk niet afspeelbaar."
-#: maindialog.cpp:248
-#, fuzzy, kde-format
+#: maindialog.cpp:248, kde-format
#| msgid "%1 image [%2]"
msgid "%1 image [%2]"
msgid_plural "%1 images [%2]"
msgstr[0] "%1 afbeelding [%2]"
-msgstr[1] "%1 afbeelding [%2]"
+msgstr[1] "%1 afbeeldingen [%2]"
-#: maindialog.cpp:320 soundtrackdialog.cpp:379
-#, fuzzy, kde-format
+#: maindialog.cpp:320 soundtrackdialog.cpp:379, kde-format
#| msgid "Cannot access to file %1, please check the path is right."
msgid "Cannot access file %1. Please check the path is correct."
msgstr ""
"Geen toegang tot bestand %1. Controleer of het pad er naartoe juist is."
-#: maindialog.cpp:357
-#, fuzzy, kde-format
+#: maindialog.cpp:357, kde-format
#| msgid "Image no. %1"
msgctxt "Image number %1"
msgid "Image #%1"
-msgstr "Afbeelding-nr. %1"
+msgstr "Afbeelding %1"
#: maindialog.cpp:437 soundtrackdialog.cpp:322
-#, fuzzy
#| msgid "You can only move up one image file at once."
msgid "You can only move image files up one at a time."
msgstr "Er kan maar ÃÃn afbeelding per keer omhoog worden verplaatst."
#: maindialog.cpp:466
-#, fuzzy
#| msgid "You can only move up one image file at once."
msgid "You can only move image files down one at a time."
-msgstr "Er kan maar ÃÃn afbeelding per keer omhoog worden verplaatst."
+msgstr "Er kan maar ÃÃn afbeelding per keer omlaag worden verplaatst."
#: maindialog.cpp:500 slideshowkb.cpp:588
msgid "Ken Burns"
@@ -99,16 +94,15 @@
msgstr "Er zijn geen afbeeldingen voor de diavoorstelling beschikbaar."
#: plugin_advancedslideshow.cpp:246
-#, fuzzy
#| msgid "Sorry. OpenGL support not available on your system"
msgid "OpenGL support is not available on your system."
-msgstr "Helaas, OpenGL-ondersteuning is niet beschikbaar op uw computer"
+msgstr "OpenGL-ondersteuning is niet beschikbaar op uw computer"
#. i18n: file: advanceddialog.ui:13
#. i18n: ectx: property (windowTitle), widget (QWidget, AdvancedDialog)
#: rc.cpp:3 rc.cpp:308
msgid "advancedDialog"
-msgstr "geavanceerdeDialoog"
+msgstr "geavanceerdDialoog"
#. i18n: file: advanceddialog.ui:27
#. i18n: ectx: property (title), widget (QGroupBox, groupBox)
@@ -126,7 +120,7 @@
#. i18n: ectx: property (title), widget (QGroupBox, groupBox_3)
#: rc.cpp:12 rc.cpp:317
msgid "&Controls"
-msgstr "&Besturing"
+msgstr "&Bediening"
#. i18n: file: advanceddialog.ui:67
#. i18n: ectx: property (toolTip), widget (QCheckBox,
m_enableMouseWheelCheckBox)
@@ -150,12 +144,11 @@
#. i18n: ectx: property (text), widget (QCheckBox, m_kbDisableFadeCheckBox)
#: rc.cpp:24 rc.cpp:329
msgid "Disable &fade-in / fade-out"
-msgstr "Fade in / fade out uitschakelen"
+msgstr "Invagen/uitvagen &uitschakelen"
#. i18n: file: advanceddialog.ui:113
#. i18n: ectx: property (text), widget (QCheckBox,
m_kbDisableCrossfadeCheckBox)
#: rc.cpp:27 rc.cpp:332
-#, fuzzy
#| msgid "Disable &crossfade"
msgid "Disable &cross-fade"
msgstr "&Kruisvervaging uitschakelen"
@@ -187,7 +180,6 @@
#. i18n: file: advanceddialog.ui:215
#. i18n: ectx: property (text), widget (QLabel, m_KBCacheLabel)
#: rc.cpp:42 rc.cpp:347
-#, fuzzy
#| msgid ""
#| "<b>Notice</b>:\n"
#| "Ken Burns effect doesn't use this cache mechanism."
@@ -213,7 +205,6 @@
#. i18n: file: captiondialog.ui:30
#. i18n: ectx: property (text), widget (QLabel, label)
#: rc.cpp:52 rc.cpp:357
-#, fuzzy
#| msgid "Font color :"
msgid "Font color:"
msgstr "Tekstkleur: "
@@ -269,7 +260,6 @@
#. i18n: file: maindialog.ui:55
#. i18n: ectx: property (title), widget (QGroupBox, m_ImagesFilesGroup)
#: rc.cpp:79 rc.cpp:242
-#, fuzzy
#| msgid "Image Files in slideshow"
msgid "Image Files in Slideshow"
msgstr "Afbeeldingsbestanden in diavoorstelling"
@@ -277,7 +267,6 @@
#. i18n: file: maindialog.ui:69
#. i18n: ectx: property (whatsThis), widget
(KIPIAdvancedSlideshowPlugin::ListImageItems, m_ImagesFilesListBox)
#: rc.cpp:82 rc.cpp:245
-#, fuzzy
#| msgid ""
#| "This is the list of the image files for your portfolio.\n"
#| "The portfolio's first image is on the top; the last image is on the "
@@ -290,7 +279,7 @@
"If you want to add some images, click on the 'Add' button or use drag-and-"
"drop."
msgstr ""
-"Dit is een lijst van afbeeldingen voor in uw portfolio.\n"
+"Dit is de lijst van afbeeldingen voor in uw portfolio.\n"
" De eerste afbeelding staat bovenaan; de laatste onderaan. \n"
"Afbeeldingen kunnen worden toegevoegd door te klikken op 'Toevoegen' of door "
"ze te slepen."
@@ -304,7 +293,6 @@
#. i18n: file: soundtrackdialog.ui:75
#. i18n: ectx: property (whatsThis), widget (QPushButton, m_SoundFilesButtonUp)
#: rc.cpp:87 rc.cpp:193 rc.cpp:250 rc.cpp:372
-#, fuzzy
#| msgid "Moving the current image up on the portfolio list."
msgid "Move the current image up in the portfolio list."
msgstr "Verplaats de huidige afbeelding naar boven in de portfoliolijst."
@@ -342,7 +330,6 @@
#. i18n: file: soundtrackdialog.ui:159
#. i18n: ectx: property (whatsThis), widget (QPushButton,
m_SoundFilesButtonDown)
#: rc.cpp:96 rc.cpp:202 rc.cpp:259 rc.cpp:381
-#, fuzzy
#| msgid "Moving the current image down on the portfolio list."
msgid "Move the current image down in the portfolio list."
msgstr "Verplaats de huidige afbeelding naar beneden in de portfoliolijst."
@@ -394,7 +381,7 @@
#. i18n: ectx: property (text), widget (QCheckBox, m_printCommentsCheckBox)
#: rc.cpp:121 rc.cpp:284
msgid "Pr&int captions "
-msgstr "Titels afdru&kken "
+msgstr "T&itels tonen "
#. i18n: file: maindialog.ui:363
#. i18n: ectx: property (title), widget (QGroupBox, groupBox)
@@ -488,7 +475,7 @@
#. i18n: ectx: property (text), widget (QLabel, label_2)
#: rc.cpp:160 rc.cpp:434
msgid "elapsed:"
-msgstr "verlopen:"
+msgstr "verstreken:"
#. i18n: file: playbackwidget.ui:85
#. i18n: ectx: property (text), widget (QLabel, m_elapsedTimeLabel)
@@ -547,7 +534,6 @@
#. i18n: file: soundtrackdialog.ui:274
#. i18n: ectx: property (text), widget (QLabel, label)
#: rc.cpp:218 rc.cpp:397
-#, fuzzy
#| msgid "Slide :"
msgid "Slide:"
msgstr "Dia :"
@@ -555,7 +541,6 @@
#. i18n: file: soundtrackdialog.ui:288
#. i18n: ectx: property (text), widget (QLabel, label_2)
#: rc.cpp:222 rc.cpp:401
-#, fuzzy
#| msgid "Soundtrack :"
msgid "Soundtrack:"
msgstr "Soundtrack :"
@@ -564,7 +549,7 @@
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr ""
-"Rinse de Vries - 2004 t/m 2008,Jasper van der Marel - 2004,Sander Devrieze - "
+"Rinse de Vries - 2004 t/m 2009,Jasper van der Marel - 2004,Sander Devrieze - "
"2004, Wilbert Berendsen - 2004"
#: rc.cpp:224
@@ -609,7 +594,6 @@
msgstr "Uitcirkelen"
#: slideshow.cpp:240
-#, fuzzy
#| msgid "MultiCircle Out"
msgid "Multi-Circle Out"
msgstr "Uitwaaieren"
@@ -627,13 +611,11 @@
msgstr "Willekeurig"
#: slideshow.cpp:1309 slideshowgl.cpp:737
-#, fuzzy
#| msgid "Slideshow Completed."
msgid "Slideshow Completed"
msgstr "Diavoorstelling voltooid."
#: slideshow.cpp:1310 slideshowgl.cpp:738 slideshowkb.cpp:530
-#, fuzzy
#| msgid "Click To Exit..."
msgid "Click to Exit..."
msgstr "Klik om af te sluiten..."
@@ -644,7 +626,7 @@
#: slideshowconfig.cpp:80
msgid "Start Slideshow"
-msgstr "Start diavoorstelling"
+msgstr "Diavoorstelling starten"
#: slideshowconfig.cpp:87
msgid "Main"
@@ -667,10 +649,9 @@
msgstr "Geavanceerd"
#: slideshowconfig.cpp:111
-#, fuzzy
#| msgid "A Kipi plugin for image slideshow"
msgid "A Kipi plugin for image slideshows"
-msgstr "Een KIPI-plugin voor diavoorstellingen"
+msgstr "Een Kipi-plugin voor diavoorstellingen"
#: slideshowconfig.cpp:112
msgid ""
@@ -733,7 +714,6 @@
msgstr "Schuiven"
#: slideshowkb.cpp:529
-#, fuzzy
#| msgid "SlideShow Completed."
msgid "SlideShow Completed"
msgstr "Diavoorstelling voltooid."
@@ -753,21 +733,20 @@
msgstr "%1 tracks [%2]"
#: soundtrackdialog.cpp:211
-#, fuzzy
#| msgid ""
#| "Slide time is more than soundtrack time. Suggest: add more sound files."
msgid ""
"Slide time is greater than soundtrack time. Suggestion: add more sound files."
msgstr ""
-"Diatijd is meer dan de soundtracktijd. Suggestie: voeg meer geluidsbestanden "
+"De diatijd is langer dan de soundtracktijd. Suggestie: voeg meer "
+"geluidsbestanden "
"toe."
#: soundtrackdialog.cpp:279
msgid "Select sound files"
-msgstr "Selecteer meer geluidsbestanden"
+msgstr "Geluidsbestanden selecteren"
#: soundtrackdialog.cpp:351
-#, fuzzy
#| msgid "You can only move down one file at once."
msgid "You can only move files down one at a time."
msgstr "U kunt maar ÃÃn bestand tegelijk omlaag verplaatsen."
|
|