<?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>HiddenTao &#187; RandomHello</title>
	<atom:link href="http://www.hiddentao.com/archives/tag/randomhello/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hiddentao.com</link>
	<description>software, websites, mobile, technology</description>
	<lastBuildDate>Mon, 30 Aug 2010 21:08:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>RandomHello plugin &#8211; &#8216;Hello&#8217; in different languages</title>
		<link>http://www.hiddentao.com/archives/2008/08/09/randomhello-plugin-hello-in-different-languages/</link>
		<comments>http://www.hiddentao.com/archives/2008/08/09/randomhello-plugin-hello-in-different-languages/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 14:41:52 +0000</pubDate>
		<dc:creator>ram</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[RandomHello]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.hiddentao.net/?p=62</guid>
		<description><![CDATA[I&#8217;ve always thought it was cool that Flickr would say &#8220;Hello&#8221; to you in a different language each time you logged in. So a couple of days ago I decided to code up a simple WordPress plugin which would allow me (and hopefully others!) to do the same on any page or post. And the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always thought it was cool that Flickr would say &#8220;Hello&#8221; to you in a different language each time you logged in. So a couple of days ago I decided to code up a simple WordPress plugin which would allow me (and hopefully others!) to do the same on any page or post. And the result is the <a href="http://www.hiddentao.com/projects/wordpress-randomhello-plugin/" title="RandomHello plugin page" class="liinternal">RandomHello</a> plugin. The plugin is currently active on this site and you can see it in action on the <a href="http://www.hiddentao.com" class="liinternal">homepage</a>.</p>

<p><span id="more-62"></span></p>

<p>I invoke the plugin in a fail-safe manner, i.e. if the plugin isn&#8217;t active in my WordPress installation then the homepage will just use the plain English &#8220;Hello&#8221;. The code I used for this is:</p>

<p><pre>
if (class_exists('RandomHello') &amp;&amp; method_exists(RandomHello, 'hello'))
{
    RandomHello::hello();
}
else
{
    echo 'Hello';
} 
</pre></p>

<p>All the &#8216;hello&#8217; words in the plugin are grabbed from <a href="http://www.wikihow.com/Say-Hello-in-Different-Languages" class="link-external">http://www.wikihow.com/Say-Hello-in-Different-Languages</a>. The list of languages in the plugin isn&#8217;t comprehensive. You can add more yourself to the array in the plugin code:</p>

<p><pre>
class RandomHello
{
    private static $_Hellos = array(
        "Afrikaans" => "Haai",
        "Albanian" => "Tungjatjeta",
        "A'Leamona" => "Tél-nìdõ",
        "Armenian" => "Barev",
        "Azerbaijani" => "Salam",
        ...
</pre></p>

<p>If you do add some yourself or if you know of any more then let me know and I&#8217;ll add them in to the main plugin distribution <img src='http://www.hiddentao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hiddentao.com/archives/2008/08/09/randomhello-plugin-hello-in-different-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RandomHello</title>
		<link>http://www.hiddentao.com/code/wordpress-randomhello-plugin/</link>
		<comments>http://www.hiddentao.com/code/wordpress-randomhello-plugin/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 06:14:56 +0000</pubDate>
		<dc:creator>ram</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[RandomHello]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.hiddentao.net/?page_id=54</guid>
		<description><![CDATA[RandomHello is a WordPress plugin which provides you with methods to output &#8216;Hello&#8217; in a random language. This plugin requires PHP 5 and at least WordPress 2.3. It has been tested on upto WordPress 2.9. License: GPL 3. Current version: 0.1 Skip to: Installation Usage Options Changelog Installation Download RandomHello. Unzip it into your WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>RandomHello is a <a href="http://www.wordpress.org/" title="Goto WordPress homepage" class="liwp">WordPress</a> plugin which provides you with methods to output &#8216;Hello&#8217; in a random language.</p>

<p>This plugin requires PHP 5 and at least WordPress 2.3. It has been tested on upto WordPress 2.9.</p>

<p>License: <a href="http://www.gnu.org/licenses/gpl.txt" title="GNU General Public License" class="link-external">GPL 3</a>.</p>

<p>Current version: 0.1</p>

<p>Skip to:
<span class="spaced_out"><a href="#installation" class="liinternal">Installation</a></span>
<span class="spaced_out"><a href="#usage" class="liinternal">Usage</a></span>
<span class="spaced_out"><a href="#options" class="liinternal">Options</a></span>
<span class="spaced_out"><a href="#changelog" class="liinternal">Changelog</a></span></p>

<form class='donate' method='post' action='https://www.paypal.com/cgi-bin/webscr'>		<input type='hidden' value='' name='amount'/>		<input type='hidden' value='_xclick' name='cmd'/>		<input type='hidden' value='paypal_donations@hiddentao.com' name='business'/>		<input type='hidden' value='Support RandomHello with a donation' name='item_name'/>		<input type='hidden' value='1' name='no_shipping'/>		<input type='hidden' value='http://www.hiddentao.com/about/thank-you-for-your-donation/' name='return'/>		<input type='hidden' value='http://www.hiddentao.com' name='cancel_return'/>		<input type='hidden' value='GBP' name='currency_code'/>		<input type='hidden' value='' name='page_style'/>		<input type='hidden' value='0' name='tax'/>		<input type='image' alt='PayPal - The safer, easier way to pay online' name='submit' style='border: 0pt none ;' src='http://www.hiddentao.com/images/icons/donate_paypal.png' title='Support RandomHello with a donation'/></form>

<h2 id="installation">Installation</h2>

<ol>
<li><a href="http://www.hiddentao.com/downloads/wordpress-randomhello-plugin-0.1.zip" class="lizip">Download RandomHello</a>.</li>
<li>Unzip it into your WordPress <code>plugins</code> folder such that the plugin files are at: <code>wp-content/plugins/random-hello/...</code></li>
<li>Enable the plugin within your blog&#8217;s administration options.</li>
<li>All done!</li>
</ol>

<h2 id="usage">Usage</h2>

<p>Using RandomHello simply involves calling static methods on the <code>RandomHello</code> class. Full API documentation is provided within the installation package. Or if you wish, you can <a href="http://www.hiddentao.com/wp-content/plugins/random-hello/docs/" title="RandomHello API documentation" class="liinternal">view it online</a>.</p>

<p>For example, this is how you might include it on a page:</p>

<p><pre>
if (class_exists('RandomHello') &amp;&amp; method_exists(RandomHello, 'hello')) : 
  $hello = RandomHello::get_hello(); 
  echo $hello[1]; 
else: 
  echo 'Hello'; 
endif; 
</pre></p>

<h2 id="options">Options</h2>

<p>This plugin does not have an administration interface.</p>

<h2 id="changelog">Changelog</h2>

<ul>
<li>Version 0.1 (Aug 7, 2008) &#8211; the initial release.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hiddentao.com/code/wordpress-randomhello-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
