<?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>GrinGod [dot] Com &#187; GG_Translate</title>
	<atom:link href="http://www.gringod.com/category/software/gg_translate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gringod.com</link>
	<description>Randomised nonsense.</description>
	<lastBuildDate>Thu, 06 Oct 2011 12:03:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Future of Uninstalling GG_Translate</title>
		<link>http://www.gringod.com/2006/10/03/the-future-of-uninstalling-gg_translate/</link>
		<comments>http://www.gringod.com/2006/10/03/the-future-of-uninstalling-gg_translate/#comments</comments>
		<pubDate>Tue, 03 Oct 2006 14:25:21 +0000</pubDate>
		<dc:creator>gringod</dc:creator>
				<category><![CDATA[GG_Translate]]></category>

		<guid isPermaLink="false">http://www.gringod.com/2006/10/03/the-future-of-uninstalling-gg_translate/</guid>
		<description><![CDATA[Having written a couple of plugins for wordpress, most notibly GG_Translate, I&#8217;m starting to get annoyed by some of the features WordPress provides for us plugin writers. Firstly, I want my plugin to register its default options in wordpress when it&#8217;s activated and remove the settings when it&#8217;s deactivated. For this purpose, I assume, the [...]]]></description>
			<content:encoded><![CDATA[<p>Having written a couple of plugins for wordpress, most notibly GG_Translate, I&#8217;m starting to get annoyed by some of the features WordPress provides for us plugin writers.  </p>
<p>Firstly, I want my plugin to register its default options in wordpress when it&#8217;s activated and remove the settings when it&#8217;s deactivated.  For this purpose, I assume, the wordpress devs have provided <em>activate_[plugin name]</em> and <em>deactivate_[plugin name]</em> action hooks, so I can have my functions executed when these actions happen.  The downside is that in order to attach to these hooks I need to use the full folder and file name of the plugin, so for using them with the GG_Translate plugin I need to do the following:</p>
<p><code>add_action('deactivate_GG_Translate/GG_Translate.php', array('GG_Translate_Admin', 'deactivate'));</code></p>
<p>Now you may think that this really isn&#8217;t a major issue, but what happens if the person installing the plugin decides that they don&#8217;t want to put my plugin in a folder called GG_Translate, i that case I then need to start figuring out what folder they have put my plugin in&#8230; if in fact they have put it in a folder!  Come on guy&#8217;s you must be able to think of a better solution.</p>
<p>Surely the fact that each plugin must be uniquely named means that they should be able to use the plugin name, e.g.:</p>
<p><code>add_action('deactivate_GG_Translate', array('GG_Translate_Admin', 'deactivate'));</code></p>
<p>Next up, wordpress has a really nice interface for viewing and editing all settings saved by wordpress and installed plugins (http://www.myblog.com/wp-admin/options.php).  This interface however only allows for the viewing of settings and doesn&#8217;t provide for the deletion of settings.  If I want to delete a setting that an untidy plugin has created then I have to either write a quick-and-dirty plugin for the purpose of removing the setting, or I need to dive into the database and delete it by hand&#8230; not very user-friendly if you ask me.</p>
<p>Another thing, whilst digging around in the core wordpress code I noticed some inconsistencies.  It seems entirely random as to whether or not data being sent to the database will be escaped before hitting the database.  It seems too easy for a plugin developer to send a string to the database that could <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9TcWxfaW5qZWN0aW9u">wipe the database clean</a>.  I think wordpress needs a much more uniform approach to database access.</p>
<p>Finally, its about time that wordpress started taking advantage of the object oriented features provided by PHP.  I&#8217;ll give them their due, they are working on it but I&#8217;d rather they were working quicker.  I also can&#8217;t wait for PHP6 to come out (although thats still way over the horizon) as hopefully the namespaces will sort out all the plugin function naming headaches.  Although, I&#8217;m not about to hold my breath for either of these.</p>
 <img src="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=526" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2006/10/03/the-future-of-uninstalling-gg_translate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GG_Translate Now With Auto-Update</title>
		<link>http://www.gringod.com/2006/10/02/gg_translate-now-with-auto-update/</link>
		<comments>http://www.gringod.com/2006/10/02/gg_translate-now-with-auto-update/#comments</comments>
		<pubDate>Mon, 02 Oct 2006 17:26:59 +0000</pubDate>
		<dc:creator>gringod</dc:creator>
				<category><![CDATA[GG_Translate]]></category>

		<guid isPermaLink="false">http://www.gringod.com/2006/10/02/gg_translate-now-with-auto-update/</guid>
		<description><![CDATA[I&#8217;ve just posted a new version of GG_Translate in my download section (0.2.27). Those of you that have downloaded the latest version of the weekend will already have a preview as to whats new in this version. This update adds auto-updating of the plugin as soon as I put a new version online. This is, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just posted a new version of GG_Translate in my download section (0.2.27).  Those of you that have downloaded the latest version of the weekend will already have a preview as to whats new in this version.  This update adds auto-updating of the plugin as soon as I put a new version online.  This is, however, a very beta if not alpha version of the auto-updater.</p>
<p>Please note that in order to use the auto-updater your web-server must be allowed to use the fopen in php to open files on remote servers.  If you&#8217;re not sure whether it does or not then either just try the plugin and if it doesn&#8217;t work revert back to an older version, or you can give me a shout and I&#8217;ll help you out.</p>
<p>As always the latest version is available on my <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5ncmluZ29kLmNvbS9kb3dubG9hZHM=">downloads page</a>.</p>
<p>I&#8217;m also going to write up the instructions as to how to create an auto-updating plugin.  I also want to make it so that it is an intelligent auto-updater that doesn&#8217;t need to download <em>all</em> the plugin files for each update but only those that have changed.</p>
 <img src="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=525" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2006/10/02/gg_translate-now-with-auto-update/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>GG_Translate 0.2.19</title>
		<link>http://www.gringod.com/2006/09/22/gg_translate-0219/</link>
		<comments>http://www.gringod.com/2006/09/22/gg_translate-0219/#comments</comments>
		<pubDate>Fri, 22 Sep 2006 11:03:56 +0000</pubDate>
		<dc:creator>gringod</dc:creator>
				<category><![CDATA[GG_Translate]]></category>

		<guid isPermaLink="false">http://www.gringod.com/2006/09/22/gg_translate-0219/</guid>
		<description><![CDATA[I&#8217;ve just uploaded the latest version of my wordpress translation plugin &#8211; GG_Translate. As previous stated, this update adds an administration page to the plugin that allows users to select translation engine order of preference, base language for the blog, the url format for the translation links, and the maximum number of translation links to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just uploaded the latest version of my wordpress translation plugin &#8211; GG_Translate.  As <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5ncmluZ29kLmNvbS8yMDA2LzA5LzE5L2dnX3RyYW5zbGF0ZS11cGRhdGUtaW1taW5lbnQv">previous stated</a>, this update adds an administration page to the plugin that allows users to select translation engine order of preference, base language for the blog, the url format for the translation links, and the maximum number of translation links to display.</p>
<p>I have also checked to make sure that the available translations are up-to-date.</p>
<p>In the administration page I&#8217;ve addeda link for users to check for updates but I shall be replacing that with an automatic check for updates.  Another feature that has been requested is flag icons for the languages, I have started working on this now and I should have a trial version on my blog before too long.</p>
<p>THe latest version can now be downloaded from my <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5ncmluZ29kLmNvbS9kb3dubG9hZHMv">downloads page</a>.</p>
 <img src="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=522" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2006/09/22/gg_translate-0219/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>GG_Translate Update Imminent</title>
		<link>http://www.gringod.com/2006/09/19/gg_translate-update-imminent/</link>
		<comments>http://www.gringod.com/2006/09/19/gg_translate-update-imminent/#comments</comments>
		<pubDate>Tue, 19 Sep 2006 16:51:36 +0000</pubDate>
		<dc:creator>gringod</dc:creator>
				<category><![CDATA[GG_Translate]]></category>

		<guid isPermaLink="false">http://www.gringod.com/2006/09/19/gg_translate-update-imminent/</guid>
		<description><![CDATA[I&#8217;ve finally got myself organised and started working on an update to my GG_Translate plugin for wordpress. The main feature to be added is an administration page to allow you to configure the way the plugin works, currently you can set the translation engine order and the base language that the blog is published in. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally got myself organised and started working on an update to my <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dwLXBsdWdpbnMubmV0L3BsdWdpbi9HR19UcmFuc2xhdGUv">GG_Translate plugin</a> for <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy53b3JkcHJlc3Mub3Jn">wordpress</a>.</p>
<p>The main feature to be added is an administration page to allow you to configure the way the plugin works, currently you can set the translation engine order and the base language that the blog is published in.  I&#8217;m working on defining the link format and I might throw in a check for updates feature.</p>
<p>Hopefully the new version should be hitting the net in the next day or so, depending on my work load.</p>
 <img src="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=520" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2006/09/19/gg_translate-update-imminent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spelling Correction &amp; Code Cleanup</title>
		<link>http://www.gringod.com/2006/09/11/spelling-correction-code-cleanup/</link>
		<comments>http://www.gringod.com/2006/09/11/spelling-correction-code-cleanup/#comments</comments>
		<pubDate>Mon, 11 Sep 2006 09:00:50 +0000</pubDate>
		<dc:creator>gringod</dc:creator>
				<category><![CDATA[GG_Translate]]></category>

		<guid isPermaLink="false">http://www.gringod.com/2006/09/11/spelling-correction-code-cleanup/</guid>
		<description><![CDATA[Thanks to and email from Fred I have just posted my first update to GG_Translate in quite some time. He spotted a spelling mistake which, when he corrected it caused an error and so he sent me an email. This has now been fixed and, at the same time, I removed some debugging code that [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to and email from <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3RoaXN3YXlwbGVhc2UuY29tL2V4dHJhLWV4dHJhLw==">Fred</a> I have just posted my first update to GG_Translate in quite some time.  He spotted a spelling mistake which, when he corrected it caused an error and so he sent me an email.  This has now been fixed and, at the same time, I removed some debugging code that should have been taken out a long time ago.</p>
<p>Now that I know that there are people out there using GG_Translate I will finally get around to adding an admin panel to the plugin.  This will allow site administrator to specify the language in which the code is written and also choose the order to preference of translation engine.  I guess its also about time that I check which languages that translation engines support in case new ones have been added.</p>
<p>Share and enjoy <img src='http://www.gringod.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
 <img src="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=518" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2006/09/11/spelling-correction-code-cleanup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GG_Translate 0.1b</title>
		<link>http://www.gringod.com/2006/04/11/gg_translate-01b/</link>
		<comments>http://www.gringod.com/2006/04/11/gg_translate-01b/#comments</comments>
		<pubDate>Tue, 11 Apr 2006 10:30:16 +0000</pubDate>
		<dc:creator>gringod</dc:creator>
				<category><![CDATA[GG_Translate]]></category>

		<guid isPermaLink="false">http://www.gringod.com/2006/04/11/gg_translate-01b/</guid>
		<description><![CDATA[GG_Translate is a WordPress plugin that provides site users with links to translate the blog into their own language. The plugin detects which languages the users browser will accept and, if there are any which are different to the blogs published language, it will provide links to translations in those languages. For translations the plugin [...]]]></description>
			<content:encoded><![CDATA[<p>GG_Translate is a WordPress plugin that provides site users with links to translate the blog into their own language.</p>
<p>The plugin detects which languages the users browser will accept and, if there are any which are different to the blogs published language, it will provide links to translations in those languages.  For translations the plugin uses the Google and Altavista Babel translation engines, favouring the Babel engine over the Google engine.  If no translations are available for a particular translation a link will not be provided.</p>
<p>Currently there is no administration panels for the plugin so configuration changes must be made in the source code, this will change in future versions.</p>
<p><span id="more-493"></span></p>
<p>The plugin provides two end users fucntions:</p>
<h3>can_provide_links()</h3>
<p>Takes no arguments are return true if translation links can be provided, otherwise false;</p>
<h3>translate_links($message=&#8217;%to&#8217;, $before=&#8221;, $after=&#8221;, $display=-1)</h3>
<p>Takes four options arguments (default values shown above):</p>
<ul>
<li>$message: a string optionally container %to (language to translate to) and %from (language being translated from).  The default is to just show the language being translated to</li>
<li>$before: string to be prepended before link, e.g. $lt;li&gt;</li>
<li>$after: string to be appended to end of link, e.g. $lt;/li&gt;</li>
<li>$display: number of translation link to show, or -1 to show all available</li>
</ul>
<p>An instance of the GG_Translate class does not need to be created in order to use the functions.  Simply enable the GG_Translate plugin and add GG_Translate::can_provide_links or GG_Translate::translate_link to your theme code files.</p>
<p>The latest version of the plugin can be downloaded from <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5ncmluZ29kLmNvbS93cC11cGxvYWQvc29mdHdhcmUvR0dfVHJhbnNsYXRlL0dHX1RyYW5zbGF0ZS56aXA=">http://www.gringod.com/wp-upload/software/GG_Translate/GG_Translate.zip</a>.    The old versions can be downloaded using their full version number, e.g. the current version of the plugin can be downloaded from <a href="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5ncmluZ29kLmNvbS93cC11cGxvYWQvc29mdHdhcmUvR0dfVHJhbnNsYXRlL0dHX1RyYW5zbGF0ZV8wLjEuNy56aXA=">http://www.gringod.com/wp-upload/software/GG_Translate/GG_Translate_0.1.7.zip</a>.</p>
 <img src="http://www.gringod.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=493" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2006/04/11/gg_translate-01b/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

