Forums

[Plugin: Google AJAX Translation] installed the pluging but it doesn't do anything (7 posts)

  1. basrik
    Member
    Posted 1 month ago #

    If tried the plugin on my site. The button appears on the page and the screen with the flags will open but than it does nothing.
    I'm using a theme made with Artisteer.
    I have already tried to replace the code with the code i found in som of your posts but it does not do the trick.

    http://www.ce-moment.com/wp

    http://wordpress.org/extend/plugins/google-ajax-translation/

  2. simonnicol
    Member
    Posted 1 month ago #

    I'm having exactly the same problem. I installed and activated the plugin, I have ticked all the countries (languages) and I can see the [translate] link.

    When I click on any flag to activate the translation - nothing happens...

    I have updated to WordPress 2.8.5, but I do not believe this is the problem. I'll keep working on this to try and find what's going wrong and will post back when/if I find a solution.

  3. simonnicol
    Member
    Posted 1 month ago #

    Ok basrik, I've got some results.

    I've got it working with Artisteer template files - and yes you're right the problem is the template file.

    I have posted my findings here:

    http://www.caspianit.co.uk/google-ajax-translation-not-working/

  4. monodistortion
    Member
    Posted 1 month ago #

    Hi Basrik,
    Did you fix your problem? It looks like the plug is functioning ok on your site. The popup doesn't appear in quite the right place though. I think that may be fixed in the next version.

  5. monodistortion
    Member
    Posted 1 month ago #

    Simonnicol,
    I looked at your post and I'm not sure if you figured out the problem or not. I've looked at an Artisteer theme before and the code they generate is kind of messy for my tastes but if they work for you that's ok.

    The problem with themes is when they don't have a unique id for each post. If you look at the code in index.php, single.php, and page.php of the default theme each post is wrapped in a div something like:

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    

    This results in code like:

    <div class="post-147 post hentry category-site-news category-studies-works-in-progress tag-galleries tag-sketches tag-studies" id="post-147">
    

    with the important part being id="post-147". Without this, the translate plugin doesn't know what portion of the page to translate.

    So if you're comfortable editing php code yourself it isn't too hard to fix most themes. Otherwise you can upload the files somewhere and I can tell you how to fix them.

    (The next version of the plugin will have a partial fix for this.)

  6. tio85
    Member
    Posted 1 month ago #

    Hi monodistortion,

    I tried your suggestion but it didn`t work for me or I placed the Code wrong. I put some additional div tags in my index.php and single.php but the problem remains. The link "translate" appears but when you click on it nothing happens.
    Can you take a look at my blog? Perhaps you can find the problem.

  7. monodistortion
    Member
    Posted 1 month ago #

    Hi Tio85,
    Can you start a new thread for your problems?

    It looks like you're using this theme:
    http://www.elegantthemes.com/gallery/coldstone/

    I can see a couple problems with it:
    1. It's using an older version of jQuery for the menu which can conflict with the included WordPress version.
    2. Each post doesn't have a unique id like the default theme.

Reply

You must log in to post.

About this Topic