TerrenceRyan.com

I'm a 35 year old redhead geek from Philly.
I'm currently a Developer Evangelist for Adobe.
Also the author of Driving Technical Change

Google Language Tools Extension for ColdFusion Builder

3 Comments

I have become obsessed with ColdFusion Builder Extensions. I am convinced that no other single feature of the IDE is as valuable as this. (And I love the rest of the features too, so I'm saying a lot here.) The ability to leverage ColdFusion know-how and features into tooling is awesome. A lot of the extensions we've shown off have been about code generation. I think that's important, as it is big part of the Builder story. We make you more productive, but you make yourself even more productive. Of late though, I've been focused on extensions that do more than just generate code, they use ColdFusion capabilities in non-obvious ways. I'll be posting them over the next few weeks.

Here's the first:

I created a language translator that allows you to translate content in the editor window to other languages. As a first pass, it only does English, French, German, and Italian, but as I experiment I will expand them. To use:

That should drop the translated content back into your editor, below the original content.

To build this I used a few different pieces. In the last Public Beta drop of ColdFusion we added the ability to grab highlighted content from the editor window in a ColdFusion Builder extension. I take that highlighted content and pass it to the server. On the server I pass it to a CFC that I wrote that consumes the Google Language API. It's a JSON-powered webservice, so I used ColdFusion support for JSON to simply get at this data. From there, I can use a feature of ColdFusion Builder called "callbacks" to write the translated code back to the editor window. Specifically, I used the "inserttext" callback, which allows me to insert text at a specific line of code. I can use this to carefully place the translated text.

Possible use cases:

Sound cool? Check it out on Riaforge: Google Language Tools Extension.

3 responses so far ↓

  • 1 Paul Hastings

    sorry terry, but this is a complete waste. machine translations, even google's, produce gibberish for anything beyond single words. if you make folks think using one is somehow a good idea (ahem, "platform evangelist"), you're doing a disservice to the cf community.

    another case of putting lipstick on a pig.
  • 2 tpryan

    I wouldn't recommend that you base a global business on it. But I think this does a good job of showing a non-obvious thing to do with ColdFusion extensions.
  • 3 Lola LB

    Look at it this other way, Paul . . . this can also be used for prototyping live wireframes, and as a base for professional translators to work from (having an idea of how the multilingual website is going to look like).

Leave a Comment









Categories

Monthly Archives

Tag Cloud

coldfusion web development flex coldfusion builder appearances squidhead coldfusion builder extensions higher ed flash builder air mobile android adobe apptacular html5 driving technical change running a coldfusion shop adobemax06 movable type flash catalyst flash blackberry adobemax07 adobemax08 hero finicky css adobemax09 holy crap i’m a mobile developer centaur basecamp cfc unfuddle motorola metablog irrational characters ios git evangelism devices code reviews ant wharton subversion security phonegap philly philadelphia multidevice knowledge@wharton jobs browserlab adobemax10 adobe tv unfuddlecfc svnauth.cfc semantic html semantic html responsive web design qnx nlb linux jquery mobile java it github flexorg fireworks edge eclipse dreamweaver apps apple adobemax11