Testing, testing

Posted by Andrea under News

Just a brief administration post to let you know I’m testing a translation plugin here on this blog. Since all posts are written in English, I figured my worldwide audience would find posts in their language quite handy. My second-language skills are limited to being able to yell at my kids or recieve instruction en Français. Je parle français horrible, avec un accent incompréhensible Acadien, ici sur la côte est du Canada.

As an added bonus, you may leave comments in any language. If translation is available, a grey bar should appear at the top of the page.

4 Responses to “Testing, testing”

  1. codedmind Says:

    Hy,

    Any info when a new version of wpmu ??? (because 2.5 is out)

    Thanks

  2. Dr. Mike Wendell Says:

    Codedmind, there’s a thread here in the mu forums.

  3. Mat_ Says:

    Hi !!!

    I’m actually developping a plugin to make translation on the fly of an article, or an complete page of a blog.
    I’m using the GooGle API…
    And i was thinking about allowing people to make their comment in their language. Wait and see

    Mat_

  4. Luc Says:

    Ma famille est Acadienne! :)

    Translation is a good idea - though automated translation can sometimes be a bit “off” it’s amazing to give you a good idea of what the content is.

    Interesting blog. I just discovered it. I’ll be visiting again!

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image



google.load("language", "1"); var curstate = 0; var hasloaded = 0; function bnc_show_translated() { if (hasloaded == 0) { bnc_lang_callback(); hasloaded = 1; } for (i = 0; i < 4; i++) { var elem = $("bnc_original_" + i); if (elem) { if (curstate) { elem.show(); } else { elem.hide(); } } } for (i = 0; i < 4; i++) { var elem = $("bnc_trans_" + i); if (elem) { if (curstate) { elem.hide(); } else { elem.show(); } } } if (curstate) { $("bnc_trans_state1").show(); $("bnc_trans_state2").hide(); curstate = 0; } else { $("bnc_trans_state1").hide(); $("bnc_trans_state2").show(); curstate = 1; } } function bnc_detect_div(div_id) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; if (text.length > 0) { google.language.detect(text, function(result) { if (!result.error) { if (result.language != "en") { if (result.confidence > 0.25) { $("bnc_translating").show(); bnc_xlate_div(result.language, div_id, "en"); } } } } ); } } } function bnc_xlate_div(src_lang,div_id,o_lang) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; google.language.translate(text, src_lang, o_lang, function(result) { var translated = document.getElementById(div_id); if (result.translation) { translated.innerHTML = result.translation; } }); } } function bnc_lang_callback() { bnc_xlate_div("en", "bnc_lang_i_0_67", "en"); bnc_xlate_div("en", "bnc_lang_i_1_67", "en"); bnc_xlate_div("en", "bnc_lang_i_2_67", "en"); bnc_xlate_div("en", "bnc_lang_i_3_67", "en"); bnc_xlate_div("en", "bnc_lang_i_4_67", "en"); bnc_xlate_div("en", "bnc_lang_i_5_67", "en"); bnc_xlate_div("en", "bnc_lang_i_6_67", "en"); bnc_xlate_div("en", "bnc_lang_i_7_67", "en"); bnc_xlate_div("en", "bnc_lang_i_8_67", "en"); bnc_xlate_div("en", "bnc_lang_i_9_67", "en"); bnc_xlate_div("en", "bnc_lang_i_10_67", "en"); bnc_xlate_div("en", "bnc_lang_i_11_67", "en"); bnc_xlate_div("en", "bnc_lang_i_12_67", "en"); bnc_xlate_div("en", "bnc_lang_i_13_67", "en"); bnc_xlate_div("en", "bnc_lang_i_14_67", "en"); } function bnc_startup() { bnc_xlate_div("en", "bnc_translate_info", "en"); bnc_xlate_div("en", "bnc_translate_info2", "en"); bnc_detect_div("bnc_lang_i_0_67");bnc_detect_div("bnc_lang_i_1_67");bnc_detect_div("bnc_lang_i_2_67");bnc_detect_div("bnc_lang_i_3_67");bnc_detect_div("bnc_lang_i_4_67");bnc_detect_div("bnc_lang_i_5_67");bnc_detect_div("bnc_lang_i_6_67");bnc_detect_div("bnc_lang_i_7_67");bnc_detect_div("bnc_lang_i_8_67");bnc_detect_div("bnc_lang_i_9_67");bnc_detect_div("bnc_lang_i_10_67");bnc_detect_div("bnc_lang_i_11_67");bnc_detect_div("bnc_lang_i_12_67");bnc_detect_div("bnc_lang_i_13_67");bnc_detect_div("bnc_lang_i_14_67"); } google.setOnLoadCallback(bnc_startup);
Close
E-mail It
This blog has been fine-tuned with 13 WordPress Tweaks.