If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
This plugin is deemed useless and its development has been dropped. Rah_google_translate was a widget that generated preset HTML. And fact is, this plugin isn’t needed for that markup. It’s very easy to generate the same output and functionality with Textpattern’s core tags, which also gives you more flexibility than rah_google_translate’s widget could provide.
Functionality wise what the plugin ever did was to link to Google’s Translation service’s end-point links. This links have the following format:
u parameter is the translated page’s URL and
langpair consists of the site’s language and the translated language (i.e.
en|de). An working translation URL would like this:
Which translates into a form painlessly. The following snippet generates a working translation form that has the same structure as rah_google_translate’s widget:
<form method="get" action="http://translate.google.com/translate"> <input type="hidden" name="u" value="<txp:site_url /><txp:php> echo ltrim(page_url(array('type' => 'page_url')), '/'); </txp:php>" /> <select name="langpair"> <option value="en|de">German</option> <option value="en|fi">Finnish</option> </select> <button type="submit">Translate this page</button> </form>
There you have it. The same thing, no plugin required. More flexibility. The snippet uses site_url and page_url to generate the current (translated) page’s location. Page_url provides the requested URL, while site_url gives out the site’s url.
Archived [?]: not-needed, dropped