Forums

Google translate plugin not translating excerpts. (8 posts)

  1. eiland
    Member
    Posted 2 years ago #

    hi,

    I have a page where I add posts to a static page, (built according to static-frontpage-combined-with-dynamic-content) and it now it seems css/js isn’t applied to the translate link at the blog posts.

    I think its has to do with the use to the_excerpt, its not included in the filter hook selection list of the plugin

    Any ideas? thanks!

  2. monodistortion
    Member
    Posted 2 years ago #

    Is that page private? When I follow that link it just gives me a 404 error.

    The button shouldn't show up at all if you use the function the_excerpt. It should only appear if you use the function the_content.

  3. eiland
    Member
    Posted 2 years ago #

    Hi,

    Mmmm, not sure what's happening, try again, now its public.

    The template I'm using is here.

    See my screenshot.

    help is appreciated as I really hate to turn of multi-linguo, but this will make me have to :(

  4. monodistortion
    Member
    Posted 2 years ago #

    Ok, I see the page now.

    Something is going on with the function the_excerpt but it might take a little while to track down.

  5. monodistortion
    Member
    Posted 2 years ago #

    Hi Eiland,

    Try out version 0.4.5 now. It took a few hours to figure out the problem but it should work now. The [Translate] button shouldn't appear when you use the_excerpt anymore.

    For some reason get_the_excerpt uses the filter wp_trim_excerpt which uses the filter the_content which is where this plugin hooks into the posts and pages. I ended up using the php function debug_backtrace() to see if the plugin was getting called by wp_trim_excerpt.

  6. eiland
    Member
    Posted 2 years ago #

    You are my hero!

    I tested it on another blog where I use this mechanism and it works just fine. Ill ask my admin to refresh the plugin, and then i'm ready to go!

    There's another minor issue my admin had to resolve, i'm not sure in how far you are a perfectionist, but ill feed it to you anyway
    - regarding files paths, eg. CSS (see this...)

    the hack:

    there was an issue somewhere where the plugin was generating
    wrong css paths (not recognising symlinks and going bonkers).

    i (my admin) fixed this for google-ajax-translation by adding this line to apache2.conf :

    Alias /wp/wp-content/plugins//eb/apps/wordpress/wp-content/plugins
    /eb/apps/wordpress/wp-content/plugins

  7. monodistortion
    Member
    Posted 2 years ago #

    I don't know why you would need to make an Apache alias. I haven't seen that in any of my testing or on any of the sites I've looked at.

  8. eiland
    Member
    Posted 2 years ago #

    the thing is; the plugin uses these weird paths... but maybe its actually something exotic with our setup which probably has a few symbolic links to many.

    BTW, im going to switch of the plugin for a bit until my admin updates it to your latest version :(

Topic Closed

This topic has been closed to new replies.

About this Topic