Posted by & filed under Uncategorized.

There is no one language of the Internet.

That’s why Olark has always let you communicate with visitors to your website using whatever language you choose to speak. Our users come from all over the world, so we thought “what else can we do?”

Well, many of you already know you can customize some of the messages in the Olark bar, here. This page now lets you customize all the messages in the Olark bar, so you can be sure your visitors will know how to contact you.

We thought this was pretty good, but then several of you told us your website supports multiple languages, so shouldn’t Olark be able to do the same? Well, we’re happy to announce that yes we can! You can set all the messages in the Olark bar, on a per-page basis, by adding this Javascript code to the relevant pages:

<script type='text/javascript'>
   olark.configure('locale.welcome_title', "Click to Chat");
   olark.configure('locale.chatting_title', "Live Help: Now Chatting");
   olark.configure('locale.unavailable_title', "Live Help: Offline");
   olark.configure('locale.busy_title', "Live Help: Busy");
   olark.configure('locale.away_message', "Our live support feature is currently offline, Please try again later.");
   olark.configure('locale.loading_title', "Loading Olark...");
   olark.configure('locale.welcome_message', "Welcome to my website.  You can use this chat window to chat with me.");
   olark.configure('locale.busy_message', "All of our representatives are with other customers at this time. We will be with you shortly.");
   olark.configure('locale.chat_input_text', "Type here and hit  to chat");
   olark.configure('locale.name_input_text', " and type your Name");
   olark.configure('locale.email_input_text', " and type your Email");
   olark.configure('locale.offline_note_message', "We are offline, send us a message");
   olark.configure('locale.send_button_text', "Send");
   olark.configure('locale.offline_note_thankyou_text', "Thank you for your message.  We will get back to you as soon as we can.");
   olark.configure('locale.offline_note_error_text', "You must complete all fields and specify a valid email address");
   olark.configure('locale.offline_note_sending_text', "Sending...");
   olark.configure('locale.operator_is_typing_text', "is typing...");
   olark.configure('locale.operator_has_stopped_typing_text', "has stopped typing");
   olark.configure('locale.introduction_error_text', "Please leave a name and email address so we can contact you in case we get disconnected");
   olark.configure('locale.introduction_messages', "Welcome, just fill out some brief information and click 'Start chat' to talk to us");
   olark.configure('locale.introduction_submit_button_text', "Start chat");
   olark.configure('locale.disabled_input_text_when_convo_has_ended', "chat ended, refresh for new chat");
   olark.configure('locale.disabled_panel_text_when_convo_has_ended', "This conversation has ended, but all you need to do is refresh the page to start a new one!");
   olark.configure('locale.name_input_text', "Pre-Chat Survey NAME");
   olark.configure('locale.phone_input_text', "Pre-Chat Survey PHONE");
   olark.configure('locale.email_input_text', "Pre-Chat Survey EMAIL");
   olark.configure('locale.send_button_text', "Pre-Chat Survey SENDBUTTON");

</script>

( it’s as simple as replacing the text like, “Click to Chat” with  “clic para chatear.”)

…and if you use our Greeter feature, you can also make translated versions of your list of welcome messages using this configuration:

<script type='text/javascript'>
   olark.configure('WelcomeAssist.welcome_messages', ["¡Bienvenidos a nuestro sitio!"]);
</script>

We delight in delighting our users, so let us know what other ways Olark can support your favorite language.

  • Roxed4ever

    aun no me traduce al español cuando escriben en otro idioma en mi pagina

  • leadzumba

    I really don’t understand the script. What is the output of the code?

  • http://www.olark.com Matt

    @leadzumba: this is just a configuration script for localizing Olark – you should make sure you have Olark installed on your page as well :)

  • http://www.misitiofacil.com Webjunkie00

    Guys once Olark is loaded, you’ll need to create a switch for your website according to the current language for example:

    if (lang == ‘es’) {
    olark.configure(‘locale.welcome_title’, “Soporte en vivo”);
    }else{
    olark.configure(‘locale.welcome_title’, “Click to Chat”);
    }

  • Amaheshwari1

    Hi .nice css and chat window

  • graceac

    I love you guys. Pretty neat fix!

  • JB

    hi guys, its good to have this script, we can improve it further like Webjunkie00 mentioned.
    I must suggest to non-technical guys to use Olark Panel & do Text Customization + use any specific lanaguge there & Save.

    There you can also use HTML TAGS + CSS to FORMAT YOUR TEXT.

    Thanks
    JB