<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ken&#039;s Sandbox &#187; OS Commerce</title>
	<atom:link href="http://blog.rwre.com/archives/category/os-commerce/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.rwre.com</link>
	<description>Beer, Wine, Golf and code</description>
	<lastBuildDate>Sat, 06 Aug 2011 01:38:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding the Google Translate Widget to OSCommerce</title>
		<link>http://blog.rwre.com/archives/47</link>
		<comments>http://blog.rwre.com/archives/47#comments</comments>
		<pubDate>Thu, 01 Oct 2009 19:07:21 +0000</pubDate>
		<dc:creator>Ken Gregg</dc:creator>
				<category><![CDATA[OS Commerce]]></category>
		<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://kens.sandbox.rwre.com/archives/47</guid>
		<description><![CDATA[<p>When we first installed OS Commerce for our ReloadingInternational site we tried installing and enabling several languages. Since the site is targeted at &#8220;international&#8221; customers, we thought this would be great.</p>
<p>The problem with that is, any custom pages have to be translated and maintenance got to be a nightmare any time a page changed. It [...]]]></description>
			<content:encoded><![CDATA[<p>When we first installed OS Commerce for our ReloadingInternational site we tried installing and enabling several languages. Since the site is targeted at &#8220;international&#8221; customers, we thought this would be great.</p>
<p>The problem with that is, any custom pages have to be translated and maintenance got to be a nightmare any time a page changed. It finally got to the point we had to disable any languages other than English.</p>
<p>I had discovered a jquery plugin that we could use to translate specific parts of pages (or entire pages) using Google&#8217;s translation service. I just never quite got around to it.</p>
<p>A couple of days ago with the announcement of the <a href="http://translate.google.com/translate_tools">Google Translation widget</a>, Google solved the problem for me. It took all of 10 minutes and the site is now available in 39 languages. Here&#8217;s how.</p>
<p>Because OS Commerce includes several languages, it also includes a language selection box. The code for this box is located in catalog/includes/boxes/languages.php. All I did was replace the box contents with the Google widget code. Here is what my finished include file looks like: <a href="http://blog.rwre.com/uploads/languages.phps">languages.php</a></p>
<p>We have had cases where English speaking customers have helped their non English speaking friends place orders so this should be a nice enhancement to the site.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rwre.com/archives/47/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

