Forums

Google AJAX Translation - No translation due to theme? (10 posts)

  1. ExpertAdmin
    Member
    Posted 2 months ago #

    I have tried to translate my post with your plugin, but can't get it running. i have checked the post before where you mentioned index.php, single.php but it looks different on my theme.

    Would be great if you could help http://schindlwick.com/ea

    The comment translation works just fine and it it a really amazing plugin!

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

  2. monodistortion
    Member
    Posted 2 months ago #

    I just looked at Eximius version 1.03 from here:
    http://wordpress.org/extend/themes/eximius

    You'll need to change three files.

    In the index.php and the single.php file change line 6 from:

    <div class="post">
    

    to

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

    In the page.php file change line 5 from:

    <div class="post">
    

    to

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

    One other strange thing in this theme causes the popup to be shifted over to the right. You can fix this by changing the style.css file on line 69. Just remove that line in the #container section.

    position: relative;
    

    I haven't seen this problem before and I can probably prevent it from happening with some JavaScript in the plugin.

  3. ExpertAdmin
    Member
    Posted 1 month ago #

    Thanks very much for your help my blog is now translating well, really nice plug in!

    The blog that I have posted before http://schindlwick.com/ea is distibuting its posts into my main blog http://schindlwick.com/ I am using a syndicating plug in from http://feedwordpress.radgeek.com/.

    The translation text is not being visible in the main blog, I assume its something that the feedwordpress is not distributing or should you plug in work independent on syndication or not?

  4. monodistortion
    Member
    Posted 1 month ago #

    Hmm, so you have four completely separate blogs that look the same and a fifth blog that gets the RSS feeds from the other four? I'm sure there's an easier way to do the same thing with categories. That sounds like a lot of work.

    Have you done any php editing? This page has more information about displaying categories differently.
    http://codex.wordpress.org/Category_Templates

    I'll look at your page again and see if I can figure it out.

  5. ExpertAdmin
    Member
    Posted 1 month ago #

    yes that's the constuct. All 4 sub blogs are accessible from http://www.schindlwick.com but not the other way round (might change this).

    Solution is zero maintenance as categories, tags, posts all gets syndicated into the main blog as well. This means as soon as I post in one of the sub blogs it gets into the main blog within 1 hour.

    There was no need to do any php editing (besides your translation fix) its all done via "FeedWordPress" plug in.

    Would be great if you could find the root cause why the translation button does not appear.

    Thanks very much in advance for your help.

  6. monodistortion
    Member
    Posted 1 month ago #

    Well, it sounds like a lot more work to me having 5 installations of WordPress instead of one. You have to upgrade WordPress 5 times, upgrade plugins 5 times, make any changes 5 times, etc.

    It looks like the edit you made on single.php in the GRC blog is missing a closing </div> for the content section. See this page:
    http://schindlwick.com/grc/?p=3

  7. monodistortion
    Member
    Posted 1 month ago #

    This is from the feedwordpress.php file:

    # Syndicated items are generally received in output-ready (X)HTML and
    # should not be folded, crumpled, mutilated, or spindled by WordPress
    # formatting filters. But we don't want to interfere with filters for
    # any locally-authored posts, either.
    #
    # What WordPress should really have is a way for upstream filters to
    # stop downstream filters from running at all. Since it doesn't, and
    # since a downstream filter can't access the original copy of the text
    # that is being filtered, what we will do here is (1) save a copy of the
    # original text upstream, before any other filters run, and then (2)
    # retrieve that copy downstream, after all the other filters run, *if*
    # this is a syndicated post

    add_filter('the_content', 'feedwordpress_preserve_syndicated_content', -10000);
    add_filter('the_content', 'feedwordpress_restore_syndicated_content', 10000);

    This bypasses all other filters that use the the_content hook, so it skips over the translation plugin.

    You can try this-- in the file ajaxtranslation.php change line 274 from:

    add_filter( 'the_content', array( &$this, 'processContent' ), 50 );
    

    to:

    add_filter( 'the_content', array( &$this, 'processContent' ), 10005 );
    
  8. ExpertAdmin
    Member
    Posted 1 month ago #

    You are amazing, it has worked!

    Thank you so much for you help. Just need to remember this when I am upgrading your plug in. ;-)

  9. alexhosmer
    Member
    Posted 1 month ago #

    I'm also having difficulty with the plugin. I had no problem until I updated to Wordpress 2.8.4. Then the translate button dissapeared. We're using a mistylook template and the most recent google ajax translation plugin. My website is at http://joseortegaschool.org/

    Thanks for any help you can offer.

  10. monodistortion
    Member
    Posted 1 month ago #

    Alex Hosmer, please start a new thread for your problem.

    It looks like the problem is being caused by the embed quicktime plugin.
    http://wordpress.org/extend/plugins/embed-quicktime/

    The two JavaScript files aren't being linked correctly and the script right after them is causing a JavaScript error.

Reply

You must log in to post.

About this Topic