Thoughts on live chat 
Filed under

plugin

 

Hab.la, Chat translated into the language of your choice

Ever start chatting with a visitor on your site only to realize that you had no idea what they were saying? It happens to us at Hab.la all the time.

Luckily for you, and us Google released a translation API today, which let’s site authors make AJAX calls to translate text in real-time.

I added a plugin to hab.la to do just this. The site operator can specify a language they would like to receive chat’s in, and Hab.la will work with Google Translate to make it’s best judgment about translating the messages.

Google’s funky JavaScript loader makes this plugin a little bit complicated to install, but the extra effort is definitely worth it (if you need your chats translated).



<script type="text/javascript" src="http://www.google.com/jsapi">
<script type="text/javascript">
google.load("language", "1");
</script>


<script type="text/javascript" src="http://static.hab.la/js/wc.js">
<script type="text/javascript">
config = wc_config();

// Choose the google abreviation for your language:
//i.e. en, it, ft, de

config.vars["language"] = "en";

// enable the plugin
config.vars["enableLanguageTranslation"] = 1; 

wc_init("1776-526375-10-3058",config );
</script>

The complete list of languages, and more details about the plugin can be found at : http://static.hab.la/examples/translation.html (It is still very much a work in progress so as always we appreciate your feedback!)

That’s it!

Remember you can already customize all the text fields and colors in hab.la, and even skin it useing custom CSS. Read more on the wiki.

More updates on their way!

Filed under  //   google   javascript   language   livehelp   plugin   translation  
Posted by Olark 

Comments [0]

An influx of new users

Things are going pretty well over here at Hab.la central, we’ve had members of our community volunteer to translate hab.la into other languages, we’ve been getting quite a few new signups each day, and things are moving along pretty well on development.

I just wanted to take this time to thank some of our contributors, Graham from Brookins Consulting has built a unoffical Hab.la plugin for the popular eZ Publish CMS system.

If your an eZ Publish user and need help integrating Hab.la, this extension will greatly simplify the process.

http://projects.ez.no/unofficialhabla

Filed under  //   contribute   ez   habla   help   plugin   publish  
Posted by Olark 

Comments [0]

Shhhhh. Quiet. Alpha feature release..

Ok, so I am impatient, but new features do need people testing them, and what is a better way to test a feature than to push it upon all users of hab.la.

To be fair, it is tested and stable. The reason it is still in beta is because it is not compatible with all Jabber clients. I.e. it does not work with iChat; however, it does work with Adium and Meebo.

So without further ado, the new feature is the ability to assign usernames to your web site’s visitors using javascript. (i.e. it is possible to replace webuser1 with cms user, so when you chat with your visitors you’ll know WHO they are. So instead of webuser1 on your buddylist, you’ll now see “Donald Trump” or “John Doe” or “insert registered visitor to your site here”.

So, as per policy, I am not going to provide explicit documentation and howto’s, (especially since this is an alpha feature), but here’s the trick, write some code in your CMS to insert the user’s name into the javascript that start’s hab.la. The config variable you need to add is:

config.vars["force_nickname"] = "CMS USERNAME";

So you could imagine writing some code in PHP that looked like:

<?php
if($user_is_logged_in && $username){ 
?>
config.vars["force_nickname"] = "<?php=$username?>"; 
<?
}
?>

Remember, we are still beta testing this feature, so please let us know if you run into any problems. We know for a fact that it will probably NEVER work with iChat, so I guess we’ll encourage everyone to use Adium :-), or at least anyone who wants super cool features of this sort :-).

For more information about customizing the Hab.la window, see: .. customizing-the-chat-window

Filed under  //   backend   cms   custom   habla   javascript   livechat   nickname   plugin  
Posted by Olark 

Comments [0]