From 1cb12a6a8dc4279e97f2f6ce8f807076b2389114 Mon Sep 17 00:00:00 2001 From: MichaelDaum Date: Tue, 29 Jan 2019 10:44:50 +0100 Subject: [PATCH] Item14813: add FAVBUTTON to ease bookmarking Item14693: depend on new TopicTitlePlugin * add solr index handler to make individual list entries searchable * add importer to convert ...LeftBar topics to listies * docu dynamic listies in wiki apps --- .gitignore | 2 + data/System/ListyPlugin.txt | 145 ++++- lib/Foswiki/Plugins/ListyPlugin.pm | 82 ++- lib/Foswiki/Plugins/ListyPlugin/Core.pm | 528 +++++++++++++++--- lib/Foswiki/Plugins/ListyPlugin/DEPENDENCIES | 3 +- lib/Foswiki/Plugins/ListyPlugin/MANIFEST | 7 + locale/ListyPlugin/Foswiki.pot | 62 +- locale/ListyPlugin/bg.po | 62 +- locale/ListyPlugin/cs.po | 63 ++- locale/ListyPlugin/da.po | 63 ++- locale/ListyPlugin/de.po | 63 ++- locale/ListyPlugin/el.po | 64 ++- locale/ListyPlugin/es.po | 64 ++- locale/ListyPlugin/fi.po | 63 ++- locale/ListyPlugin/fr.po | 62 +- locale/ListyPlugin/it.po | 68 ++- locale/ListyPlugin/ja.po | 62 +- locale/ListyPlugin/ko.po | 62 +- locale/ListyPlugin/nl.po | 64 ++- locale/ListyPlugin/no.po | 63 ++- locale/ListyPlugin/pl.po | 63 ++- locale/ListyPlugin/pt-br.po | 63 ++- locale/ListyPlugin/pt.po | 63 ++- locale/ListyPlugin/ru.po | 63 ++- locale/ListyPlugin/sv.po | 64 ++- locale/ListyPlugin/tlh.po | 64 ++- locale/ListyPlugin/tr.po | 64 ++- locale/ListyPlugin/uk.po | 68 ++- locale/ListyPlugin/zh-cn.po | 63 ++- locale/ListyPlugin/zh-tw.po | 68 ++- pub/System/ListyPlugin/Makefile | 2 +- pub/System/ListyPlugin/i18n/de.js | 6 +- pub/System/ListyPlugin/i18n/en.js | 4 +- .../jquery.favbutton.uncompressed.js | 251 +++++++++ .../ListyPlugin/jquery.listy.uncompressed.css | 18 + .../ListyPlugin/jquery.listy.uncompressed.js | 156 +++--- templates/listyplugin.tmpl | 9 +- 37 files changed, 2025 insertions(+), 716 deletions(-) create mode 100644 pub/System/ListyPlugin/jquery.favbutton.uncompressed.js diff --git a/.gitignore b/.gitignore index 0a3a9f0..82a715c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.gz *.swp pub/System/ListyPlugin/jquery.listy.js +pub/System/ListyPlugin/jquery.favbutton.js pub/System/ListyPlugin/jquery.listy.css /ListyPlugin.md5 /ListyPlugin.sha1 @@ -10,3 +11,4 @@ pub/System/ListyPlugin/jquery.listy.css /ListyPlugin.zip /ListyPlugin_installer /ListyPlugin_installer.pl +locale/**/*mo diff --git a/data/System/ListyPlugin.txt b/data/System/ListyPlugin.txt index 4b1d751..4e40dc9 100644 --- a/data/System/ListyPlugin.txt +++ b/data/System/ListyPlugin.txt @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="micha" comment="reprev" date="1443685357" format="1.1" reprev="10" version="10"}% +%META:TOPICINFO{author="ProjectContributor" comment="" date="1548755206" format="1.1" version="1"}% ---+!! %TOPIC% %FORMFIELD{"Description"}% @@ -22,7 +22,7 @@ same collection can be stored in separate topics. ---++ Usage ----+++ Simple +---+++ Create a Listy Just type @@ -45,6 +45,17 @@ To store "My Links" of the currently logged in user, use: This will store the set of links organized by this widget into the user's profile page and have them in a "mylinks" collection. +---+++ Favorites button + +The =%FAVBUTTON= macro lets add a topic to a listy. By default it adds the current topic to your "mylinks" collections (see above): + + +%FAVBUTTON% + + +Note that any "mylinks" listy on the same page will automatically be updated as you click on the favbutton. Clicking on it again +will remove it from the listy again. + ---+++ Scrum Board (with the help of [[Foswiki:Extensions/GridLayoutPlugin][GridLayoutPlugin]]) @@ -75,6 +86,62 @@ This will display three listies next to each other, a "todo", an "inprogress" and a "done" listy. You will be able to create entries for each listy, assign them to one of the collections and move them around using drag and drop. +---+++ Dynamic Listies + +Listy entries may be generated based on a query over topics, for instance topics that have some kind of =TaskForm= attached to it: + + +| *Name* | *Type* | *Size* | *Values* | *Description* | *Attributes* | *Default* | +| Summary | text | 80 | | | | | +| Owner | text | 20 | | | | | +| Status | radio | 5 | created, todo, inprogress, done | | | created | + + +Tasks are created as part of a wiki application and them might be managed using a scrum board extending above example: + + +%BEGINGRID{gutter="1" border="off"}% +%BEGINCOL{"3"}% +---++ Backlog +%LISTY{"created" + collections="created, todo, inprogress, done" + type="query" + query="form='TaskForm' AND ! Status=~'\b(todo|inprogress|done)\b'" + collection_formfield="Status" +}% +%BEGINCOL{"3"}% +---++ Todo +%LISTY{ + "todo" + collections="created, todo, inprogress, done" + type="query" + query="form='TaskForm' AND Status='\btodo\b'" + collection_formfield="Status" +}% +%BEGINCOL{"3"}% +---++ In progress +%LISTY{ + "inprogress" + collections="created, todo, inprogress, done" + type="query" + query="form='TaskForm' AND Status='\binprogress\b'" + collection_formfield="Status" +}% +%BEGINCOL{"3"}% +---++ Done +%LISTY{ + "done" + collections="created, todo, inprogress, done" + type="query" + query="form='TaskForm' AND Status='\bdone\b'" + collection_formfield="Status" +}% +%ENDGRID% + + +Note that each listy is of =type="query"= and thus prefilled by entries that refer to the found topics. The parameter =collection_formfield="Status"= then informs the listy +to alter the =Status= formfield of the related topic while an entry is dragged from one listy to the next. + ---+++ Custom formatting A listy can be integrated in a wiki application specifying a customized formatting for each listy item. Below @@ -107,17 +174,18 @@ renders each topic in a listy by displaying an image and part of its [[%SYSTEMWE ---++ Syntax +---+++ LISTY =%LISTY{"<collection>" ...}%= | *Parameter* | *Description* | *Default* | -| =topic= | | =%BASETOPIC%= | +| =topic= | location where all entries of this listy are stored | =%BASETOPIC%= | | =collection= | the collection ID, can be just any string; leave it empty to refer to the "default" collection | =<empty>= | | =collections= | list of known collections stored at =topic=; this lets you move a listy item between collectiosn without having a drag'n drop | | | =collection_formfield= | name of a formfield to be altered when dragging topic listies among collections | | | =collection_value= | value to set a topic item's formfield to | collection | | =hidenull= | boolean flag to hide the listy when there are no items in it | =false= | | =showcollections= | boolean flag to show/hide the collections select box in the item editor | =true= | -| =sort= | sort listies using the specified property; possible values are =index=, =title=, =summary=, =date= | =index= | +| =sort= | sort listies using the specified property; possible values are =index=, =title=, =summary=, =date=, =topictitle= | =index= | | =reverse= | boolean flag to reverse the sorting order as specified in =sort= | =off= | | =types= | specify types of listy items, possible values are =topic=, =text=, =external= | =topic, text, external= | | =autosave= | boolean flag to enable/disable saving changes automatically on every action; if switched off you will need to hit the "save" button to make any changes to the listy permanent; if switched on (default) any change will be stored immediately | =true= | @@ -165,6 +233,69 @@ There are a couple of additional variables that are used in the =listyplugin.tmp | =$listyID= | id of the current listy | | =$tml= | url-escaped TML used to render this listy; this is used to re-render the widget after an update | +---+++ FAVBUTTON +=%FAVBUTTON{...}= + +| *Parameter* | *Description* | *Default* | +| ="..."= or =source= | topic to be added to the listy | current user's profile page | +| =web=, =topic= | topic to be added to the list | current topic | +| =collection= | name of the listy collection to add the favorite to | mylisty | +| =favtext= | button text to be displayed when the source topic has not been favorited yet | %MAKETEXT{"Favorite"}% | +| =favicon= | button icon | fa-star-o | +| =favtitle= | button tooltip | %MAKETEXT{"Add to favorites"}% | +| =unfavtext= | button text to be displayed when the source topic has been favorited | %MAKETEXT{"Unavorite"}% | +| =unfavicon= | button icon | fa-star | +| =unfavtitle= | button tooltip | %MAKETEXT{"Remove from favorites"}% | +| =class= | css class to be added to the button element | | +| =style= | css styles to be added to the button element | | +| =animate= | animation to be added to the button, see [[%SYSTEMWEB%.VarJQICON]] | | +| =showlabel= | boolean flag to show/hide the button label | on | +| =showicon= | boolean flag to show/hide the button icon | on | + +Example: + + +%FAVBUTTON{ + showlabel="off" + favicon="fa-heart-o" + unfavicon="fa-heart" + class="foswikiLarge foswikiAlert" +}% + + +
+%FAVBUTTON{ + showlabel="off" + favicon="fa-thumbs-o-up" + unfavicon="fa-thumbs-up" + class="foswikiLarge foswikiAlert" +}% +
+ +---++ Importing standard =...LeftBar= + +A standard Foswiki installation using !PatternSkin allows to store a custom sidebar for each user into a separate =...LeftBar= topic for each user. +These can be converted to a setup based on !ListyPlugin that stores those links into personal =mylinks= using a REST handler of the !ListyPlugin. +Use the following commandline: + + +cd +./rest /ListyPlugin/importSideBar param=value ... + + +| *Parameter* | *Description* | *Default* | +| =web= | user web to search for =...LeftBar= topics | %USERSWEB% | +| =suffix= | suffix of topics to search for | LeftBar | +| =include= | regular expressions of topics to include in the conversion process | | +| =exclude= | regular expressions of topics to prevent from being processed | | +| =debug= | boolean flag to enable debug outout | off | +| =verbose= | boolean flag to enable verbose progress output | off | +| =target= | target web to store create listy entries | %USERSWEB% | +| =collection= | collection name to store entries to | mylinks | + +Note that the conversion process tries to clean up as good as possible entries in the ...LeftBar topics. However, as this is a free-form +topic any kind of content may be found, only some of it may be converted into a listy. + ---++ Installation Instructions %$INSTALL_INSTRUCTIONS% @@ -174,6 +305,10 @@ There are a couple of additional variables that are used in the =listyplugin.tmp ---++ Change History %TABLE{columnwidths="7em" tablewidth="100%"}% +| 29 Jan 2019: | added =%FAVBUTTON= macro; \ + added solr index handler to make individual listy entries searchable; \ + depend on !TopicTitlePlugin now | +| 02 Feb 2017: | added sidebar importer that allows to convert a WikiUserLeftBar to a listy | | 23 Jan 2017: | new features: populate listies using a search query; \ change formfields of a topic behind a listy item drag&droping them between listies | | 22 Sep 2015: | first final relase | @@ -187,7 +322,7 @@ There are a couple of additional variables that are used in the =listyplugin.tmp %META:FIELD{name="Release" title="Release" value="%25$RELEASE%25"}% %META:FIELD{name="Description" title="Description" value="%25$SHORTDESCRIPTION%25"}% %META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/ListyPlugin"}% -%META:FIELD{name="Copyright" title="Copyright" value="© 2015-2017 Michael Daum http://michaeldaumconsulting.com"}% +%META:FIELD{name="Copyright" title="Copyright" value="© 2015-2019 Michael Daum http://michaeldaumconsulting.com"}% %META:FIELD{name="License" title="License" value="[[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]]"}% %META:FIELD{name="Home" title="Home" value="https://foswiki.org/Extensions/ListyPlugin"}% %META:FIELD{name="Support" title="Support" value="Foswiki:Support/ListyPlugin"}% diff --git a/lib/Foswiki/Plugins/ListyPlugin.pm b/lib/Foswiki/Plugins/ListyPlugin.pm index e33a1c5..7718a78 100644 --- a/lib/Foswiki/Plugins/ListyPlugin.pm +++ b/lib/Foswiki/Plugins/ListyPlugin.pm @@ -1,6 +1,6 @@ # Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ # -# ListyPlugin is Copyright (C) 2015-2017 Michael Daum http://michaeldaumconsulting.com +# ListyPlugin is Copyright (C) 2015-2019 Michael Daum http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -28,8 +28,8 @@ use Foswiki::Func (); use Foswiki::Plugins (); use Foswiki::Contrib::JsonRpcContrib (); -our $VERSION = '2.00'; -our $RELEASE = '23 Jan 2017'; +our $VERSION = '3.00'; +our $RELEASE = '29 Jan 2019'; our $SHORTDESCRIPTION = 'Fancy list manager'; our $NO_PREFS_IN_TOPIC = 1; our $core; @@ -44,27 +44,57 @@ our $core; sub initPlugin { Foswiki::Func::registerTagHandler('LISTY', \&LISTY); - - Foswiki::Contrib::JsonRpcContrib::registerMethod("ListyPlugin", "saveListyItem", sub { - my $session = shift; - return getCore($session)->jsonRpcSaveListyItem(@_); - }); - - Foswiki::Contrib::JsonRpcContrib::registerMethod("ListyPlugin", "deleteListyItem", sub { - my $session = shift; - return getCore($session)->jsonRpcDeleteListyItem(@_); - }); - - Foswiki::Contrib::JsonRpcContrib::registerMethod("ListyPlugin", "saveListy", sub { - my $session = shift; - return getCore($session)->jsonRpcSaveListy(@_); - }); + Foswiki::Func::registerTagHandler('FAVBUTTON', \&FAVBUTTON); + + Foswiki::Contrib::JsonRpcContrib::registerMethod( + "ListyPlugin", + "saveListyItem", + sub { + my $session = shift; + return getCore($session)->jsonRpcSaveListyItem(@_); + } + ); + + Foswiki::Contrib::JsonRpcContrib::registerMethod( + "ListyPlugin", + "deleteListyItem", + sub { + my $session = shift; + return getCore($session)->jsonRpcDeleteListyItem(@_); + } + ); + + Foswiki::Contrib::JsonRpcContrib::registerMethod( + "ListyPlugin", + "saveListy", + sub { + my $session = shift; + return getCore($session)->jsonRpcSaveListy(@_); + } + ); + + Foswiki::Func::registerRESTHandler( + 'importSideBar', + sub { + my $session = shift; + return getCore($session)->restImportSideBar(@_); + }, + authenticate => 1, + validate => 0, + http_allow => 'GET,POST', + ); if ($Foswiki::Plugins::VERSION > 2.0) { my $metaDataName = $Foswiki::cfg{ListyPlugin}{MetaData} || 'LISTY'; - Foswiki::Meta::registerMETA($metaDataName, alias => lc($metaDataName), many => 1); + Foswiki::Func::registerMETA($metaDataName, alias => lc($metaDataName), many => 1); } + if ($Foswiki::cfg{Plugins}{SolrPlugin} && $Foswiki::cfg{Plugins}{SolrPlugin}{Enabled}) { + require Foswiki::Plugins::SolrPlugin; + Foswiki::Plugins::SolrPlugin::registerIndexTopicHandler(sub { + return getCore()->solrIndexTopicHandler(@_); + }); + } return 1; } @@ -86,7 +116,7 @@ sub finishPlugin { =cut sub getCore { - my $session = shift; + my $session = shift || $Foswiki::Plugins::SESSION; unless (defined $core) { require Foswiki::Plugins::ListyPlugin::Core; @@ -111,5 +141,17 @@ sub LISTY { return getCore($session)->LISTY(@_); } +=begin TML + +---++ FAVBUTTON($session, $params, $theTopic, $theWeb) -> $string + +stub for FAVBUTTON to initiate the core before handling the macro + +=cut + +sub FAVBUTTON { + my $session = shift; + return getCore($session)->FAVBUTTON(@_); +} 1; diff --git a/lib/Foswiki/Plugins/ListyPlugin/Core.pm b/lib/Foswiki/Plugins/ListyPlugin/Core.pm index 2ba86f7..a392f73 100644 --- a/lib/Foswiki/Plugins/ListyPlugin/Core.pm +++ b/lib/Foswiki/Plugins/ListyPlugin/Core.pm @@ -1,6 +1,6 @@ # Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ # -# ListyPlugin is Copyright (C) 2015-2017 Michael Daum http://michaeldaumconsulting.com +# ListyPlugin is Copyright (C) 2015-2019 Michael Daum http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -87,6 +87,7 @@ sub new { $this->{itemFormat}{external} = Foswiki::Func::expandTemplate("listy::item::external") || ''; $this->{itemFormat}{text} = Foswiki::Func::expandTemplate("listy::item::text") || ''; $this->{itemFormat}{query} = Foswiki::Func::expandTemplate("listy::item::query") || ''; + $this->{favButton} = Foswiki::Func::expandTemplate("listy::favbutton") || ''; return $this->init($session); } @@ -131,7 +132,7 @@ sub LISTY { my $theCollectionValue = $params->{collection_value} || $theCollection; my $theReverse = Foswiki::Func::isTrue($params->{reverse}, 0); my $theSort = $params->{sort}; - $theSort = "index" if !defined($theSort) || $theSort !~ /^(index|title|summary|date)$/; + $theSort = "index" if !defined($theSort) || $theSort !~ /^(index|title|summary|date|topictitle)$/; my $theTypes = $params->{type} || $params->{types} ||'text, topic, external'; @@ -178,15 +179,28 @@ sub LISTY { @listyItems = grep {$_->{collection} eq $theCollection} grep {$types{$_->{type}}} @listyItems; + my %order = (); + my $isNumeric = 0; if ($theSort eq 'index') { - @listyItems = sort {$a->{index} <=> $b->{index}} @listyItems; + $order{$_->{name}} = $_->{index} foreach @listyItems; + $isNumeric = 1; } elsif ($theSort eq 'date') { - @listyItems = sort {$a->{date} <=> $b->{date}} @listyItems; + $order{$_->{name}} = $_->{date} foreach @listyItems; + $isNumeric = 1; } elsif ($theSort eq 'title') { - @listyItems = sort {$a->{title} cmp $b->{title}} @listyItems; + $order{$_->{name}} = $_->{title} foreach @listyItems; + } elsif ($theSort eq 'topictitle') { + $order{$_->{name}} = Foswiki::Func::getTopicTitle($_->{web}, $_->{topic}) foreach @listyItems; } else { - @listyItems = sort {lc($a->{$theSort}||$a->{topic}||$a->{url}||$a->{title}) cmp lc($b->{$theSort}||$b->{topic})||$b->{url}||$b->{title}} @listyItems; + $order{$_->{name}} = lc($a->{$theSort}||$a->{topic}||$a->{url}||$a->{title}) foreach @listyItems; } + + if ($isNumeric) { + @listyItems = sort {$order{$a->{name}} <=> $order{$b->{name}}} @listyItems; + } else { + @listyItems = sort {$order{$a->{name}} cmp $order{$b->{name}}} @listyItems; + } + @listyItems = reverse @listyItems if $theReverse; #print STDERR "listy ($theSort, $theCollection): ".join(',', map {"title=$_->{title}, index=$_->{index}"} @listyItems)."\n"; @@ -214,7 +228,6 @@ sub LISTY { next; } - my $title = ''; my $class = 'jqListyItem'; my $summary = $item->{summary} || ''; my $url = ''; @@ -224,23 +237,21 @@ sub LISTY { ($web, $topic) = Foswiki::Func::normalizeWebTopicName($web, $topic); if ($item->{type} eq 'topic') { - $title = $item->{title} || getTopicTitle($item->{web}, $item->{topic}); $class .= ' jqListyItemTopic'; $class .= ' foswikiCurrentTopicLink' if $item->{web} && $item->{topic} && $this->{baseWeb} eq $item->{web} && $this->{baseTopic} eq $item->{topic}; $url = Foswiki::Func::getScriptUrlPath($web, $topic, "view"); } elsif ($item->{type} eq 'external') { - $title = $item->{title}||$item->{url}; $class .= ' jqListyItemExternal'; $url = $item->{url} || ''; } elsif ($item->{type} eq 'query') { - $title = $item->{title} || getTopicTitle($item->{web}, $item->{topic}); $class .= ' jqListyItemQuery'; $url = Foswiki::Func::getScriptUrlPath($web, $topic, "view"); } else { - $title = $item->{title}; $class .= ' jqListyItemText'; } + my $title = getListyItemTitle($item); + my $itemFormat = $this->_getFormatOfType($params, $item->{type}); $itemFormat = Foswiki::Func::decodeFormatTokens($itemFormat); $itemFormat = Foswiki::Func::expandCommonVariables($itemFormat, $topic, $web); @@ -280,13 +291,17 @@ sub LISTY { if ($params->{buttons}) { if ($params->{buttons} eq 'top') { $topButtons = $buttons; + $topButtons =~ s/\$position/top/g; $bottomButtons = ''; } elsif ($params->{buttons} eq 'both') { $topButtons = $buttons; + $topButtons =~ s/\$position/top/g; $bottomButtons = $buttons; + $bottomButtons =~ s/\$position/bottom/g; } elsif ($params->{buttons} eq 'bottom') { $topButtons = ''; $bottomButtons = $buttons; + $bottomButtons =~ s/\$position/bottom/g; } } else { $bottomButtons = $buttons; @@ -374,6 +389,147 @@ HERE return $result; } +=begin TML + +---++ getListyItemTitle($item) + +returns the title of a listy item depending on its type + +=cut + +sub getListyItemTitle { + my ($item) = @_; + + my $title = ""; + + if ($item->{type} eq 'topic') { + $title = $item->{title} || Foswiki::Func::getTopicTitle($item->{web}, $item->{topic}); + } elsif ($item->{type} eq 'external') { + $title = $item->{title} || $item->{url}; + } elsif ($item->{type} eq 'query') { + $title = $item->{title} || Foswiki::Func::getTopicTitle($item->{web}, $item->{topic}); + } else { + $title = $item->{title}; + } + + return $title; +} + +=begin TML + +---++ FAVBUTTON($this, $params, $theTopic, $theWeb) -> $result + +implementation of this macro + +=cut + +sub FAVBUTTON { + my ($this, $params, $topic, $web) = @_; + + my $wikiName = Foswiki::Func::getWikiName(); + + Foswiki::Plugins::JQueryPlugin::createPlugin("i18n"); + Foswiki::Plugins::JQueryPlugin::createPlugin("jsonrpc"); + + Foswiki::Func::addToZone("script", "LISTY::FAVBUTTON", <<'HERE', "JQUERYPLUGIN::JSONRPC, JQUERYPLUGIN::I18N"); + +HERE + + my $source = $params->{_DEFAULT} || $params->{source} || "$Foswiki::cfg{UsersWebName}.$wikiName"; + my ($sourceWeb, $sourceTopic) = Foswiki::Func::normalizeWebTopicName(undef, $source); + $source = $sourceWeb.'.'.$sourceTopic; + + my ($favWeb, $favTopic) = Foswiki::Func::normalizeWebTopicName($params->{web} || $web, $params->{topic} || $topic); + my $fav = $favWeb.'.'.$favTopic; + + my $collection = $params->{collection} || "mylinks"; + + my $favtext = $params->{favtext} || '%MAKETEXT{"Favorite"}%'; + my $favicon = $params->{favicon} || 'fa-star-o'; + my $favtitle = $params->{favtitle} || '%MAKETEXT{"Add to favorites"}%'; + my $animate = $params->{animate}; + + my @class = (); + push @class, $params->{class} if defined $params->{class}; + + my $unfavtext = $params->{unfavtext} || '%MAKETEXT{"Unfavorite"}%'; + my $unfavicon = $params->{unfavicon} || 'fa-star'; + my $unfavtitle = $params->{unfavtitle} || '%MAKETEXT{"Remove from favorites"}%'; + + $favicon = '%JQICON{"'.$favicon.'"'.(defined $animate?" animate=\"$animate\"":'').'}%' if $favicon =~ /^[a-z\-_]+$/i; + $unfavicon = '%JQICON{"'.$unfavicon.'"'.(defined $animate?" animate=\"$animate\"":'').'}%' if $unfavicon =~ /^[a-z\-_]+$/i; + + my $showLabel = Foswiki::Func::isTrue($params->{showlabel}, 1); + unless ($showLabel) { + $favtext = ''; + $unfavtext = ''; + push @class, "listyFavButtonNoLabel"; + } + + my $showIcon = Foswiki::Func::isTrue($params->{showicon}, 1); + unless ($showIcon) { + $favicon = ''; + $unfavicon = ''; + push @class, "listyFavButtonNoIcon"; + } + + my $class = join(" ", @class); + + my $listyItem = $this->getListyItemOfTopic($sourceWeb, $sourceTopic, $collection, $favWeb, $favTopic); + my $text = $listyItem?$unfavtext:$favtext; + my $icon = $listyItem?$unfavicon:$favicon; + my $title = $listyItem?$unfavtitle:$favtitle; + my $state = $listyItem?'true':'false'; + my $name = $listyItem?$listyItem->{name}:''; + + my $style = $params->{style} || ''; + $style = "style=\"$style\"" if $style; + + my $result = $this->{favButton}; + $result =~ s/\$favtext\b/$favtext/g; + $result =~ s/\$favicon\b/$favicon/g; + $result =~ s/\$favtitle\b/$favtitle/g; + + $result =~ s/\$unfavtext\b/$unfavtext/g; + $result =~ s/\$unfavicon\b/$unfavicon/g; + $result =~ s/\$unfavtitle\b/$unfavtitle/g; + + $result =~ s/\$text\b/$text/g; + $result =~ s/\$icon\b/$icon/g; + $result =~ s/\$title\b/$title/g; + + $result =~ s/\$class\b/$class/g; + $result =~ s/\$source\b/$source/g; + $result =~ s/\$sourcetopic\b/$sourceTopic/g; + $result =~ s/\$sourceweb\b/$sourceWeb/g; + $result =~ s/\$fav\b/$fav/g; + $result =~ s/\$favtopic\b/$favTopic/g; + $result =~ s/\$favweb\b/$favWeb/g; + $result =~ s/\$state\b/$state/g; + $result =~ s/\$collection\b/$collection/g; + $result =~ s/\$style\b/$style/g; + $result =~ s/\$name\b/$name/g; + + return Foswiki::Func::decodeFormatTokens($result); +} + +sub getListyItemOfTopic { + my ($this, $sourceWeb, $sourceTopic, $collection, $web, $topic) = @_; + + my @listyItems = $this->getListyItems($sourceWeb, $sourceTopic); + foreach my $item (@listyItems) { + #print STDERR "... checking listy $item->{web}.$item->{topic}\n"; + if ($item->{type} eq 'topic' && + $item->{collection} eq $collection && + $item->{web} && $item->{web} eq $web && + $item->{topic} && $item->{topic} eq $topic) { + return $item; + } + } + + return; +} + sub _getFormatOfType { my ($this, $params, $type) = @_; @@ -425,7 +581,7 @@ sub _entityDecode { =begin TML ----++ getListyItems($web, $topic) -> @listyItems +---++ getListyItems($web, $topic, $meta) -> @listyItems returns all listy items stored in the given topic @@ -584,7 +740,7 @@ sub jsonRpcSaveListyItem { writeDebug("called jsonRpcSaveListyItem(), topic=$this->{baseWeb}.$this->{baseTopic}, wikiName=$wikiName"); - throw Foswiki::Contrib::JsonRpcContrib::Error(404, "Topic $this->{baseWeb}.$this->{baseTopic} does not exist") + throw Foswiki::Contrib::JsonRpcContrib::Error(404, "Topic does not exist") unless Foswiki::Func::topicExists($this->{baseWeb}, $this->{baseTopic}); throw Foswiki::Contrib::JsonRpcContrib::Error(401, "Access denied") @@ -620,6 +776,18 @@ sub jsonRpcSaveListyItem { return $newListy; } +sub createNewListy { + my ($this, $meta, $collection, @params) = @_; + + return { + date => time(), + name => "id".int(rand(1000)).time(), + collection => $collection, + index => $this->getMaxIndex($meta, $collection), + @params + }; +} + sub _getListyFromRequest { my ($request, $name) = @_; @@ -728,7 +896,7 @@ sub jsonRpcDeleteListyItem { writeDebug("called jsonRpcDeleteListyItem(), topic=$this->{baseWeb}.$this->{baseTopic}, wikiName=$wikiName"); - throw Foswiki::Contrib::JsonRpcContrib::Error(404, "Topic $this->{baseWeb}.$this->{baseTopic} does not exist") + throw Foswiki::Contrib::JsonRpcContrib::Error(404, "Topic does not exist") unless Foswiki::Func::topicExists($this->{baseWeb}, $this->{baseTopic}); throw Foswiki::Contrib::JsonRpcContrib::Error(401, "Access denied") @@ -764,7 +932,7 @@ sub jsonRpcSaveListy { writeDebug("called jsonRpcSaveListy(), topic=$this->{baseWeb}.$this->{baseTopic}, wikiName=$wikiName"); - throw Foswiki::Contrib::JsonRpcContrib::Error(404, "Topic $this->{baseWeb}.$this->{baseTopic} does not exist") + throw Foswiki::Contrib::JsonRpcContrib::Error(404, "Topic does not exist") unless Foswiki::Func::topicExists($this->{baseWeb}, $this->{baseTopic}); throw Foswiki::Contrib::JsonRpcContrib::Error(401, "Access denied") @@ -898,58 +1066,6 @@ sub getMaxIndex { =begin TML -get topic title either by using DBCachePlugin if installed or by reading the PREFs hardcore - -=cut - -sub getTopicTitle { - my ($web, $topic) = @_; - - if (Foswiki::Func::getContext()->{DBCachePluginEnabled}) { - require Foswiki::Plugins::DBCachePlugin; - return Foswiki::Plugins::DBCachePlugin::getTopicTitle($web, $topic); - } - - my ($meta, $text) = Foswiki::Func::readTopic($web, $topic); - - if ($Foswiki::cfg{SecureTopicTitles}) { - my $wikiName = Foswiki::Func::getWikiName(); - return $topic - unless Foswiki::Func::checkAccessPermission('VIEW', $wikiName, $text, $topic, $web, $meta); - } - - # read the formfield value - my $title = $meta->get('FIELD', 'TopicTitle'); - if ($title) { - $title = $title->{value}; - } - - # read the topic preference - unless ($title) { - $title = $meta->get('PREFERENCE', 'TOPICTITLE'); - if ($title) { - $title = $title->{value}; - } - } - - # read the preference - unless ($title) { - Foswiki::Func::pushTopicContext($web, $topic); - $title = Foswiki::Func::getPreferencesValue('TOPICTITLE'); - Foswiki::Func::popTopicContext(); - } - - # default to topic name - $title ||= $topic; - - $title =~ s/\s*$//; - $title =~ s/^\s*//; - - return $title; -} - -=begin TML - reads the listyplugin templates unless already loaded =cut @@ -991,4 +1107,282 @@ sub filterExistingListies { return @result; } +=begin TML + +convert one or multiple sidebar / leftbar topics to listies + +=cut + +sub restImportSideBar { + my ($this) = @_; + + my $request = Foswiki::Func::getRequestObject(); + + my $web = $request->param("web") || $Foswiki::cfg{UsersWebName}; + my $suffix = $request->param("suffix") || 'LeftBar'; + my $include = $request->param("include"); + my $exclude = $request->param("exclude"); + my $debug = Foswiki::Func::isTrue($request->param("debug"), 0); + my $verbose = Foswiki::Func::isTrue($request->param("verbose"), 0); + my $target = $request->param("target") || $Foswiki::cfg{UsersWebName}; + my $collection = $request->param("collection") || 'mylinks'; + + my $matches = Foswiki::Func::searchInWebContent($suffix, $web, undef, {scope => "topic"}); + my $wikiName = Foswiki::Func::getWikiName(); + + my $index = 0; + foreach my $topic (sort keys(%$matches)) { + next if $topic =~ /^(WebLeftBar|WebLeftBarExample|AdminUserLeftBar)$/; + next if $include && $topic !~ /$include/; + next if $exclude && $topic =~ /$exclude/; + + unless (Foswiki::Func::checkAccessPermission('VIEW', $wikiName, undef, $topic, $web)) { + print STDERR "WARNING: no view rights on $web.$topic\n"; + next; + } + + my $wikiUser = $topic; + $wikiUser =~ s/$suffix$//; + print STDERR "### reading $web.$topic for $wikiUser\n" if $verbose; + + my $targetWeb = $target; + my $targetTopic = $wikiUser; + ($targetWeb, $targetTopic) = Foswiki::Func::normalizeWebTopicName($targetWeb, $targetTopic); + print STDERR "### targetWeb=$targetWeb targetTopic=$targetTopic\n" if $verbose; + + if (!Foswiki::Func::topicExists($targetWeb, $targetTopic)) { + print STDERR "WARNING: target $targetWeb.$targetTopic does not exist ... cannot import $suffix\n"; + next; + } + + unless (Foswiki::Func::checkAccessPermission('CHANGE', $wikiName, undef, $targetTopic, $targetWeb)) { + print STDERR "WARNING: no edit rights on $targetWeb.$targetTopic\n"; + next; + } + + my ($targetMeta) = Foswiki::Func::readTopic($targetWeb, $targetTopic); + my @listyItems = $this->getListyItems($targetWeb, $targetTopic, $targetMeta); + #print STDERR "### listyItems=".dump(\@listyItems)."\n" if $debug && $verbose; + + my ($meta, $text) = Foswiki::Func::readTopic($web, $topic); + + my $needsSave = 0; + while ($text =~ /^(?: )+\* (.*)$/gm) { + my $item = $1; + + # clean up + $item =~ s/\s*
\s*//; + next if $item =~ /^\s*\*My links\*\s*$/i; + next if $item =~ /Create New Topic/i; + next if $item =~ /My User Page/i; + next if $item =~ /SCRIPTURL(?:PATH)?\{["']?search["']?\}%/i; + + my $listyTitle = ''; + my $listyWeb = ''; + my $listyTopic = ''; + my $listyUrl = ''; + my $listyType = 'topic'; + my $listySummary = ''; + + if ($item =~ /^\s*\[\[(?:($Foswiki::regex{webNameRegex})\.)?($Foswiki::regex{wikiWordRegex}|$Foswiki::regex{abbrevRegex}(?:$Foswiki::regex{anchorRegex})?)\]\[(.*?)\]\]\s*$/) { + $listyWeb = $1 || ''; + $listyTopic = $2 || ''; + $listyTitle = $3 || ''; + } elsif ($item =~ /^\s*(?:($Foswiki::regex{webNameRegex})\.)?($Foswiki::regex{wikiWordRegex}|$Foswiki::regex{abbrevRegex}(?:$Foswiki::regex{anchorRegex})?)\s*$/) { + $listyWeb = $1 || ''; + $listyTopic = $2 || ''; + } elsif ($item =~ /^\s*(https?:\/\/.*?)\s*$/) { + $listyType = 'external'; + $listyUrl = $1; + } else { + $listyType = 'text'; + $listySummary = $item; + } + + $listyTitle = '' if $listyTitle eq 'Home' && $listyTopic eq $Foswiki::cfg{HomeTopicName}; + + #print STDERR "... reading list item $item\n" if $verbose; + #print STDERR "... web=$listyWeb, topic=$listyTopic, title=$listyTitle\n" if $debug && $verbose; + + my $newListy = $this->createNewListy($targetMeta, $collection, + type => $listyType, + title => $listyTitle, + web => $listyWeb, + topic => $listyTopic, + url => $listyUrl, + summary => $listySummary, + ); + + if ($this->listyExists($targetMeta, $newListy, \@listyItems)) { + print STDERR "INFO: listy already exists ... skipping\n" if $verbose; + } else { + print STDERR "### new listy\n" if $verbose; + #print STDERR dump($newListy)."\n" if $debug && $verbose; + $targetMeta->putKeyed($this->{metaDataName}, $newListy); + $needsSave = 1; + } + } + + if ($needsSave) { + print STDERR "### saving to $targetWeb.$targetTopic\n" if $verbose; + Foswiki::Func::saveTopic($targetWeb, $targetTopic, $targetMeta, undef, {ignorepermissions=>1}) unless $debug; + $index++; + } else { + print STDERR "### nothing changed\n" if $verbose; + } + } + + return $index."\n"; +} + +sub _isEqual { + my ($a, $b) = @_; + + if (defined $a) { + if (defined $b) { + return 1 if $a eq $b; + } + } else { + return 1 if !defined($b); + } + + return 0; +} + +sub _isEqualListy { + my ($a, $b) = @_; + + return 0 unless _isEqual($a->{type}, $b->{type}); + return 0 unless _isEqual($a->{title}, $b->{title}); + return 0 unless _isEqual($a->{url}, $b->{url}); + return 0 unless _isEqual($a->{topic}, $b->{topic}); + return 0 unless _isEqual($a->{web}, $b->{web}); + return 0 unless _isEqual($a->{summary}, $b->{summary}); + return 0 unless _isEqual($a->{collection}, $b->{collection}); + + return 1; +} + +sub listyExists { + my ($this, $meta, $listy, $list) = @_; + + my $web = $meta->web; + my $topic = $meta->topic; + $list ||= $this->getListyItems($meta); + + foreach my $item (@$list) { + return 1 if _isEqualListy($item, $listy); + #print STDERR "listies differ\n".dump($listy)."\n".dump($item)."\n"; + } + + + return 0; +} + +sub solrIndexTopicHandler { + my ($this, $indexer, $doc, $web, $topic, $meta, $text) = @_; + + # delete all previous comments of this topic + $indexer->deleteByQuery("type:metadata form:Listy web:$web topic:$topic"); + + my @listyItems = $this->getListyItems($web, $topic, $meta); + return unless @listyItems; + + my @aclFields = $indexer->getAclFields($web, $topic, $meta); + + foreach my $item (@listyItems) { + + $indexer->log("Indexing listy $item->{name} at $web.$topic"); + + # Listy mapping to solr fields: + # + # date -> date + # name -> name + # summary -> summary + # title -> title + # collection -> field_Collecton_s + # web -> field_Web_s + # topic -> field_Topic_s + # type -> field_Type_s + # url -> field_URL_s + # index -> field_Index_d + + # set doc fields + my $date = Foswiki::Func::formatTime($item->{date}, 'iso', 'gmtime'); + + my $webtopic = "$web.$topic"; + $webtopic =~ s/\//./g; + my $id = $webtopic . '#' . $item->{name}; + + my $url = $indexer->getScriptUrlPath($web, $topic, 'view'); # TODO: let's have an url to display one listy + + my $title = getListyItemTitle($item); + $title = $this->{session}->renderer->TML2PlainText($title, undef, "showvar"); + + # index this listy + my $listyDoc = $indexer->newDocument(); + $listyDoc->add_fields( + 'id' => $id, + 'type' => 'metadata', + 'form' => 'Listy', + 'icon' => 'fa-list', + 'name' => $item->{name}, + 'web' => $web, + 'topic' => $topic, + 'webtopic' => $webtopic, + 'date' => $date, + 'title' => $title, + 'text' => $item->{summary}, + 'url' => $url, + + ### TODO missing + # 'author' => $item->{author}, + # 'contributor' => $item->{author}, + # 'createauthor' => $item->{createauthor}, + # 'createdate' => $item->{createdate}, + + 'container_id' => $web . '.' . $topic, + 'container_web' => $web, + 'container_topic' => $topic, + 'container_url' => Foswiki::Func::getViewUrl($web, $topic), + 'container_title' => Foswiki::Func::getTopicTitle($web, $topic, undef, $meta), + + 'field_Collection_s' => $item->{collection}, + 'field_Web_s' => $item->{web}, + 'field_Topic_s' => $item->{topic}, + 'field_Type_s' => $item->{type}, + 'field_URL_s' => $item->{url}, + 'field_Index_d' => $item->{index}, + 'field_TopicType_lst' => 'Listy', + ); + + my $contentLanguage = $indexer->getContentLanguage($web, $topic); + if (defined $contentLanguage && $contentLanguage ne 'detect') { + $listyDoc->add_fields( + language => $contentLanguage, + 'text_' . $contentLanguage => $item->{text}, + ); + } + + # add to topic doc + $doc->add_fields('catchall' => $item->{title}) if $item->{title}; + $doc->add_fields('catchall' => $item->{summary}) if $item->{summary}; + + # add extra fields, i.e. ACLs + $doc->add_fields(@aclFields) if @aclFields; + + # TODO missing + #$doc->add_fields('contributor' => $item->{author}); + + # add the document to the index + try { + $indexer->add($listyDoc); + } + catch Error::Simple with { + my $e = shift; + $indexer->log("ERROR: " . $e->{-text}); + }; + } +} + 1; diff --git a/lib/Foswiki/Plugins/ListyPlugin/DEPENDENCIES b/lib/Foswiki/Plugins/ListyPlugin/DEPENDENCIES index 71da4f8..606d3f7 100644 --- a/lib/Foswiki/Plugins/ListyPlugin/DEPENDENCIES +++ b/lib/Foswiki/Plugins/ListyPlugin/DEPENDENCIES @@ -4,4 +4,5 @@ Foswiki::Plugins::FilterPlugin,>=4.00,perl,Required. Foswiki::Contrib::JsonRpcContrib,>=2.21,perl,Required. ONLYIF ( $Foswiki::Plugins::VERSION < 2.1) Foswiki::Plugins::ZonePlugin,>=3.1,perl,Required. required for Foswiki < 1.1 - +ONLYIF ( $Foswiki::Plugins::VERSION < 2.6) +Foswiki::Plugins::TopicTitlePlugin,>1.00,perl,Required for Foswiki < 2.2 diff --git a/lib/Foswiki/Plugins/ListyPlugin/MANIFEST b/lib/Foswiki/Plugins/ListyPlugin/MANIFEST index 9513f73..5afefd4 100644 --- a/lib/Foswiki/Plugins/ListyPlugin/MANIFEST +++ b/lib/Foswiki/Plugins/ListyPlugin/MANIFEST @@ -1,3 +1,4 @@ +!noci data/System/ListyPlugin.txt 0644 lib/Foswiki/Plugins/ListyPlugin/Config.spec 0644 lib/Foswiki/Plugins/ListyPlugin/Core.pm 0644 @@ -29,6 +30,12 @@ locale/ListyPlugin/zh-cn.po 0644 locale/ListyPlugin/zh-tw.po 0644 pub/System/ListyPlugin/i18n/de.js 0644 pub/System/ListyPlugin/i18n/en.js 0644 +pub/System/ListyPlugin/i18n/fr.js 0644 +pub/System/ListyPlugin/i18n/it.js 0644 +pub/System/ListyPlugin/i18n/zh_TW.js 0644 +pub/System/ListyPlugin/jquery.favbutton.js 0644 +pub/System/ListyPlugin/jquery.favbutton.js.gz 0644 +pub/System/ListyPlugin/jquery.favbutton.uncompressed.js 0644 pub/System/ListyPlugin/jquery.listy.css 0644 pub/System/ListyPlugin/jquery.listy.css.gz 0644 pub/System/ListyPlugin/jquery.listy.js 0644 diff --git a/locale/ListyPlugin/Foswiki.pot b/locale/ListyPlugin/Foswiki.pot index ef22de5..6fe2a9b 100644 --- a/locale/ListyPlugin/Foswiki.pot +++ b/locale/ListyPlugin/Foswiki.pot @@ -13,35 +13,39 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 msgid "Add item" msgstr "" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 msgid "Collection" msgstr "" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 msgid "Delete Item" msgstr "" @@ -49,58 +53,74 @@ msgstr "" msgid "Delete this item" msgstr "" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 msgid "Edit this item" msgstr "" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 msgid "Insert a new item here" msgstr "" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 msgid "Revert changes" msgstr "" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 msgid "Save changes" msgstr "" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 msgid "Summary" msgstr "" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 msgid "Title" msgstr "" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "" diff --git a/locale/ListyPlugin/bg.po b/locale/ListyPlugin/bg.po index 1c10fb3..083810e 100644 --- a/locale/ListyPlugin/bg.po +++ b/locale/ListyPlugin/bg.po @@ -19,37 +19,41 @@ msgstr "" "X-Poedit-Country: Bulgaria\n" "X-Poedit-SourceCharset: utf-8\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Добавяне на ред" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Действие" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Изтриване" @@ -59,66 +63,82 @@ msgstr "Изтриване" msgid "Delete this item" msgstr "Изтриване на страница" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Редактиране на тази таблица" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Изтриване на притурка" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Преглед на последните промени в:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(промени)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 msgid "Summary" msgstr "" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Тялото на текста" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Заглавие на страницата" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Към страница:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Раздели" diff --git a/locale/ListyPlugin/cs.po b/locale/ListyPlugin/cs.po index cd7cf6b..95695d6 100644 --- a/locale/ListyPlugin/cs.po +++ b/locale/ListyPlugin/cs.po @@ -17,37 +17,41 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Přidej členy" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Akce" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Smazat" @@ -57,65 +61,80 @@ msgstr "Smazat" msgid "Delete this item" msgstr "Vymazat článek" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Editovat tabulku" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Externí" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Vložit novou tabulku" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Zkontrolujte poslední změny v:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "Beze změn" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Shrnutí" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "Text" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Název:" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Článek" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Web" - diff --git a/locale/ListyPlugin/da.po b/locale/ListyPlugin/da.po index b6cdd3f..55114fc 100644 --- a/locale/ListyPlugin/da.po +++ b/locale/ListyPlugin/da.po @@ -18,37 +18,41 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Tilføj medlemmer" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Handling" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Slet" @@ -58,65 +62,80 @@ msgstr "Slet" msgid "Delete this item" msgstr "Slet side" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Editér denne tabel" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Ekstern" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Indsæt tabel" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Senest ændrede sider i:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "Ingen ændringer" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Sammendrag" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "Tekst" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Titel:" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Side" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Web" - diff --git a/locale/ListyPlugin/de.po b/locale/ListyPlugin/de.po index 2957b45..8b3602a 100644 --- a/locale/ListyPlugin/de.po +++ b/locale/ListyPlugin/de.po @@ -12,37 +12,40 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 2.4\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "Fügen Sie eine kurze Zusammenfassung hinzu." -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "Eintrag hinzufügen" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 msgid "Add item" msgstr "Neuer Eintrag" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "Zu Favoriten hinzufügen" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "Eintrag an die Liste anhängen" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "Sind Sie sicher, dass Sie diesen Eintrag löschen wollen? %BR% %2" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 msgid "Collection" msgstr "Sammlung" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "Geben Sie dem Verweis einen eigenen Titel." -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 msgid "Delete Item" msgstr "Eintrag löschen" @@ -50,58 +53,74 @@ msgstr "Eintrag löschen" msgid "Delete this item" msgstr "Diesen Eintrag löschen" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 msgid "Edit this item" msgstr "Eintrag bearbeiten" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Extern" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "Favorisieren" + #: templates/listyplugin.tmpl:21 msgid "Insert a new item here" msgstr "Hier einen neuen Eintrag einfügen" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "Von Favoriten entfernen" + +#: templates/listyplugin.tmpl:65 msgid "Revert changes" msgstr "Rückgängig" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "Sortierung auf initialen Wert zurücksetzen" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 msgid "Save changes" msgstr "Speichern" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "Sortierung speichern" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "Bitte wählen Sie die Sammlung für diesen Eintrag aus." -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 msgid "Summary" msgstr "Zusammenfassung" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "Text" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 msgid "Title" msgstr "Titel" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Topic" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "Defavorisieren" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "Defavorisieren" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Web" diff --git a/locale/ListyPlugin/el.po b/locale/ListyPlugin/el.po index 0a1f2ff..298034a 100644 --- a/locale/ListyPlugin/el.po +++ b/locale/ListyPlugin/el.po @@ -4,7 +4,6 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2015-06-30 14:03+0200\n" -"Last-Translator: Lieven L. Litaer \n" "Language-Team: Greek \n" "Language: el\n" @@ -17,37 +16,41 @@ msgstr "" "X-Poedit-Country: GREECE\n" "X-Poedit-SourceCharset: utf-8\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Προσθήκη φόρμας" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Ενέργεια" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Διαγραφή" @@ -57,68 +60,83 @@ msgstr "Διαγραφή" msgid "Delete this item" msgstr "Διαγραφή αυτού του θέματος" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Επεξεργασία αυτού του θέματος" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Διαγραφή συνημμένου" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Επισκόπηση των πρόσφατων αλλαγών σε:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(αλλαγές)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Περιλήψεις" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Σώμα κειμένου" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Τίτλος θέματος" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Στο θέμα:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Ιστοί" - diff --git a/locale/ListyPlugin/es.po b/locale/ListyPlugin/es.po index 211a915..e632677 100644 --- a/locale/ListyPlugin/es.po +++ b/locale/ListyPlugin/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: es\n" -"Report-Msgid-Bugs-To: foswiki-svn@lists.sourceforge.net\n" +"Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2016-12-13 14:30+0200\n" "Last-Translator: Raul F Rodriguez \n" @@ -19,37 +19,41 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.4\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "no son miembros" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Acción" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Borrar" @@ -59,66 +63,82 @@ msgstr "Borrar" msgid "Delete this item" msgstr "Borrar tema" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Editar esta tabla" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Borrar archivo adjunto" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Temas recién cambiados" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(cambios)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Resúmenes" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Cuerpo del Texto" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Título del tema" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "A página:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Web" diff --git a/locale/ListyPlugin/fi.po b/locale/ListyPlugin/fi.po index 40f85bb..9e65ceb 100644 --- a/locale/ListyPlugin/fi.po +++ b/locale/ListyPlugin/fi.po @@ -16,37 +16,41 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Finnish\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Lisää rivi" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Toiminto" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Poista" @@ -56,68 +60,83 @@ msgstr "Poista" msgid "Delete this item" msgstr "Poista aihe" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Muokkaa tätä taulukkoa" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Poista liite" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Esikatsele viimeisimpiä muutoksia:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(muutokset)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Yhteenvedot" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Leipäteksti" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Aiheen otsikko" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Aiheeseen:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Verkot" - diff --git a/locale/ListyPlugin/fr.po b/locale/ListyPlugin/fr.po index e5d47c5..c41042d 100644 --- a/locale/ListyPlugin/fr.po +++ b/locale/ListyPlugin/fr.po @@ -18,35 +18,39 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Weblate 2.4\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 msgid "Add item" msgstr "" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 msgid "Collection" msgstr "" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 msgid "Delete Item" msgstr "" @@ -54,58 +58,74 @@ msgstr "" msgid "Delete this item" msgstr "" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 msgid "Edit this item" msgstr "" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Externe" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 msgid "Insert a new item here" msgstr "" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 msgid "Revert changes" msgstr "" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 msgid "Save changes" msgstr "" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 msgid "Summary" msgstr "" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "Texte" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 msgid "Title" msgstr "Titre" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Page" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Web" diff --git a/locale/ListyPlugin/it.po b/locale/ListyPlugin/it.po index 791303e..cb549ed 100644 --- a/locale/ListyPlugin/it.po +++ b/locale/ListyPlugin/it.po @@ -5,12 +5,12 @@ msgid "" msgstr "" "Project-Id-Version: it\n" -"Report-Msgid-Bugs-To: foswiki-svn@lists.sourceforge.net\n" +"Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2016-04-25 11:26+0200\n" "Last-Translator: Guido Brugnara \n" -"Language-Team: Italian \n" +"Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -18,35 +18,39 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.4\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "Aggiungere una descrizione per questo temine." -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "Aggiungere un termine" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 msgid "Add item" msgstr "Aggiungere termine" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "Aggiungere un termine a questa lista" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "Sei certo di voler cancellare %1?" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 msgid "Collection" msgstr "Collezione" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "Personalizza il testo di questo termine." -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 msgid "Delete Item" msgstr "Elimina Termine" @@ -54,58 +58,74 @@ msgstr "Elimina Termine" msgid "Delete this item" msgstr "Elimina questo termine" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 msgid "Edit this item" msgstr "Modifica questo termine" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Esterno" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 msgid "Insert a new item here" msgstr "Inserire un nuovo termine qui" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 msgid "Revert changes" msgstr "Annulla le modifiche" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "Ripristina l'ordinamento al suo stato iniziale" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 msgid "Save changes" msgstr "Salva i cambiamenti" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "Salva l'ordinamento" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "Seleziona la collezione per mantenere il termine." -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 msgid "Summary" msgstr "Sommario" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "Testo" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 msgid "Title" msgstr "Titolo" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Pagina" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Web" diff --git a/locale/ListyPlugin/ja.po b/locale/ListyPlugin/ja.po index cbe1d5a..1a1a8f6 100644 --- a/locale/ListyPlugin/ja.po +++ b/locale/ListyPlugin/ja.po @@ -18,37 +18,41 @@ msgstr "" "X-Poedit-Country: JAPAN\n" "X-Poedit-SourceCharset: utf-8\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "ユーザを追加します" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "変更" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "削除" @@ -58,66 +62,82 @@ msgstr "削除" msgid "Delete this item" msgstr "トピックを削除します" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "このテーブルを編集します" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "添付ファイルを削除します" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "最新変更されたトピック" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(変更)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "概要" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "テキスト内容" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "トピックタイトル" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "トピック" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "ウェブ" diff --git a/locale/ListyPlugin/ko.po b/locale/ListyPlugin/ko.po index 5e8ab80..5b2f152 100644 --- a/locale/ListyPlugin/ko.po +++ b/locale/ListyPlugin/ko.po @@ -17,36 +17,40 @@ msgstr "" "X-Poedit-Country: KOREA, REPUBLIC OF\n" "X-Poedit-SourceCharset: utf-8\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "행 추가" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 msgid "Collection" msgstr "" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "삭제" @@ -56,65 +60,81 @@ msgstr "삭제" msgid "Delete this item" msgstr "토픽 지우기" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "이 테이블 편집하기" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "첨부물 삭제" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "다음 목록에서 최근 변경된 내역 보기:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "변경내역" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "요약" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 msgid "Title" msgstr "" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "토픽 복사" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "%1 Web" diff --git a/locale/ListyPlugin/nl.po b/locale/ListyPlugin/nl.po index a9b8209..3f2f481 100644 --- a/locale/ListyPlugin/nl.po +++ b/locale/ListyPlugin/nl.po @@ -10,7 +10,6 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2016-01-09 09:29+0200\n" -"Last-Translator: Lieven L. Litaer \n" "Language-Team: Dutch\n" "Language: nl\n" "MIME-Version: 1.0\n" @@ -19,37 +18,41 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Leden toevoegen" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Actie" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Verwijder" @@ -59,65 +62,80 @@ msgstr "Verwijder" msgid "Delete this item" msgstr "Pagina verwijderen" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Bewerk deze tabel" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Extern" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Nieuwe tabel invoegen" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Bekijk recente wijzigingen in:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "Geen wijzigingen" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Samenvattingen" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "Tekst" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Titel:" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Pagina" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Web" - diff --git a/locale/ListyPlugin/no.po b/locale/ListyPlugin/no.po index 0a4a654..573239a 100644 --- a/locale/ListyPlugin/no.po +++ b/locale/ListyPlugin/no.po @@ -16,37 +16,41 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Legg til medlemmer" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Valg" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Slett" @@ -56,68 +60,83 @@ msgstr "Slett" msgid "Delete this item" msgstr "Slett side" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Rediger denne tabellen" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Ekstern" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Sett inn et vedlegg" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Gjennomse nylige endringer i:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "Ingen endringer" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Sammendrag" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Tekst innhold" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Tittel" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Til side" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Web" - diff --git a/locale/ListyPlugin/pl.po b/locale/ListyPlugin/pl.po index daa2c5c..e978445 100644 --- a/locale/ListyPlugin/pl.po +++ b/locale/ListyPlugin/pl.po @@ -17,37 +17,41 @@ msgstr "" "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 1.1.0\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Dodaj wiersz" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Akcja" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Usuń" @@ -57,67 +61,82 @@ msgstr "Usuń" msgid "Delete this item" msgstr "Usuń stronę" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Edytuj tą tabelę" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Zewnętrzny" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Usuń załącznik" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Strony zmieniane ostatnio" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "zmiany" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "podsumowań" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "w zawartości" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "w tytule" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Nazwa strony" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Działy" - diff --git a/locale/ListyPlugin/pt-br.po b/locale/ListyPlugin/pt-br.po index 74ba8e7..3eb306a 100644 --- a/locale/ListyPlugin/pt-br.po +++ b/locale/ListyPlugin/pt-br.po @@ -19,37 +19,41 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Adicionar membros" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Ação" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Remover" @@ -59,68 +63,83 @@ msgstr "Remover" msgid "Delete this item" msgstr "Remover tópico" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Editar essa tabela" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Externo" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Inserir uma nova tabela" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Últimas alterações em:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(alterações)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Resumos" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Corpo do texto" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Nome do tópico" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Para tópico:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Webs" - diff --git a/locale/ListyPlugin/pt.po b/locale/ListyPlugin/pt.po index 9bc5040..358ddf7 100644 --- a/locale/ListyPlugin/pt.po +++ b/locale/ListyPlugin/pt.po @@ -18,37 +18,41 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 1.2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Adicionar linha" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Ação" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Remover" @@ -58,68 +62,83 @@ msgstr "Remover" msgid "Delete this item" msgstr "Remover tópico" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Editar essa tabela" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Remover anexo" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Últimas alterações em:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(alterações)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Resumos" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Corpo do texto" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Nome do tópico" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Para tópico:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Webs" - diff --git a/locale/ListyPlugin/ru.po b/locale/ListyPlugin/ru.po index e110607..0aad9ad 100644 --- a/locale/ListyPlugin/ru.po +++ b/locale/ListyPlugin/ru.po @@ -22,37 +22,41 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 1.1.0\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Добавить строку" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Действие" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Удалить" @@ -62,68 +66,83 @@ msgstr "Удалить" msgid "Delete this item" msgstr "Удалить тему" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Редактировать эту таблицу" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Удалить файл" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Обзор недавних изменений в:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(изменения)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Выводы по результатам поиска" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "В тексте страницы" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Заголовок темы" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "К теме:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Разделы" - diff --git a/locale/ListyPlugin/sv.po b/locale/ListyPlugin/sv.po index ad977bd..06b8813 100644 --- a/locale/ListyPlugin/sv.po +++ b/locale/ListyPlugin/sv.po @@ -7,7 +7,6 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2015-06-01 22:28+0200\n" -"Last-Translator: Lieven L. Litaer \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" @@ -16,37 +15,41 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Lägg till användare" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Åtgärd" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Radera" @@ -56,68 +59,83 @@ msgstr "Radera" msgid "Delete this item" msgstr "Radera sida" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Redigera denna tabell" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Radera bifogad fil" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Senast ändrade sidor" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(ändringar)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Sammanställningar" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Innehåll" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Sidnamn" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Till sidan:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Avdelningar" - diff --git a/locale/ListyPlugin/tlh.po b/locale/ListyPlugin/tlh.po index 90f29ec..77ba74f 100644 --- a/locale/ListyPlugin/tlh.po +++ b/locale/ListyPlugin/tlh.po @@ -7,7 +7,6 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2016-01-09 09:41+0200\n" -"Last-Translator: Lieven L. Litaer \n" "Language-Team: none\n" "Language: tlh\n" "MIME-Version: 1.0\n" @@ -16,37 +15,41 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "jeSwI&'pu&' chel" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "vang" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "polHa&'" @@ -56,65 +59,80 @@ msgstr "polHa&'" msgid "Delete this item" msgstr "ghItlh polHa&'" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "wa&'chawvam choH" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "&'Internet QaH" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "wa&'chaw chu&' roQ" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "naDev choHmey chu&' legh:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "pagh choHmey" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "lutHommey" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "ngoq" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "pong:" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "ghItlh" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "mIch" - diff --git a/locale/ListyPlugin/tr.po b/locale/ListyPlugin/tr.po index 1935b01..596f4ae 100644 --- a/locale/ListyPlugin/tr.po +++ b/locale/ListyPlugin/tr.po @@ -7,7 +7,6 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2015-07-30 20:25+0200\n" -"Last-Translator: Lieven L. Litaer \n" "Language-Team: TURKCE \n" "Language: tr\n" "MIME-Version: 1.0\n" @@ -16,36 +15,40 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.1\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Kullanıcı ekle" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 msgid "Collection" msgstr "" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Sil" @@ -55,67 +58,82 @@ msgstr "Sil" msgid "Delete this item" msgstr "Konuyu sil" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Tablo Düzenle" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Eklentiyi sil" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Değişiklikleri görebileceğiniz adres:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(değişiklikler)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 msgid "Summary" msgstr "" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "Metin içinde" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "Konu başlığında" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "Bu konunun bağlanacağı üst konu:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "Webler" - diff --git a/locale/ListyPlugin/uk.po b/locale/ListyPlugin/uk.po index 1fed1b6..309305f 100644 --- a/locale/ListyPlugin/uk.po +++ b/locale/ListyPlugin/uk.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Foswiki $ld\n" -"Report-Msgid-Bugs-To: foswiki-svn@lists.sourceforge.net\n" +"Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2017-12-18 16:20+0200\n" "Last-Translator: Vadim Belman \n" @@ -13,44 +13,48 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=" -"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 2.4\n" "X-Poedit-Language: Ukrainian\n" "X-Poedit-Country: UKRAINE\n" "X-Poedit-SourceCharset: utf-8\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "Додати членів" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "Дія" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "Вилучити" @@ -60,63 +64,79 @@ msgstr "Вилучити" msgid "Delete this item" msgstr "Вилучити тему" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "Редагувати цю таблицю" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "Зовнішнє" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "Вставити нову таблицю" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "Огляд недавніх змін у:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "Нема змін" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "Підсумки" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "Текст" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 msgid "Title" msgstr "Заголовок" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "Тема" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "URL-адреса" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "Розділ" diff --git a/locale/ListyPlugin/zh-cn.po b/locale/ListyPlugin/zh-cn.po index 8ad8112..d763cb7 100644 --- a/locale/ListyPlugin/zh-cn.po +++ b/locale/ListyPlugin/zh-cn.po @@ -19,37 +19,41 @@ msgstr "" "X-Poedit-Country: Taiwan\n" "X-Poedit-SourceCharset: utf-8\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 #, fuzzy msgid "Add item" msgstr "加一列" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 #, fuzzy msgid "Collection" msgstr "功能" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 #, fuzzy msgid "Delete Item" msgstr "删除" @@ -59,68 +63,83 @@ msgstr "删除" msgid "Delete this item" msgstr "删除主题" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 #, fuzzy msgid "Edit this item" msgstr "编辑这个表格" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 #, fuzzy msgid "Insert a new item here" msgstr "删除附件" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 #, fuzzy msgid "Revert changes" msgstr "检查最近的更新:" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 #, fuzzy msgid "Save changes" msgstr "(变更)" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 #, fuzzy msgid "Summary" msgstr "摘要" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 #, fuzzy msgid "Text" msgstr "内容" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 #, fuzzy msgid "Title" msgstr "主题标题" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 #, fuzzy msgid "Topic" msgstr "到主题:" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 #, fuzzy msgid "Web" msgstr "子网" - diff --git a/locale/ListyPlugin/zh-tw.po b/locale/ListyPlugin/zh-tw.po index 64fe883..d176c4c 100644 --- a/locale/ListyPlugin/zh-tw.po +++ b/locale/ListyPlugin/zh-tw.po @@ -5,12 +5,12 @@ msgid "" msgstr "" "Project-Id-Version: Foswiki $Id\n" -"Report-Msgid-Bugs-To: foswiki-svn@lists.sourceforge.net\n" +"Report-Msgid-Bugs-To: \n" "POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2016-12-27 08:20+0200\n" "Last-Translator: CH yang \n" -"Language-Team: Traditional Chinese " -"\n" +"Language-Team: Traditional Chinese \n" "Language: zh-tw\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,35 +20,39 @@ msgstr "" "X-Poedit-Country: Taiwan\n" "X-Poedit-SourceCharset: utf-8\n" -#: templates/listyplugin.tmpl:219 +#: templates/listyplugin.tmpl:220 msgid "Add a description for this item." msgstr "為這個項目增加一個說明。" -#: templates/listyplugin.tmpl:94 +#: templates/listyplugin.tmpl:95 msgid "Add an item" msgstr "增加一個項目" -#: templates/listyplugin.tmpl:42 +#: templates/listyplugin.tmpl:43 msgid "Add item" msgstr "增加項目" -#: templates/listyplugin.tmpl:45 +#: data/System/ListyPlugin.txt:245 lib/Foswiki/Plugins/ListyPlugin/Core.pm:449 +msgid "Add to favorites" +msgstr "" + +#: templates/listyplugin.tmpl:46 msgid "Append an item to the list" msgstr "為這個清單添加一個項目" -#: templates/listyplugin.tmpl:78 +#: templates/listyplugin.tmpl:79 msgid "Are you sure that you want to delete %1?" msgstr "請確認您要刪除 %1 ?" -#: templates/listyplugin.tmpl:226 +#: templates/listyplugin.tmpl:227 msgid "Collection" msgstr "集合" -#: templates/listyplugin.tmpl:187 +#: templates/listyplugin.tmpl:188 msgid "Customize the text of this item." msgstr "設定這個項目的文字。" -#: templates/listyplugin.tmpl:73 +#: templates/listyplugin.tmpl:74 msgid "Delete Item" msgstr "刪除項目" @@ -56,58 +60,74 @@ msgstr "刪除項目" msgid "Delete this item" msgstr "刪除這個項目" -#: templates/listyplugin.tmpl:134 templates/listyplugin.tmpl:20 +#: templates/listyplugin.tmpl:135 templates/listyplugin.tmpl:20 msgid "Edit this item" msgstr "編輯這個項目" -#: templates/listyplugin.tmpl:177 +#: templates/listyplugin.tmpl:178 msgid "External" msgstr "外部" +#: data/System/ListyPlugin.txt:243 lib/Foswiki/Plugins/ListyPlugin/Core.pm:447 +msgid "Favorite" +msgstr "" + #: templates/listyplugin.tmpl:21 msgid "Insert a new item here" msgstr "在此插入一個新的項目" -#: templates/listyplugin.tmpl:64 +#: data/System/ListyPlugin.txt:248 lib/Foswiki/Plugins/ListyPlugin/Core.pm:457 +msgid "Remove from favorites" +msgstr "" + +#: templates/listyplugin.tmpl:65 msgid "Revert changes" msgstr "還原變更" -#: templates/listyplugin.tmpl:67 +#: templates/listyplugin.tmpl:68 msgid "Revert sorting order to its initial state" msgstr "還原排序至初始狀態" -#: templates/listyplugin.tmpl:53 +#: templates/listyplugin.tmpl:54 msgid "Save changes" msgstr "儲存變更" -#: templates/listyplugin.tmpl:56 +#: templates/listyplugin.tmpl:57 msgid "Save sorting order" msgstr "儲存排序" -#: templates/listyplugin.tmpl:228 +#: templates/listyplugin.tmpl:229 msgid "Select the collection to hold the item." msgstr "選擇這個集合以保留此項目。" -#: templates/listyplugin.tmpl:217 +#: templates/listyplugin.tmpl:218 msgid "Summary" msgstr "總結" -#: templates/listyplugin.tmpl:167 +#: templates/listyplugin.tmpl:168 msgid "Text" msgstr "內容" -#: templates/listyplugin.tmpl:185 +#: templates/listyplugin.tmpl:186 msgid "Title" msgstr "標題" -#: templates/listyplugin.tmpl:172 templates/listyplugin.tmpl:201 +#: templates/listyplugin.tmpl:173 templates/listyplugin.tmpl:202 msgid "Topic" msgstr "主題" -#: templates/listyplugin.tmpl:209 +#: templates/listyplugin.tmpl:210 msgid "URL" msgstr "網址" -#: templates/listyplugin.tmpl:197 +#: data/System/ListyPlugin.txt:246 +msgid "Unavorite" +msgstr "" + +#: lib/Foswiki/Plugins/ListyPlugin/Core.pm:455 +msgid "Unfavorite" +msgstr "" + +#: templates/listyplugin.tmpl:198 msgid "Web" msgstr "子網" diff --git a/pub/System/ListyPlugin/Makefile b/pub/System/ListyPlugin/Makefile index 552898d..e553dc6 100644 --- a/pub/System/ListyPlugin/Makefile +++ b/pub/System/ListyPlugin/Makefile @@ -1,4 +1,4 @@ FOSWIKI_ROOT?=~/foswiki/core -TARGET= jquery.listy.js jquery.listy.css +TARGET= jquery.listy.js jquery.favbutton.js jquery.listy.css -include $(FOSWIKI_ROOT)/pub/System/JQueryPlugin/Makefile.include diff --git a/pub/System/ListyPlugin/i18n/de.js b/pub/System/ListyPlugin/i18n/de.js index c134bc7..b9ded4b 100644 --- a/pub/System/ListyPlugin/i18n/de.js +++ b/pub/System/ListyPlugin/i18n/de.js @@ -3,5 +3,7 @@ "Confirmation required": "Bitte bestätigen", "Delete Listy Item": "Listy-Eintrag löschen test", "OK": "OK", - "sorry, can't drop elements here": "Elemente können hier leider nicht fallen gelassen werden" -} \ No newline at end of file + "sorry, can't drop elements here": "Elemente können hier leider nicht fallen gelassen werden", + "Added to favorites": "Zu Favoriten hinzugefügt", + "Removed from favorites": "Von Favoriten entfernt" +} diff --git a/pub/System/ListyPlugin/i18n/en.js b/pub/System/ListyPlugin/i18n/en.js index 5bd1f21..da7975f 100644 --- a/pub/System/ListyPlugin/i18n/en.js +++ b/pub/System/ListyPlugin/i18n/en.js @@ -3,5 +3,7 @@ "Confirmation required": "Confirmation required", "Delete Listy Item": "Delete Listy Item", "OK": "OK", - "sorry, can't drop elements here": "sorry, can't drop elements here" + "sorry, can't drop elements here": "sorry, can't drop elements here", + "Added to favorites": "Added to favorites", + "Removed from favorites": "Removed from favorites" } diff --git a/pub/System/ListyPlugin/jquery.favbutton.uncompressed.js b/pub/System/ListyPlugin/jquery.favbutton.uncompressed.js new file mode 100644 index 0000000..5746135 --- /dev/null +++ b/pub/System/ListyPlugin/jquery.favbutton.uncompressed.js @@ -0,0 +1,251 @@ +/* + * jQuery favbutton plugin 1.00 + * + * (c)opyright 2017-2019 Michael Daum http://michaeldaumconsulting.com + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + */ +"use strict"; +(function($) { + + /*************************************************************************** + * globals + */ + var defaults = { + debug: false, + dry: false, + animationClass: "faa-flash animated" + }; + + /*************************************************************************** + * class definition + */ + function FavButton(elem, opts) { + var self = this; + + self.elem = $(elem); + self.icon = self.elem.find(".listyFavButtonIcon"); + self.label = self.elem.find(".listyFavButtonLabel"); + self.opts = $.extend({}, defaults, opts, self.elem.data()); + self.init(); + } + + /*************************************************************************** + * logging + */ + FavButton.prototype.log = function() { + var self = this, args; + + if (typeof(console) !== 'undefined' && self.opts.debug) { + args = $.makeArray(arguments); + args.unshift("FAV: "); + console.log.apply(self, args); // eslint-disable-line no-console + } + }; + + /************************************************************************* + * calls a notification systems, defaults to pnotify + */ + FavButton.prototype.showMessage = function(type, msg, title) { + $.pnotify({ + title: title, + text: msg, + hide: (type === "error" ? false : true), + type: type, + sticker: false, + closer_hover: false, + delay: (type === "error" ? 8000 : 2000) + }); + }; + + /************************************************************************* + * hide all open error messages in the notification system + */ + FavButton.prototype.hideMessages = function() { + $.pnotify_remove_all(); + }; + + /************************************************************************* + * set state + */ + FavButton.prototype.setState = function(state) { + var self = this; + + function successCallback(response) { + self.log("success response=",response); + self._isSaving = false; + self.icon.children().removeClass(self.opts.animationClass); + self.opts.isFavorite = state; + self.flagState(state); + + self.log("triggering changedCollection"); + $(document).trigger("changedCollection", { + source: self.opts.source, + collection: self.opts.collection, + web: self.opts.web, + topic: self.opts.topic, + action: state?"add":"remove" + }); + } + + function errorCallback(response) { + self.log("error response=",response); + self._isSaving = false; + self.icon.children().removeClass(self.opts.animationClass); + self.showMessage("error", response.error.message); + } + + self.icon.children().addClass(self.opts.animationClass); + self._isSaving = true; + + if (self.opts.dry) { + window.setTimeout(successCallback, 1000); + } else { + if (state) { + self.log("new favorite state=",state); + $.jsonRpc(foswiki.getScriptUrl("jsonrpc"), { + namespace: "ListyPlugin", + method: "saveListyItem", + params: { + name: "", + index: "", + type: "topic", + topic: self.opts.source, + collection: self.opts.collection, + listyWeb: self.opts.web, + listyTopic: self.opts.topic + }, + success: function(response) { + successCallback(response); + self.opts.name = response.result.name; + self.showMessage("info", $.i18n("Added to favorites")); + }, + error: function(response) { + errorCallback(response); + } + }); + } else { + self.log("remove favorite state=",state); + $.jsonRpc(foswiki.getScriptUrl("jsonrpc"), { + namespace: "ListyPlugin", + method: "deleteListyItem", + params: { + name: self.opts.name, + topic: self.opts.source, + collection: self.opts.collection + }, + success: function(response) { + successCallback(response); + self.log("success response=",response); + self.opts.name = ""; + self.showMessage("info", $.i18n("Removed from favorites")); + }, + error: function(response) { + errorCallback(response); + } + }); + } + } + }; + + /************************************************************************* + * update state + */ + FavButton.prototype.flagState = function(state) { + var self = this, + icon, text, title; + + if (typeof(state) === 'undefined') { + state = self.opts.isFavorite; + } + + //self.log("flagging state", state); + + if (state) { + icon = self.opts.unfavicon; + text = self.opts.unfavtext; + title = self.opts.unfavtitle; + } else { + icon = self.opts.favicon; + text = self.opts.favtext; + title = self.opts.favtitle; + } + + self.elem.attr("title", decodeURIComponent(title)); + self.icon.html(decodeURIComponent(icon)); + self.label.html(decodeURIComponent(text)); + }; + + /************************************************************************* + * toggle state + */ + FavButton.prototype.toggleState = function() { + var self = this; + self.setState(!self.opts.isFavorite); + }; + + /*************************************************************************** + * init listy instance + */ + FavButton.prototype.init = function() { + var self = this; + + self.log("opts=",self.opts); + + self.elem.on("click", function(ev) { + if (!self._isSaving) { + self.log("clicked on favbutton"); + self.toggleState(); + } else { + self.log("save in progress ... ignored click"); + } + ev.stopPropagation(); + return false; + }); + + $(document).on("changedCollection", function(ev, data) { + if (data.source === self.opts.source && + data.collection === self.opts.collection && + data.web === self.opts.web && + data.topic === self.opts.topic) { + + self.log("got a changedCollection event with data=",data); + + if (typeof(data.action) !== 'undefined') { + if (data.action === 'edit' || data.action === 'add') { + self.opts.isFavorite = true; + } else { + self.opts.isFavorite = false; + } + self.flagState(); + } + } + }); + }; + + /*************************************************************************** + * make it a jQuery plugin + */ + $.fn.favButton = function(opts) { + return this.each(function() { + if (!$.data(this, "favButton")) { + $.data(this, "favButton", new FavButton(this, opts)); + } + }); + }; + + /*************************************************************************** + * enable declarative widget instanziation + */ + $(".jqFavButton").livequery(function() { + var $this = $(this), + opts = $.extend({}, defaults, $this.data()); + + $this.addClass("jqInitedFavButton").favButton(opts); + }); + +})(jQuery); + diff --git a/pub/System/ListyPlugin/jquery.listy.uncompressed.css b/pub/System/ListyPlugin/jquery.listy.uncompressed.css index 9801e49..a8e6187 100644 --- a/pub/System/ListyPlugin/jquery.listy.uncompressed.css +++ b/pub/System/ListyPlugin/jquery.listy.uncompressed.css @@ -89,3 +89,21 @@ padding-left:0.5em; padding-right:0.5em; } + +.listyFavButton { + padding:3px; + text-decoration:none; +} +.listyFavButtonIcon { + width:1em; +} +.listyFavButtonLabel { + margin-left:0.7em; +} +.listyFavButtonNoLabel .listyFavButtonLabel, +.listyFavButtonNoIcon .listyFavButtonIcon { + display:none; +} +.listyFavButtonNoLabel .listyFavButtonIcon { + padding:0; +} diff --git a/pub/System/ListyPlugin/jquery.listy.uncompressed.js b/pub/System/ListyPlugin/jquery.listy.uncompressed.js index 29c12c4..c4df419 100644 --- a/pub/System/ListyPlugin/jquery.listy.uncompressed.js +++ b/pub/System/ListyPlugin/jquery.listy.uncompressed.js @@ -1,7 +1,7 @@ /* - * jQuery listy plugin 4.00 + * jQuery listy plugin 4.20 * - * (c)opyright 2011-2017 Michael Daum http://michaeldaumconsulting.com + * (c)opyright 2011-2019 Michael Daum http://michaeldaumconsulting.com * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php @@ -17,7 +17,6 @@ var defaults = { debug: false }, - allListies = {}, saveInProgress; /*************************************************************************** @@ -27,25 +26,11 @@ return $("
").html(value).text(); } + /* unused function entityEncode(value) { return $('
').text(value).html(); - } - - /*************************************************************************** - * static: find listies of collection - */ - function findListiesOfCollection(id) { - var listies = []; - - $.each(allListies, function(index, item) { - if (item.opts.collection === id) { - listies.push(item); - } - }); - - return listies; } - + */ /*************************************************************************** * class definition @@ -61,7 +46,6 @@ } self.init(); - allListies[self.id] = self; //self.log("finished new()", self); } @@ -74,7 +58,7 @@ if (typeof(console) !== 'undefined' && self.opts.debug) { args = $.makeArray(arguments); args.unshift("LISTY: "); - console.log.apply(self, args); + console.log.apply(self, args); // eslint-disable-line no-console } }; @@ -128,11 +112,20 @@ self.flagModified(); }); + $(document).on("changedCollection", function(ev, data) { + if (data.source === self.opts.source && + data.collection === self.opts.collection) { + + self.log("got a changedCollection event with data=",data); + self.flagModified(); + self.reload(); + } + }); + // init gui self.listyContainer.sortable({ connectWith: ".jqListyEditable .jqListyContainer", - revert: true, - delay: 1, + //revert: true, /* SMELL: buggy - when the page scrolled the placeholder animates to a weird position */ distance: 5, tolerance: "pointer", placeholder: "ui-sortable-placeholder jqListyPlaceholder", @@ -150,7 +143,7 @@ $item.addClass("jqListySelected"); }, - remove: function(event, ui) { + remove: function(/*event, ui*/) { //self.log("got a remove in " + self.id); }, @@ -181,7 +174,7 @@ }, update: function(event, ui) { - var sender = ui.sender + var sender = ui.sender; if (sender) { sender = sender.parent().data("listy"); @@ -199,7 +192,9 @@ self.save().then(function() { var data, md5, senderMd5; if (sender) { +self.reload(true); // check whether we need to reload this listy +/* data = self.getItemData(ui.item.attr("id")); self.log("save initiated by sender ...",sender.id); md5 = self.elem.data("formatterMd5")[data.type]; @@ -210,6 +205,7 @@ } else { self.log("no need to reload a listy ... same formatter"); } +*/ } }); } @@ -292,17 +288,23 @@ }, success: function() { //self.showMessage("info", "deleted item"); + $(document).trigger("changedCollection", { + source: self.opts.source, + collection: self.opts.collection, + web: data.web, + topic: data.topic, + action: "delete" + }); + self.flagModified(); self.reload(); }, - error: function(xhr, textStatus) { + error: function(xhr) { var msg = $.parseJSON(xhr.responseText).error.message; self.elem.unblock(); self.showMessage("error", msg); } }); - }, - function(dialog) { } ); @@ -336,7 +338,7 @@ methods: { renderCollections: function() { return self.renderCollections(); - }, + } } }).then( @@ -347,30 +349,24 @@ self.elem.block({message:''}); } }, - success: function(json) { - var collection = json.result.collection, - listies = findListiesOfCollection(collection); - - if (listies) { - $.each(listies, function(index, item) { - if (item !== self) { - item.flagModified(); - item.reload(); - } - }); - } - - self.flagModified(); - self.reload(); + success: function(/*json*/) { + $(document).trigger("changedCollection", { + source: self.opts.source, + collection: self.opts.collection, + web: data.web, + topic: data.topic, + action: "edit" + }); + + //self.flagModified(); + //self.reload(); }, - error: function(xhr, textStatus) { + error: function(xhr) { var msg = $.parseJSON(xhr.responseText).error.message; self.elem.unblock(); self.showMessage("error", msg); } }); - }, - function(dialog) { } ); @@ -380,9 +376,11 @@ self.elem.find(".jqListyEdit").on("click", function() { var $this = $(this), $item = $this.parents("li:first"); _editHandler($item); + return false; }); self.elem.find(".jqListyContainer > li").on("dblclick", function() { _editHandler($(this)); + return false; }); // add button behavior @@ -394,14 +392,18 @@ index = ""; if ($thisItem.length) { - thisIndex = self.getItemData($thisItem.attr("id")).index - 1 + thisIndex = self.getItemData($thisItem.attr("id")).index - 1; if ($nextItem.length) { nextIndex = - nextIndex = self.getItemData($nextItem.attr("id")).index - 1 + nextIndex = self.getItemData($nextItem.attr("id")).index - 1; } else { nextIndex = thisIndex + 2; } index = (nextIndex - thisIndex) / 2 + thisIndex; + } else { + if ($this.is(".top")) { + index = 0.5; + } } self.dialog({ @@ -425,35 +427,30 @@ methods: { renderCollections: function() { return self.renderCollections(); - }, + } } }).then( function(dialog) { $(dialog).children("form").ajaxSubmit({ - success: function(json) { - var collection = json.result.collection, - listies = findListiesOfCollection(collection); - - if (listies) { - $.each(listies, function(index, item) { - if (item.id !== self.id) { - item.flagModified(); - item.reload(); - } - }); - } - - self.flagModified(); - self.reload(); + success: function(/*json*/) { + + $(document).trigger("changedCollection", { + source: self.opts.source, + collection: self.opts.collection, + web: foswiki.getPreference("WEB"), + topic: foswiki.getPreference("TOPIC"), + action: "add" + }); + + //self.flagModified(); + //self.reload(); }, - error: function(xhr, textStatus) { + error: function(xhr) { var msg = $.parseJSON(xhr.responseText).error.message; self.showMessage("error", msg); } }); - }, - function(dialog) { } ); @@ -604,10 +601,9 @@ self.elem.block({message:''}); } }, - success: function(data, textStatus, xhr) { + success: function(data) { /* destroy self */ - delete allListies[self.id]; self.elem.find(".jqListyTml").remove(); self.elem.replaceWith(data); // SMELL @@ -620,9 +616,9 @@ } //self.showMessage("info", "reloaded "+self.opts.collection); }, - error: function(xhr, textStatus) { + error: function(xhr) { var msg; - if (xhr.status != 404) { + if (xhr.status !== 404) { msg = $.parseJSON(xhr.responseText).error.message; } else { msg = xhr.status + " " + xhr.statusText; @@ -680,7 +676,7 @@ } */ }, - success: function(json, textStatus, xhr) { + success: function(/*json*/) { // reload of listy collections of the same topic var nextId = Object.keys(self.affected)[0], nextListy; @@ -702,7 +698,7 @@ //self.showMessage("success", "saved into collection '" + self.opts.collection+'"'); saveInProgress = undefined; }, - error: function(json, textStatus, xhr) { + error: function(json) { self.elem.unblock(); self.showMessage("error", json.error.message); saveInProgress = undefined; @@ -715,7 +711,7 @@ */ Listy.prototype.isEqual = function(other) { var self = this; - return (self.opts.source == other.opts.source && self.opts.collection == other.opts.collection); + return (self.opts.source === other.opts.source && self.opts.collection === other.opts.collection); }; /***************************************************************************** @@ -793,7 +789,7 @@ return false; } }], - open: function(ev) { + open: function() { var $this = $(this), title = $this.data("title"); @@ -804,7 +800,7 @@ $this.find("input").on("keydown", function(ev) { var $input = $(this); if (!$input.is(".ui-autocomplete-input") || !$input.data("ui-autocomplete").menu.element.is(":visible")) { - if (ev.keyCode == 13) { + if (ev.keyCode === 13) { ev.preventDefault(); $this.dialog("close"); dfd.resolve($this[0]); @@ -812,13 +808,9 @@ } }); - window.setTimeout(function() { - $this.dialog({position: {my:'center', at:'center', of:window}}); - }, 100); - opts.open.call(self, this, opts.data); }, - close: function(event, ui) { + close: function() { $(this).remove(); }, show: 'fade', diff --git a/templates/listyplugin.tmpl b/templates/listyplugin.tmpl index 21d85a5..fc8dd19 100644 --- a/templates/listyplugin.tmpl +++ b/templates/listyplugin.tmpl @@ -39,7 +39,7 @@ $topbuttons
    %{ listy buttons - add}% %TMPL:DEF{"listy::buttons::add"}% -
  • %BUTTON{ +
  • %BUTTON{ "%MAKETEXT{"Add item"}%" icon="fa-plus" class="jqButtonSimple" @@ -52,7 +52,7 @@ $topbuttons
      %TMPL:DEF{"listy::buttons::save"}%
    • %BUTTON{ "%MAKETEXT{"Save changes"}%" - icon="fa-floppy-o" + icon="fa-check" class="jqButtonSimple" title="%MAKETEXT{"Save sorting order"}%" style="float:none"; @@ -63,7 +63,7 @@ $topbuttons
        %TMPL:DEF{"listy::buttons::revert"}%
      • %BUTTON{ "%MAKETEXT{"Revert changes"}%" - icon="fa-ban" + icon="fa-times" class="jqButtonSimple" title="%MAKETEXT{"Revert sorting order to its initial state"}%" style="float:none"; @@ -231,5 +231,8 @@ $topbuttons
          %TMPL:END% %TMPL:DEF{"listy::editor::collectionstep::hidden"}%%TMPL:END% +%{ listy favbutton - format}% +%TMPL:DEF{"listy::favbutton"}%$icon$text%TMPL:END% + %{ test tmpl ... never mind }% %TMPL:DEF{"listy::isloaded"}%true%TMPL:END%