<?php
/**
* @version	$Id: translator_config.php 15012 2012-01-06 20:38:49Z alex $
* @package	In-Portal
* @copyright	Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license      GNU/GPL
* In-Portal is Open Source software.
* This means that this software may have been modified pursuant
* the GNU General Public License, and as distributed it includes
* or is derivative of works licensed under the GNU General Public License
* or other free or open source software licenses.
* See http://www.in-portal.org/license for copyright notices and details.
*/

defined('FULL_PATH') or die('restricted access!');

	$config =	Array(
					'Prefix'			=>	'trans',
					'ItemClass'			=>	Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'),
					'ListClass'			=>	Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'),
					'EventHandlerClass'	=>	Array('class'=>'TranslatorEventHandler','file'=>'translator_event_handler.php','build_event'=>'OnBuild'),
					'TagProcessorClass' =>	Array('class'=>'TranslatorTagProcessor','file'=>'translator_tp.php','build_event'=>'OnBuild'),
					'AutoLoad'			=>	false,
					'hooks'				=>	Array(),
					'QueryString'		=>	Array(
												1	=>	'prefix',
												2	=>	'field',
												3	=>	'multi_line',
												4	=>	'event',
											),
					'IDField'			=>	'N/A',

					'TitlePresets' => Array (
						'trans_edit' => Array (
							'prefixes' => Array('trans'), 'format' => '!la_title_EditingTranslation!',
							'toolbar_buttons' => Array ('select', 'cancel'),
						),
					),

					'ItemSQLs'			=>	Array ('' => ''),

					'Fields'			=>	Array( ),

					'VirtualFields'	=> 	Array(
						'Original' => Array(),
						'Language' => Array(),
						'SwitchLanguage' => Array('formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Languages', 'option_key_field' => 'LanguageId','option_title_field' => 'PackName'),
						'Translation' => Array('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => ''),
					),
	);