Indo-European languages of Europe

Proto-Indo-European Language, Indo-European Languages & European Union Language Policy

Grammar

Wordpress Translation Plugin

This plugin has another simpler version, the Wordpress Translator Widget, whose latest version might be downloaded from the official site at Wordpress Plugin Repository; it should be the preferred plugin for those completely unfamiliar with PHP, HTML and Wordpress in general.

NOTE: This plugin isn’t discontinued, because many bloggers are still asking for a simple, customizable PHP code to insert in their personal themes to link to automatic translations.

Dnghu.php is the very, very simple PHP script I am using used for this blog, which adds translations from and into all language pairs offered by Google, and some pairs offered by web translation engines like Altavista, InterTrans, Globe, Interpret and others, depending on their availability and efficiency. I prepared the first script to be able to offer our European Union Language Policy and to make our Indo-European grammar in any possible language through machine web translation.
Unlike other scripts, which are also Wordpress translator utilities, dnghu.php does not use flag images, it is probably the simplest possible script you can write to add this functionality, and it should be valid XHTML.

These are the scripts prepared for different language pairs, named “dnghu_ln_x.php”, where ln is the original language code to translate from (the main language your blog is written in), and _x being either v, which stands for vertical (sidebar) script (like the one used in Europe’s Indo-European), and h, for a horizontal one - like the one you can see in the header of Europe’s News website. Other examples might be seen in the following sites: Indo-European languages, in Proto-Indo-European language, in Indo-European languages history and maps, Indo-European languages forum and Indo-European languages lessons.

It works in Wordpress 2.0, 2.1, 2.2, 2.3, 2.5 and 2.6; I haven’t tried it out in other versions.

Installation (you should know some basic HTML to deal with files, PHP is not necessary):

  1. Upload the dnghu_ln_x.php file to your plugins folder, usually wp-content/plugins/
  2. Activate the plugin on the Wordpress plugin screen.
  3. Go to the directory of your Wordpress theme, usually in wp-content/themes/ - if you haven’t selected a different one, it is the /default/
  4. Open the file where you want the script to appear, normally header.php (if you want it in the header), sidebar.php (if you want it in the sidebar) or footer.php
  5. Add <?php transdukete(); ?> exactly where you want the translation utility to appear within the part of the page you’ve already chosen

Download

NOTE: ZIP package includes both the dnghu_v(ertical) and the dnghu_h(orizontal) versions - you should activate only one plugin in the same blog.

24/7/2008 - v. 1.3, From English, into all language pairs from Google, and some from InterTrans, Interpret and others: Wordpress English Translator

24/7/2008 - v. 1.3, From German, into all language pairs of Google: Wordpress Deutsch Übersetzer

24/7/2008 - v. 1.3, From French, into all language pairs of Google: Wordpress Traducteur Français

24/7/2008 - v. 1.3, From Spanish, into all language pairs of Google, and also Catalan and Galician from Translendium: Wordpress Traductor Español

24/7/2008 - v. 1.3, From Italian, into all language pairs of Google: Wordpress Traduttore Italiano

24/7/2008 - v. 1.3, From Portuguese, into all language pairs of Google: Wordpress Tradutor Português

24/7/2008 - v. 1.3, From Dutch, into all language pairs of Google: Wordpress Nederlands Vertaler

24/7/2008 - v. 1.3, From Swedish, into all language pairs of Google: Wordpress Svenska Översätter

24/7/2008 - v. 1.3, From Arabic, into all language pairs of Google: Wordpress Arabic Translator

24/7/2008 - v. 1.3, From Bulgarian, into all language pairs of Google: Wordpress Български преводач

24/7/2008 - v. 1.3, From Czech, into all language pairs of Google: Wordpress Česky překladatel

24/7/2008 - v. 1.3, From Danish, into all language pairs of Google: Wordpress Dansk oversætter

24/7/2008 - v. 1.3, From Greek, into all language pairs of Google: Wordpress Ελληνική μεταφραστή

24/7/2008 - v. 1.3, From Finnish, into all language pairs of Google: Wordpress Suomi kääntäjä

24/7/2008 - v. 1.3, From Hindi, into all language pairs of Google: Wordpress हिन्दी अनुवादक

24/7/2008 - v. 1.3, From Croatian, into all language pairs of Google: Wordpress Hrvatski prevoditelj

24/7/2008 - v. 1.3, From Japanese, into all language pairs of Google: Wordpress 日本語訳者

24/7/2008 - v. 1.3, From Korean, into all language pairs of Google: Wordpress 한국어 통역

24/7/2008 - v. 1.3, From Norwegian, into all language pairs of Google: Wordpress Norsk oversetter

24/7/2008 - v. 1.3, From Polish, into all language pairs of Google: Wordpress Polski tłumacz

24/7/2008 - v. 1.3, From Romanian, into all language pairs of Google: Wordpress Română traducător

24/7/2008 - v. 1.3, From Russian, into all language pairs of Google: Wordpress Русский переводчик

24/7/2008 - v. 1.3, From Chinese (Simplified), into all language pairs of Google: Wordpress 中文翻译

24/7/2008 - v. 1.3, From Traditional Chinese, into all language pairs of Google: Wordpress 中文翻譯

Customizing:

If you know something about CSS you can open the file styles.css (in your theme directory) and add new declarations for the .div (and also the .ul in the vertical one) named “dnghu”.

Changes and other problems:

If you want other language pairs, or the whole code linking only to Altavista, Google, or even other web translators, or maybe ask a question or make a suggestion, contact me. There are a thousand possible combinations, and I simply cannot prepare them all in advance. You can find me in cquiles@dnghu.org.

Licence

This code is licensed under the GNU GPL.