]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface fix: enable sorting bookmarks asc or desc; improve navigation links
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Fri, 9 May 2008 07:29:50 +0000 (07:29 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Fri, 9 May 2008 07:29:50 +0000 (07:29 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@119 b3834d28-1941-0410-a4f8-b48e95affb8f

index.php
locales/fr_FR/LC_MESSAGES/messages.mo
locales/fr_FR/LC_MESSAGES/messages.po
locales/messages.po
templates/bookmarks.tpl.php
templates/sidebar.block.menu.php
templates/sidebar.block.users.php

index 41b1a0549c0ce3cd4033adfeb9a6a142c7692caf..a4ce6a7b8e1815683629588c6ed2e093ede47056 100644 (file)
--- a/index.php
+++ b/index.php
@@ -71,7 +71,7 @@ $tplVars['popCount'] = 30;
 $tplVars['sidebar_blocks'] = $GLOBALS["index_sidebar_blocks"];
 $tplVars['range'] = 'all';
 $tplVars['pagetitle'] = T_('Store, share and tag your favourite links');
-$tplVars['subtitle'] = T_('Recent Bookmarks');
+$tplVars['subtitle'] = T_('All Bookmarks');
 $tplVars['bookmarkCount'] = $start + 1;
 $bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, NULL, NULL, NULL, getSortOrder(), NULL, 0, $dtend);
 $tplVars['total'] = $bookmarks['total'];
index 384f10f2535a792ba44cfc6ea03114b918db41a2..56cfc7cf809f7b730979c77f976d3f01a559dd4d 100644 (file)
Binary files a/locales/fr_FR/LC_MESSAGES/messages.mo and b/locales/fr_FR/LC_MESSAGES/messages.mo differ
index 0a213fec12b70a4bfbb1d57b17cd86e4d8d17e5d..d317dd8e5ff2ac60bee2fb85f58a79babe5c766c 100644 (file)
@@ -8,8 +8,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Scuttle\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-04-24 09:43+0200\n"
-"PO-Revision-Date: 2008-04-24 09:47+0100\n"
+"POT-Creation-Date: 2008-04-24 19:03+0200\n"
+"PO-Revision-Date: 2008-04-24 19:07+0100\n"
 "Last-Translator: BenjaminHKB <benjamin.huynh-kim-bang@loria.fr>\n"
 "Language-Team: fr-FR <toony.sf@chezouam.net>\n"
 "MIME-Version: 1.0\n"
@@ -226,8 +226,8 @@ msgid "Store, share and tag your favourite links"
 msgstr "Conservez, partagez et taggez vos liens favoris"
 
 #: ../../../index.php:74
-msgid "Recent Bookmarks"
-msgstr "Signets récents"
+msgid "All Bookmarks"
+msgstr "Tous les signets"
 
 #: ../../../jsScuttle.php:22
 #: ../../../templates/tag2tagadd.tpl.php:21
@@ -316,6 +316,7 @@ msgstr "Mot de passe oublié"
 #: ../../../populartags.php:49
 #: ../../../templates/dynamictags.inc.php:101
 #: ../../../templates/sidebar.block.common.php:9
+#: ../../../templates/sidebar.block.menu.php:68
 #: ../../../templates/sidebar.block.popular.php:15
 #: ../../../templates/sidebar.block.recent.php:30
 #: ../../../templates/toolbar.inc.php:24
@@ -398,7 +399,7 @@ msgstr "Signets ajoutés récemment à %s"
 #: ../../../search.inc.php:13
 #: ../../../search.inc.php:41
 msgid "Search"
-msgstr "Chercher"
+msgstr "Chercher dans"
 
 #: ../../../search.inc.php:19
 msgid "this user's bookmarks"
@@ -692,12 +693,12 @@ msgstr "Suivant"
 msgid "Last"
 msgstr "Dernière"
 
-#: ../../../templates/bookmarks.tpl.php:238
+#: ../../../templates/bookmarks.tpl.php:246
 #, php-format
 msgid "Page %d of %d"
 msgstr "Page %d de %d"
 
-#: ../../../templates/bookmarks.tpl.php:240
+#: ../../../templates/bookmarks.tpl.php:252
 msgid "No bookmarks available"
 msgstr "Pas de signets disponibles."
 
@@ -1004,16 +1005,29 @@ msgstr "Tags inclus dans le tag '%s'"
 
 #: ../../../templates/sidebar.block.menu.php:29
 msgid "Menu Tags"
-msgstr "Menu Tags"
+msgstr "Tags Menu"
 
-#: ../../../templates/sidebar.block.menu.php:60
+#: ../../../templates/sidebar.block.menu.php:62
 msgid "See all your tags"
 msgstr "Voir tous vos tags"
 
-#: ../../../templates/sidebar.block.menu.php:60
+#: ../../../templates/sidebar.block.menu.php:62
 msgid "all your tags"
 msgstr "Tous vos tags"
 
+#: ../../../templates/sidebar.block.menu.php:64
+msgid "See all tags from this user"
+msgstr "Voir tous les tags de cet utilisateur"
+
+#: ../../../templates/sidebar.block.menu.php:64
+msgid "all tags from this user"
+msgstr "tous les tags de cet utilisateur"
+
+#: ../../../templates/sidebar.block.menu.php:68
+#, fuzzy
+msgid "See popular tags"
+msgstr "Voir tous vos tags"
+
 #: ../../../templates/sidebar.block.recent.php:15
 msgid "Recent Tags"
 msgstr "Tags récents"
@@ -1043,6 +1057,15 @@ msgstr "Derniers utilisateurs"
 msgid "bookmarks"
 msgstr "signets"
 
+#: ../../../templates/sidebar.block.users.php:29
+#, fuzzy
+msgid "See all users"
+msgstr "Voir tous vos tags"
+
+#: ../../../templates/sidebar.block.users.php:29
+msgid "All users"
+msgstr "Tous les utilisateurs"
+
 #: ../../../templates/sidebar.block.watchstatus.php:10
 msgid "Remove from Watchlist"
 msgstr "Enlever de la liste des consultés"
@@ -1059,15 +1082,15 @@ msgstr "Editer un lien"
 msgid "Synonyms:"
 msgstr "Synonymes :"
 
-#: ../../../templates/tag2tagadd.tpl.php:10
+#: ../../../templates/tag2tagadd.tpl.php:12
+msgid "Create new link:"
+msgstr "Créer un nouveau lien"
+
+#: ../../../templates/tag2tagadd.tpl.php:19
 #, php-format
 msgid "Note: include a tag into '%s' tag (e.g. %s>countries) display the tag into the menu box"
 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:"
-msgstr "Créer un nouveau lien"
-
 #: ../../../templates/tag2tagadd.tpl.php:23
 #: ../../../templates/tag2tagedit.tpl.php:37
 msgid "Create"
@@ -1127,6 +1150,8 @@ msgstr "Profil"
 msgid "created in"
 msgstr "Créé en "
 
+#~ msgid "Recent Bookmarks"
+#~ msgstr "Signets récents"
 #~ msgid "plus"
 #~ msgstr "plus"
 #~ msgid ""
index d56bb44b5ed5c919791596c85744bd0df386f763..4184184d3a30d9d4ba7903a187e34c10c3614565 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-04-24 09:43+0200\n"
+"POT-Creation-Date: 2008-04-24 19:03+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -208,7 +208,7 @@ msgid "Store, share and tag your favourite links"
 msgstr ""
 
 #: ../../../index.php:74
-msgid "Recent Bookmarks"
+msgid "All Bookmarks"
 msgstr ""
 
 #: ../../../jsScuttle.php:22 ../../../templates/tag2tagadd.tpl.php:21
@@ -298,6 +298,7 @@ msgstr ""
 
 #: ../../../populartags.php:49 ../../../templates/dynamictags.inc.php:101
 #: ../../../templates/sidebar.block.common.php:9
+#: ../../../templates/sidebar.block.menu.php:68
 #: ../../../templates/sidebar.block.popular.php:15
 #: ../../../templates/sidebar.block.recent.php:30
 #: ../../../templates/toolbar.inc.php:24
@@ -672,12 +673,12 @@ msgstr ""
 msgid "Last"
 msgstr ""
 
-#: ../../../templates/bookmarks.tpl.php:238
+#: ../../../templates/bookmarks.tpl.php:246
 #, php-format
 msgid "Page %d of %d"
 msgstr ""
 
-#: ../../../templates/bookmarks.tpl.php:240
+#: ../../../templates/bookmarks.tpl.php:252
 msgid "No bookmarks available"
 msgstr ""
 
@@ -1000,14 +1001,26 @@ msgstr ""
 msgid "Menu Tags"
 msgstr ""
 
-#: ../../../templates/sidebar.block.menu.php:60
+#: ../../../templates/sidebar.block.menu.php:62
 msgid "See all your tags"
 msgstr ""
 
-#: ../../../templates/sidebar.block.menu.php:60
+#: ../../../templates/sidebar.block.menu.php:62
 msgid "all your tags"
 msgstr ""
 
+#: ../../../templates/sidebar.block.menu.php:64
+msgid "See all tags from this user"
+msgstr ""
+
+#: ../../../templates/sidebar.block.menu.php:64
+msgid "all tags from this user"
+msgstr ""
+
+#: ../../../templates/sidebar.block.menu.php:68
+msgid "See popular tags"
+msgstr ""
+
 #: ../../../templates/sidebar.block.recent.php:15
 msgid "Recent Tags"
 msgstr ""
@@ -1037,6 +1050,14 @@ msgstr ""
 msgid "bookmarks"
 msgstr ""
 
+#: ../../../templates/sidebar.block.users.php:29
+msgid "See all users"
+msgstr ""
+
+#: ../../../templates/sidebar.block.users.php:29
+msgid "All users"
+msgstr ""
+
 #: ../../../templates/sidebar.block.watchstatus.php:10
 msgid "Remove from Watchlist"
 msgstr ""
@@ -1053,17 +1074,17 @@ msgstr ""
 msgid "Synonyms:"
 msgstr ""
 
-#: ../../../templates/tag2tagadd.tpl.php:10
+#: ../../../templates/tag2tagadd.tpl.php:12
+msgid "Create new link:"
+msgstr ""
+
+#: ../../../templates/tag2tagadd.tpl.php:19
 #, php-format
 msgid ""
 "Note: include a tag into '%s' tag (e.g. %s>countries) display the tag into "
 "the menu box"
 msgstr ""
 
-#: ../../../templates/tag2tagadd.tpl.php:13
-msgid "Create new link:"
-msgstr ""
-
 #: ../../../templates/tag2tagadd.tpl.php:23
 #: ../../../templates/tag2tagedit.tpl.php:37
 msgid "Create"
index 927708306683d6c77830677f470cd1176c02f630..6a778bbb22dfb11e7e4290bb1ae33450758f760b 100644 (file)
@@ -63,12 +63,17 @@ window.onload = playerLoad;
 <p id="sort">
     <?php echo $total.' '.T_("bookmark(s)"); ?> - 
     <?php echo T_("Sort by:"); ?>
-    <a href="?sort=date_desc"><?php echo T_("Date"); ?></a><span> / </span>
-    <a href="?sort=title_asc"><?php echo T_("Title"); ?></a><span> / </span>
+    <?php
+       $dateSort = (getSortOrder()=='date_desc')? 'date_asc':'date_desc';
+       $titleSort = (getSortOrder()=='title_asc')? 'title_desc':'title_asc';
+       $urlSort = (getSortOrder()=='url_asc')? 'url_desc':'url_asc';
+    ?>
+    <a href="?sort=<?php echo $dateSort ?>"><?php echo T_("Date"); ?></a><span> / </span>
+    <a href="?sort=<?php echo $titleSort ?>"><?php echo T_("Title"); ?></a><span> / </span>
     <?php
     if (!isset($hash)) {
     ?>
-    <a href="?sort=url_asc"><?php echo T_("URL"); ?></a>
+    <a href="?sort=<?php echo $urlSort ?>"><?php echo T_("URL"); ?></a>
     <?php
     }
     ?>
index de4f0f7640b91f6a6affd40db511d09ab4c7970a..0c7087a8ff7fd8d99c264edc9240367e92f0b25e 100644 (file)
@@ -57,8 +57,16 @@ if (sizeof($menuTags) > 0 || ($userid != 0 && $userid === $logged_on_userid)) {
 </table>
 
 <?php $cUser = $userservice->getUser($userid); ?>
+<?php if($userid>0): ?>
+<?php if($userid==$logged_on_userid): ?>
 <p style="text-align:right"><a href="<?php echo createURL('alltags', $cUser['username']); ?>" title="<?php echo T_('See all your tags')?>"><?php echo T_('all your tags'); ?></a> &rarr;</p>
+<?php else: ?>
+<p style="text-align:right"><a href="<?php echo createURL('alltags', $cUser['username']); ?>" title="<?php echo T_('See all tags from this user')?>"><?php echo T_('all tags from this user'); ?></a> &rarr;</p>
+<?php endif; ?>
 
+<?php else : ?>
+<p style="text-align:right"><a href="<?php echo createURL('populartags', $cUser['username']); ?>" title="<?php echo T_('See popular tags')?>"><?php echo T_('Popular Tags'); ?></a> &rarr;</p>
+<?php endif; ?>
 </div>
 
 <?php
index 813c163fcfc04e8bdf9d54d3ab1ca69befad3501..7c61acc32ce7e8d24c677c5d48c5722e3c360c23 100644 (file)
@@ -22,10 +22,11 @@ foreach ($lastUsers as $row) {
     echo ' (<a href="'.createURL('bookmarks', $row['username']).'">'.T_('bookmarks').'</a>)';
     echo '</td></tr>';
 }
-echo '<tr><td><a href="'.createURL('users').'">...</a></td></tr>';
+//echo '<tr><td><a href="'.createURL('users').'">...</a></td></tr>';
 ?>
 
 </table>
+<p style="text-align:right"><a href="<?php echo createURL('users'); ?>" title="<?php echo T_('See all users')?>"><?php echo T_('All users'); ?></a> &rarr;</p>
 </div>
 <?php
 }