homepage Welcome to WebmasterWorld Guest from 54.145.183.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Google adds "notranslate" option for parts of page
amznVibe

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3770439 posted 2:56 pm on Oct 21, 2008 (gmt 0)

Google has finally done something I was hoping they'd years ago.

If you wrap some text on your page with a class of "notranslate" you can force their translation engine to skip it and display it literally:

[googlewebmastercentral.blogspot.com...]

ie. <span class="notranslate">Trademark</span>

You can also do it for an entire page by using "notranslate" in the meta but that would be unusual.

Let's see if other translation engines follow.

ps. What ever happened to Google's project to use United Nations documents to improve the translation engine? Did they follow through or not?

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3770439 posted 6:52 pm on Oct 21, 2008 (gmt 0)

Yes, it's a good gesture. I wonder about the choice of syntax however. I guess we have to assume that they checked their data and picked a class name that is not already used by many webmasters. I think I would have preferred a comment tag syntax rather than a span-plus-class.

Samizdata

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3770439 posted 7:41 pm on Oct 21, 2008 (gmt 0)

I have no problem with the meta tag specific to the company:

<meta name="google" value="notranslate">

But appropriating class names sets a very bad precedent.

I wonder what other classes Google, Yahoo, Microsoft etc will reserve for themselves.

...

Robert Charlton

WebmasterWorld Administrator robert_charlton us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 3770439 posted 8:02 am on Oct 22, 2008 (gmt 0)

I just wonder whether there's a reason they picked class. Perhaps they're looking at class values anyway in the course of returning a translation, so this setup would involve less computation.

As I remember, they preserve text and page formatting on translated pages.

martinibuster

WebmasterWorld Administrator martinibuster us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 3770439 posted 9:23 am on Oct 24, 2008 (gmt 0)

>>>Perhaps they're looking at class values anyway...

Makes you wonder what else they're doing with CSS files. Time to rename class="bold" to class="xyz"? ;)

Maybe using comment tags to mark content blocks (as with the AdSense program) would be more appropriate so as to stay closer within web standards.

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3770439 posted 3:04 pm on Oct 24, 2008 (gmt 0)

Here's a case where invalid markup could affect the outcome of what you wanted to do.

There will be an end tag for the notranslate block but are you sure which one in your code it actually is?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved