<?php
/**
* @version	$Id: translator_config.php 13086 2010-01-12 19:47:40Z 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',

					'TitlePhrase'	=> 'la_text_Translation',

					'TitlePresets'		=>	Array(
												'default'	=>	Array(
													'new_status_labels'		=> Array('trans'=>'!la_title_Adding_Order!'),
													'edit_status_labels'	=> Array('trans'=>'!la_title_Editing_Order!'),
													'new_titlefield'		=> Array('trans'=>''),
													),

												'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.'Language', 'option_key_field' => 'LanguageId','option_title_field' => 'PackName'),
						'Translation' => Array('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => ''),
						),
					'Grids'	=> Array(),
	);