WordPress.org

Ready to get started?Download WordPress

Forums

Google Language Translator
[resolved] translator changing text without translation (8 posts)

  1. robinsonjas
    Member
    Posted 8 months ago #

    my site's staff page is having an issue with one staff member's name. http://elmdev.org/staff
    the staff member "Sean Rhoades" is being changed on page load to "Sean Oades"...I can change his name to "Shawn Rhoades" and it's ok - This one is puzzling me...
    Thx
    JR

    http://wordpress.org/plugins/google-language-translator/

  2. robinsonjas
    Member
    Posted 8 months ago #

    Ok, I discovered something...On initial page load ( I used a different browser) the staff member's name is correct.
    I see this in code:

    <header>
        <h1>
            Sean Rhoades
        </h1>
    </header>

    When I select a translation (English or Spanish) it changes the name to Oades???

    <header>
        <h1>
            <font>
                <font>
                    Sean Oades
                </font>
            </font>
        </h1>
    </header>
  3. apostlepoe
    Member
    Posted 8 months ago #

    Hi,

    That's a Google thing. I went to the main site and got the same results.

    http://translate.google.com/

    I found this site which might be helpful. I've never tries this so can't say whether or not it will work.

    http://stackoverflow.com/questions/18188351/google-translate-create-white-list

    Hope it helps.

  4. robinsonjas
    Member
    Posted 8 months ago #

    Cool, I'll check it out...sorry I didnt even think to check Google :)

  5. Rob Myrick
    Member
    Plugin Author

    Posted 8 months ago #

    Right on, apostlepoe!

    Yes, use that to prevent translation of certain text, it works like a charm.

    robinsonjas, please let us know how it goes!

  6. robinsonjas
    Member
    Posted 8 months ago #

    hmm...still does it
    his staff page contents is this:
    <span class="e;notranslate"e;>Sean Rhoades</span>
    but Google is still translating it...I'm not even sure if it'll work for the header, but I stuck the <span> there too

  7. robinsonjas
    Member
    Posted 8 months ago #

    ...got it...
    class="notranslate"

    <span class="notranslate">Sean Rhoades</span>
    ..even works on h1

  8. Rob Myrick
    Member
    Plugin Author

    Posted 8 months ago #

    Awesome, yes I don't understand what the e; was there for in the example above.

    I'm glad it works!

    Thanks for using the plugin - vote or leave a review if you want!

    Rob Myrick

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.