<?php
/**
 * @package Iyosis Google Translate Module for Joomla! 1.5
 * @author Remzi Degirmencioglu
 * @copyright (C) 2011 www.iyosis.com
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
 
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

$baseURL= JURI::base();
 
// Include the syndicate functions only once
require_once( dirname(__FILE__).DS.'helper.php' );

$flagSize = $params->get('flagSize', '16');

$languages = array("af"=>"AFRIKAANS", "sq"=>"ALBANIAN", "ar"=>"ARABIC", "be"=>"BELARUSIAN", "bg"=>"BULGARIAN", "ca"=>"CATALAN", "zh"=>"CHINESE", "zh-CN"=>"CHINESE_SIMPLIFIED", "zh-TW"=>"CHINESE_TRADITIONAL", "hr"=>"CROATIAN", "cs"=>"CZECH", "da"=>"DANISH", "nl"=>"DUTCH", "en"=>"ENGLISH", "et"=>"ESTONIAN", "tl"=>"FILIPINO", "fi"=>"FINNISH", "fr"=>"FRENCH", "gl"=>"GALICIAN", "de"=>"GERMAN", "el"=>"GREEK", "ht"=>"HAITIAN_CREOLE", "iw"=>"HEBREW", "hi"=>"HINDI", "hu"=>"HUNGARIAN", "is"=>"ICELANDIC", "id"=>"INDONESIAN", "ga"=>"IRISH", "it"=>"ITALIAN", "ja"=>"JAPANESE", "ko"=>"KOREAN", "lv"=>"LATVIAN", "lt"=>"LITHUANIAN", "mk"=>"MACEDONIAN", "ms"=>"MALAY", "mt"=>"MALTESE", "no"=>"NORWEGIAN", "fa"=>"PERSIAN", "pl"=>"POLISH", "pt"=>"PORTUGUESE", "pt-PT"=>"PORTUGUESE_PORTUGAL", "ro"=>"ROMANIAN", "ru"=>"RUSSIAN", "sr"=>"SERBIAN", "sk"=>"SLOVAK", "sl"=>"SLOVENIAN", "es"=>"SPANISH", "sw"=>"SWAHILI", "sv"=>"SWEDISH", "th"=>"THAI", "tr"=>"TURKISH", "uk"=>"UKRAINIAN", "vi"=>"VIETNAMESE", "cy"=>"WELSH", "yi"=>"YIDDISH");

$html = modGoogleTranslateHelper::GoogleTranslate($params,$baseURL,$languages);

require( JModuleHelper::getLayoutPath( 'mod_iyosis_google_translate' ) );
?>

