[kupfer] plugin.shorten_links: Edit description and names
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.shorten_links: Edit description and names
- Date: Thu, 24 Dec 2009 01:40:51 +0000 (UTC)
commit c8ff35576b19401e8887ea6931567a9dd6b684af
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Dec 22 13:03:00 2009 +0100
plugin.shorten_links: Edit description and names
Make the description generic and simple: Create short aliases for long
URLs.
We name the action "Shorten With.." since a three-part action should
be read like a sentence, for example (URL) -> Shorten With -> TinyURL
Also sort the services lexically.
kupfer/plugin/shorten_links.py | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/plugin/shorten_links.py b/kupfer/plugin/shorten_links.py
index 8ca8e5e..60f0595 100644
--- a/kupfer/plugin/shorten_links.py
+++ b/kupfer/plugin/shorten_links.py
@@ -9,8 +9,8 @@ from kupfer import pretty
__kupfer_name__ = _("Shorten Links")
__kupfer_actions__ = ("ShortenLinks", )
-__description__ = _("Shorten links with various services (TinyUrl, Url1.ca, Shorl, Bit.ly)")
-__version__ = "2009-12-21"
+__description__ = _("Create short aliases of long URLs")
+__version__ = "2009-12-24"
__author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
@@ -117,7 +117,7 @@ class ShortenLinks(Action):
''' Shorten links with selected engine '''
def __init__(self):
- Action.__init__(self, _('Shorten Link...'))
+ Action.__init__(self, _('Shorten With...'))
def has_result(self):
return True
@@ -138,6 +138,9 @@ class ShortenLinks(Action):
def object_source(self, for_item=None):
return ServicesSource()
+ def get_description(self):
+ return __description__
+
class ServicesSource(Source):
def __init__(self):
@@ -149,5 +152,8 @@ class ServicesSource(Source):
yield Ur1Ca()
yield BitLy()
+ def should_sort_lexically(self):
+ return True
+
def get_icon_name(self):
return "applications-internet"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]