]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/shortcut.pm
simplify preview code
[ikiwiki.git] / IkiWiki / Plugin / shortcut.pm
index 26385f3a6e83569ab0d89e8d1e968fc535d8776d..7b89bf879cdf48be4421a205399cb27a07a489f8 100644 (file)
@@ -21,7 +21,7 @@ sub preprocess_shortcut (@) { #{{{
        my %params=@_;
 
        if (! defined $params{name} || ! defined $params{url}) {
-               return "[[".gettext("shortcut missing name or url parameter")."]]";
+               return "[[shortcut ".gettext("missing name or url parameter")."]]";
        }
 
        hook(type => "preprocess", no_override => 1, id => $params{name},
@@ -30,7 +30,7 @@ sub preprocess_shortcut (@) { #{{{
        #translators: This is used to display what shortcuts are defined.
        #translators: First parameter is the name of the shortcut, the second
        #translators: is an URL.
-       return sprintf(gettext("shortcut %s points to %s"), $params{name}, $params{url});
+       return sprintf(gettext("shortcut %s points to <i>%s</i>"), $params{name}, $params{url});
 } # }}}
 
 sub shortcut_expand ($$@) { #{{{