Hands up if you use a plugin for automatically converting your wordpress blog content to other languages.
Now keep your hands up if you add scripts to your blog that google happily munches through and translates for you.
For those of you loyal readers beginning to get sore arms here is the solution which will only take a moment.
Go to your wordpress install directory
Edit the file wp-includes/js/quicktags.js
do a find and replace for "<code>", replace with "<code class=notranslate>", including the ”
There should be 2 occurrences in the file.
Save the file and you are done.
You will need to edit any existing posts in your database to change the contents of wp_posts again replacing <code> with <code class=notranslate> a simple php/mysql script would achieve this if you have a large blog.
If you can’t come up with your own php script to do this, leave me a comment and I will write one.
