My chrome extension just got two new features:
- Show in Wikipedia
- Show in Wiktionary
They do basically that they say on a tin. The language of both wiki sites is determined by Google’s translate language detection function. It’s not always accurate, but it’s best I can get at the moment.
I encourage you to install Translate and Speak! and play with it. Any feedback will be appreciated.
The Chrome Extension model is amazingly easy to use with just few basic concepts to understand. But there are rather severe limitations. The most important I found so far:
- There is no easy and consistent way to create option page. Developer needs to create option page as any normal HTML page, this is just overkill! See Extension options page, Chrome issue cr25317.
- Attaching action to context menu is limited in many ways:
- You can’t add two items to context menu. Chrome automatically creates a group called after the extension and puts all your items into this submenu.
- Callback method from event gets very limited amount of data about the click – e.g. you can’t easily read the contents of a link (A) tag right-clicked by user.
- There is no way you can modify the title of the link in context menu when it’s being displayed (no OnShow or similar event).
Expect edits here.
I spend long hours reading on-line (don’t we all?). Most of interesting material is available in English only (including en.wikipedia.org which is much superior to my native pl.wikipedia.org), so I tend to read all in that language. And as it is my second tongue, I need to use translator quite often. Google translator is doing pretty good job with helping me, but the manual process (copy->new tab->type address->paste) was just too slow to be comfortable. This is where the idea for extension for Chrome came from.
Basic needs for the plugin were defined as:
- No need to open translate.google.com everytime I need a translation
- No need to copy/paste to translate
- No more than 3 hours to develop (including the ramp up – this was my first attempt to create a Chrome Extension)
The result is quite encouraging – the extension is working and can be downloaded from Chrome Web Store. More information about the extension can be found here (click!)
This week I’ve attended meeting of London-GTUG (Google Technology Users Group). Main themes of the meeting were Chrome Extensions and HTML5. First part was interesting, but not inspiring – the Firefox plugins are widely available, Chrome Extensions just close the gap between the browsers. I like the architecture of Extensions and reasonable restrictions Google put on available APIs. All information are available on Chrome Extensions Lab page.
Is HTML5 a flash-killer? If you compare capabilities, it may seem so, but the battle is not lost for Adobe yet. At the moment there are no IDEs that let developers use full potential of new capabilities. And the browser support is still quite poor with Internet Explorer in lead in department of ignoring new standard. Adobe has some time to make a leap forward and run away before HTML folks produce something stable and popular enough.
Btw: Someone took a decision to stop numbering HTML, so we should not talk about HTML5 – it’s just HTML now. How do you tell what capabilities are supported by your browser? IMHO it will make some mess in two or three years. I don’t understand why they did it.