diff --git a/bookmarks.php b/bookmarks.php index 2adb7bb..a97fb05 100644 --- a/bookmarks.php +++ b/bookmarks.php @@ -117,7 +117,7 @@ if ($loggedon && isset($_POST['submitted'])) { if ($GLOBALS['useredir']) { $address = $GLOBALS['url_redir'] . $address; } - header('Location: '. $address); + //header('Location: '. $address); // not useful } } else { $tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.'); diff --git a/locales/fr_FR/LC_MESSAGES/messages.mo b/locales/fr_FR/LC_MESSAGES/messages.mo index 6012d4c..384f10f 100644 Binary files a/locales/fr_FR/LC_MESSAGES/messages.mo and b/locales/fr_FR/LC_MESSAGES/messages.mo differ diff --git a/locales/fr_FR/LC_MESSAGES/messages.po b/locales/fr_FR/LC_MESSAGES/messages.po index ba20222..0a213fe 100644 --- a/locales/fr_FR/LC_MESSAGES/messages.po +++ b/locales/fr_FR/LC_MESSAGES/messages.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: Scuttle\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-04-21 17:36+0200\n" -"PO-Revision-Date: 2008-04-21 17:37+0100\n" +"POT-Creation-Date: 2008-04-24 09:43+0200\n" +"PO-Revision-Date: 2008-04-24 09:47+0100\n" "Last-Translator: BenjaminHKB \n" "Language-Team: fr-FR \n" "MIME-Version: 1.0\n" @@ -21,7 +21,7 @@ msgstr "" #: ../../../about.php:25 #: ../../../templates/toolbar.inc.php:16 -#: ../../../templates/toolbar.inc.php:24 +#: ../../../templates/toolbar.inc.php:25 msgid "About" msgstr "À propos" @@ -266,7 +266,7 @@ msgstr "Les informations que vous avez entrées sont incorrectes. Veuillez recom #: ../../../login.php:48 #: ../../../templates/login.tpl.php:26 -#: ../../../templates/toolbar.inc.php:25 +#: ../../../templates/toolbar.inc.php:26 msgid "Log In" msgstr "Se connecter" @@ -318,6 +318,7 @@ msgstr "Mot de passe oublié" #: ../../../templates/sidebar.block.common.php:9 #: ../../../templates/sidebar.block.popular.php:15 #: ../../../templates/sidebar.block.recent.php:30 +#: ../../../templates/toolbar.inc.php:24 msgid "Popular Tags" msgstr "Tags populaires" @@ -385,7 +386,7 @@ msgstr "Enregistrement raté. Veuillez rééssayer." #: ../../../register.php:66 #: ../../../templates/register.tpl.php:41 -#: ../../../templates/toolbar.inc.php:26 +#: ../../../templates/toolbar.inc.php:27 msgid "Register" msgstr "S'enregistrer" @@ -986,18 +987,13 @@ msgstr "Question antispam" msgid "Linked Tags" msgstr "Tags structurés" -#: ../../../templates/sidebar.block.linked.php:44 -#: ../../../templates/sidebar.block.menu.php:31 -msgid "all tags" -msgstr "Tous les tags" - #: ../../../templates/sidebar.block.linked.php:55 -#: ../../../templates/sidebar.block.menu.php:42 +#: ../../../templates/sidebar.block.menu.php:40 msgid "Add new link" msgstr "Créer un lien" #: ../../../templates/sidebar.block.linked.php:56 -#: ../../../templates/sidebar.block.menu.php:43 +#: ../../../templates/sidebar.block.menu.php:41 msgid "Delete link" msgstr "Supprimer un lien" @@ -1010,9 +1006,13 @@ msgstr "Tags inclus dans le tag '%s'" msgid "Menu Tags" msgstr "Menu Tags" -#: ../../../templates/sidebar.block.menu.php:31 -msgid "See all tags" -msgstr "Tous les tags" +#: ../../../templates/sidebar.block.menu.php:60 +msgid "See all your tags" +msgstr "Voir tous vos tags" + +#: ../../../templates/sidebar.block.menu.php:60 +msgid "all your tags" +msgstr "Tous vos tags" #: ../../../templates/sidebar.block.recent.php:15 msgid "Recent Tags" @@ -1062,7 +1062,7 @@ msgstr "Synonymes :" #: ../../../templates/tag2tagadd.tpl.php:10 #, php-format msgid "Note: include a tag into '%s' tag (e.g. %s>countries) display the tag into the menu box" -msgstr "Note inclure une tag dans le tag '%s' (e.g. %s>countries) affiche ce tag dans la boîte de menu" +msgstr "Note : inclure un tag dans le tag '%s' (e.g. %s>countries) affiche ce tag dans la boîte de menu" #: ../../../templates/tag2tagadd.tpl.php:13 msgid "Create new link:" diff --git a/locales/messages.po b/locales/messages.po index 2dc98f1..d56bb44 100644 --- a/locales/messages.po +++ b/locales/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-04-21 17:36+0200\n" +"POT-Creation-Date: 2008-04-24 09:43+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,7 +18,7 @@ msgstr "" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: ../../../about.php:25 ../../../templates/toolbar.inc.php:16 -#: ../../../templates/toolbar.inc.php:24 +#: ../../../templates/toolbar.inc.php:25 msgid "About" msgstr "" @@ -244,7 +244,7 @@ msgid "The details you have entered are incorrect. Please try again." msgstr "" #: ../../../login.php:48 ../../../templates/login.tpl.php:26 -#: ../../../templates/toolbar.inc.php:25 +#: ../../../templates/toolbar.inc.php:26 msgid "Log In" msgstr "" @@ -300,6 +300,7 @@ msgstr "" #: ../../../templates/sidebar.block.common.php:9 #: ../../../templates/sidebar.block.popular.php:15 #: ../../../templates/sidebar.block.recent.php:30 +#: ../../../templates/toolbar.inc.php:24 msgid "Popular Tags" msgstr "" @@ -364,7 +365,7 @@ msgid "Registration failed. Please try again." msgstr "" #: ../../../register.php:66 ../../../templates/register.tpl.php:41 -#: ../../../templates/toolbar.inc.php:26 +#: ../../../templates/toolbar.inc.php:27 msgid "Register" msgstr "" @@ -980,18 +981,13 @@ msgstr "" msgid "Linked Tags" msgstr "" -#: ../../../templates/sidebar.block.linked.php:44 -#: ../../../templates/sidebar.block.menu.php:31 -msgid "all tags" -msgstr "" - #: ../../../templates/sidebar.block.linked.php:55 -#: ../../../templates/sidebar.block.menu.php:42 +#: ../../../templates/sidebar.block.menu.php:40 msgid "Add new link" msgstr "" #: ../../../templates/sidebar.block.linked.php:56 -#: ../../../templates/sidebar.block.menu.php:43 +#: ../../../templates/sidebar.block.menu.php:41 msgid "Delete link" msgstr "" @@ -1004,8 +1000,12 @@ msgstr "" msgid "Menu Tags" msgstr "" -#: ../../../templates/sidebar.block.menu.php:31 -msgid "See all tags" +#: ../../../templates/sidebar.block.menu.php:60 +msgid "See all your tags" +msgstr "" + +#: ../../../templates/sidebar.block.menu.php:60 +msgid "all your tags" msgstr "" #: ../../../templates/sidebar.block.recent.php:15 diff --git a/services/searchhistoryservice.php b/services/searchhistoryservice.php index 7389906..bf678cf 100644 --- a/services/searchhistoryservice.php +++ b/services/searchhistoryservice.php @@ -43,7 +43,7 @@ class SearchHistoryService { } } - function getAllSearches($range = NULL, $uId = NULL, $nb = NULL, $start = NULL, $distinct = false) { + function getAllSearches($range = NULL, $uId = NULL, $nb = NULL, $start = NULL, $distinct = false, $withResults = false) { $sql = 'SELECT DISTINCT(shTerms), shId, shRange, shNbResults, shDatetime, uId'; $sql.= ' FROM '. $this->getTableName(); $sql.= ' WHERE 1=1'; @@ -55,6 +55,9 @@ class SearchHistoryService { if($uId != NULL) { $sql.= ' AND uId = '.$uId; } + if($withResults = true) { + $sql.= ' AND shNbResults > 0'; + } if($distinct) { $sql.= ' GROUP BY shTerms'; } diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index dfcf1c7..9277083 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -235,7 +235,19 @@ window.onload = playerLoad; $bnext = ''. T_('Next') .''; $blast = ''. T_('Last') ."\n"; } - echo '

'. $bfirst .' / '. $bprev .' / '. $bnext .' / '. $blast .' / '. sprintf(T_('Page %d of %d'), $page, $totalpages) ."

\n"; + + // RSS + $brss = ''; + $size = count($rsschannels); + for ($i = 0; $i < $size; $i++) { + $brss = ''. $rsschannels[$i][0] .''; + } + + echo '

'. $bfirst .' / '. $bprev .' / '. $bnext .' / '. $blast .' / '. sprintf(T_('Page %d of %d'), $page, $totalpages) ." ". $brss ."

\n"; + + + + } else { echo '

'.T_('No bookmarks available').'

'; } diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php index 3101431..b4c74ba 100644 --- a/templates/editbookmark.tpl.php +++ b/templates/editbookmark.tpl.php @@ -112,7 +112,7 @@ if (window.getSelection) { } document.write('