WordPress.org

Ready to get started?Download WordPress

Forums

Display translate link from Google Ajax Translation on static home page (7 posts)

  1. jeremycherfas
    Member
    Posted 4 years ago #

    My test blog at http://www.seed2seed.com/blog uses a static home page.

    Is there some way I can get the Translate link to display there? I can put the code in the template, but I do not know what code to insert.

    Thanks

    Jeremy

  2. monodistortion
    Member
    Posted 4 years ago #

    Hmm, I'm not sure how this plugin would work on your home page. It's designed to translate individual posts, pages, or comments, but not excerpts. I see that you're using another translation plugin in the sidebar too.

    Where would you put the [Translate] button? In the sidebar?

  3. rsgrone
    Member
    Posted 4 years ago #

    I was wondering if there was a hack to allow the translate button to appear in the sidebar(s)

    My front page (theme) is nothing more than sidebars all over the place, it works well in the posts and comments

    EXCEPT -- I used the "automatic upgrade" two nights ago and lost the entire blog (well the theme disappeared except the header) won't do that again

    Any suggestions as to how to include the sidebar function in the AJAX?

    I was looking at the code, and after what happened with the auto upgrade (still have not upgraded, installed it again reverting to the original) -- thoughts?

    Here's the url if you would like a quick look see http://worldnewsvine.net

    Ignore the Google Translate buttons on the "front-page/sidebar set-up) and select a post, and it translates well, translates the comments too.

    Thanks

  4. monodistortion
    Member
    Posted 4 years ago #

    I've considered adding a sidebar widget for translation but I haven't worked on it at all yet. Since front pages can be very long it could take a long time to translate an entire page but it would be possible.

    There isn't really any hack I can tell you.

  5. rsgrone
    Member
    Posted 4 years ago #

    Just saw you up on the site (was doing security updates

    Well, the front page is made up of maybe 6 "sidebars" each containing a widget -- I saw all the function calles in the AJAX I was just wondering is if it would be that easy to create another

    I follow waht you are saying about "length" but some of my posts are rather lenghty and that does well

    Just a thought, I wonder if there is a way to install translation on the feeds?

    Thanks

  6. monodistortion
    Member
    Posted 4 years ago #

    The other option that I could think of is using the code provided by Google here in a text widget:
    http://translate.google.com/translate_tools

  7. jeremycherfas
    Member
    Posted 4 years ago #

    Thanks for your suggestions, monodistortion. I've got two plugins because I have been trying to decide which I prefer. The one in the sidebar does work for the static home page. I think I like the idea of having the translate ability inside the post or page best.

    Now I'm thinking I could use the widget Logic plugin to make the translator widget show up in the home page sidebar, but not in the other pages, which would have your Translate option.

    Jeremy

Topic Closed

This topic has been closed to new replies.

About this Topic