Skip to main content

Everybody Makes Mistakes

In February 2008, out of necessity, I developed (using publicly available code) my on-the-fly multi-lingual translator applet, which you can see in the top of the sidebar. When originally developed, the applet offered a dozen or so languages, a population which has now grown to 34, from several enhancements.

Some time ago, I became aware of an anomaly which bothered me mildly - if you were viewing an archived post in your blog, and you used the translator, you would get a nicely translated copy of the main page of the blog, not of the archived post. In other words, if you had attempted to translate Make Your Blog Speak More Languages, you would, none the less (today) have gotten a translation of Importing / Exporting Blog Contents Now In Production (Orange) Blogger.

This was slightly annoying, but just one more oddity which I never took the time to research. Until today.

To shorten this narrative somewhat, today I found a small code error which caused the anomaly. If you acquired this applet from the original post Make Your Blog Speak More Languages, your copy will probably have this code problem, too. Fortunately, it's a simple correction, in the header section of the applet code.

<form action="http://www.google.com/translate">

<script language="javascript" type="text/javascript">

<!--

document.write ("<input name=u value="+location.href+" type=hidden>")

// -->

</script><input value="http://blogging.nitecruzr.net/" name="u" type="hidden"/>

<noscript><input value="http://blogging.nitecruzr.net/" name="u" type="hidden"/></noscript>

<input value="en" name="hl" type="hidden"/>

<input value="UTF8" name="ie" type="hidden"/>

<input value="" name="langpair" type="hidden"/>

<input onclick="this.form.langpair.value=this.value" title="Andorran / Catalan" value="en|ca" type="image" height="20" src="http://1.bp.blogspot.com/__v4nth5_ki0/SP-fM7vwhSI/AAAAAAAAHl0/ZoZkfhEb01M/s320/Andorra+-+Catalan+-+ad_flag.png" width="30" name="langpair"/>

...

</form>

<a href="http://blogging.nitecruzr.net/2008/02/make-your-blog-speak-more-languages.html"><span style="font-weight:bold;">What Are These?</span></a>

If your blog is using the code which I provided, you may wish to look in your applet code for the snippet highlighted above, and remove it. I think that will make the applet then reliably translate whatever individual post (archive, label search, what have you) rather than simply the blog main page.

Everybody makes mistakes, sorry about that.

>> Top

Comments

Popular posts from this blog

What's The URL Of My Blog?

We see the plea for help, periodically I need the URL of my blog, so I can give it to my friends. Help! Who's buried in Grant's Tomb, after all? No Chuck, be polite. OK, OK. The title of this blog is "The Real Blogger Status", and the title of this post is "What's The URL Of My Blog?".

Add A Custom Redirect, If You Change A Post URL

When you rename a blog, the most that you can do, to keep the old URL useful, is to setup a stub post , with a clickable link to the new URL. Yo! The blog is now at xxxxxxx.blogspot.com!! Blogger forbids gateway blogs, and similar blog to blog redirections . When you rename a post, you can setup a custom redirect - and automatically redirect your readers to the post, under its new URL. You should take advantage of this option, if you change a post URL.

Adding A Link To Your Blog Post

Occasionally, you see a very odd, cryptic complaint I just added a link in my blog, but the link vanished! No, it wasn't your imagination.