Labs/Ubiquity/Ubiquity Source Tip Author Tutorial: Difference between revisions

Jump to navigation Jump to search
Line 884: Line 884:
                 label: "topic" },
                 label: "topic" },
   preview: function preview( pblock, arguments ) {
   preview: function preview( pblock, arguments ) {
     var text = arguments.object.text || "any topic";
     var text = arguments.object.text || _("any topic");
     pblock.innerHTML = "Go to the Freebase topic page for " + text + ".";
     pblock.innerHTML = _("Go to the Freebase topic page for ${text}.",
                        {text: text});
   },
   },
   execute: function goToFreebase( arguments ) {
   execute: function goToFreebase( arguments ) {
1,007

edits

Navigation menu