Index: trunk/kernel/admin_templates/stylesheets/stylesheets_edit.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/stylesheets_edit.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/stylesheets_edit.tpl (revision 1563)
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/block_style_edit.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/block_style_edit.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/block_style_edit.tpl (revision 1563)
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ " value="2">
+
+
+
+
+
+
+
+
+
+
+
">
+
+
+ :
+
+ |
+
+
+
+ : |
+
+
+ |
+ : |
+ | ">
+
+
+
+
+ |
+ |
+
+
+
+
+
\ No newline at end of file
Index: trunk/core/units/phrases/phrases_event_handler.php
===================================================================
diff -u
--- trunk/core/units/phrases/phrases_event_handler.php (revision 0)
+++ trunk/core/units/phrases/phrases_event_handler.php (revision 1563)
@@ -0,0 +1,68 @@
+Application->GetVar('phrases_label');
+ if($label)
+ {
+ $this->Application->setUnitOption($event->Prefix,'AutoLoad',false);
+ $object =& $event->getObject( Array('live_table'=>true) );
+ $object->SetDBField('Phrase',$label);
+ $object->SetDBField('LanguageId', $this->Application->GetVar('m_lang') );
+ $object->SetDBField('PhraseType',1);
+
+ $last_module = $this->Application->GetVar('last_module');
+ if($last_module) $object->SetDBField('Module', $last_module);
+ }
+ }
+
+ /**
+ * Forces create to use live table
+ *
+ * @param kEvent $event
+ */
+ function OnBeforePhraseCreate(&$event)
+ {
+ $edit_direct = $this->Application->GetVar($event->Prefix.'_label');
+ if($edit_direct)
+ {
+ $this->Application->setUnitOption($event->Prefix,'AutoLoad',false);
+ $object =& $event->getObject();
+ if( $this->Application->GetVar('m_lang') != $this->Application->GetVar('lang_id') )
+ {
+ $object->SwitchToLive();
+ }
+ }
+ }
+
+ /**
+ * Save phrase change date & ip translation was made from
+ *
+ * @param kEvent $event
+ */
+ function OnSetLastUpdated(&$event)
+ {
+ $object =& $event->getObject();
+ $prev_translation = $this->Conn->GetOne('SELECT Translation FROM '.$object->TableName.' WHERE '.$object->IDField.' = '.(int)$object->GetId() );
+ if( $prev_translation != $object->GetDBField('Translation') )
+ {
+ $ip_address = getenv('HTTP_X_FORWARDED_FOR') ? getenv('HTTP_X_FORWARDED_FOR') : getenv('REMOTE_ADDR');
+ $object->SetDBField('LastChanged_date', time() );
+ $object->SetDBField('LastChanged_time', time() );
+ $object->SetDBField('LastChangeIP', $ip_address);
+ }
+
+ setcookie('last_module', $object->GetDBField('Module') );
+ }
+ }
+
+
+?>
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/base_style_edit.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/base_style_edit.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/base_style_edit.tpl (revision 1563)
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ " value="1">
+
+
+
+
+
+
+
+
">
+
+
+ :
+
+ |
+
+
+
+ : |
+
+
+ |
+ : |
+ | ">
+
+
+
+
+ |
+ |
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_edit.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_edit.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_edit.tpl (revision 1563)
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_import_step2.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_import_step2.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_import_step2.tpl (revision 1563)
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/core/units/phrases/phrases_config.php
===================================================================
diff -u
--- trunk/core/units/phrases/phrases_config.php (revision 0)
+++ trunk/core/units/phrases/phrases_config.php (revision 1563)
@@ -0,0 +1,127 @@
+ 'phrases',
+ 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'),
+ 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'),
+ 'EventHandlerClass' => Array('class'=>'PhrasesEventHandler','file'=>'phrases_event_handler.php','build_event'=>'OnBuild'),
+ 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'),
+ 'AutoLoad' => true,
+
+ 'Hooks' => Array(
+ Array(
+ 'Mode' => hBEFORE,
+ 'Conditional' => false,
+ 'HookToPrefix' => 'phrases',
+ 'HookToSpecial' => '',
+ 'HookToEvent' => Array('OnCreate'),
+ 'DoPrefix' => 'phrases',
+ 'DoSpecial' => '',
+ 'DoEvent' => 'OnBeforePhraseCreate',
+ ),
+
+ Array(
+ 'Mode' => hAFTER,
+ 'Conditional' => false,
+ 'HookToPrefix' => 'phrases',
+ 'HookToSpecial' => '',
+ 'HookToEvent' => Array('OnBeforeItemCreate','OnBeforeItemUpdate'),
+ 'DoPrefix' => 'phrases',
+ 'DoSpecial' => '',
+ 'DoEvent' => 'OnSetLastUpdated',
+ ),
+ ),
+
+ 'QueryString' => Array(
+ 1 => 'id',
+ 2 => 'page',
+ 3 => 'event',
+ 4 => 'label',
+ ),
+ 'IDField' => 'PhraseId',
+
+ 'StatusField' => Array('Type'),
+
+ 'TitleField' => 'Phrase',
+
+ 'TitlePresets' => Array(
+ 'default' => Array( 'new_status_labels' => Array('phrases'=>'!la_title_Adding_Phrase!'),
+ 'edit_status_labels' => Array('phrases'=>'!la_title_Editing_Phrase!'),
+ 'new_titlefield' => Array('phrases'=>'!la_title_New_Phrase!'),
+ ),
+
+ 'phrase_edit' => Array('prefixes' => Array('phrases'), 'format' => '#phrases_status# - #phrases_titlefield#'),
+
+ ),
+
+ 'FilterMenu' => Array(
+ 'Groups' => Array(
+ Array('mode' => 'AND', 'filters' => Array('show_front','show_admin','show_both'), 'type' => WHERE_FILTER),
+ ),
+ 'Filters' => Array(
+ 'show_front' => Array('label' =>'la_PhraseType_Front', 'on_sql' => '', 'off_sql' => '%1$s.PhraseType != 0' ),
+ 'show_admin' => Array('label' => 'la_PhraseType_Admin', 'on_sql' => '', 'off_sql' => '%1$s.PhraseType != 1' ),
+ 'show_both' => Array('label' => 'la_PhraseType_Both', 'on_sql' => '', 'off_sql' => '%1$s.PhraseType != 2' ),
+ )
+ ),
+
+ 'TableName' => TABLE_PREFIX.'Phrase',
+
+ 'CalculatedFields' => Array(
+ '' => Array(
+ 'PrimaryValue' => 'pri.Translation',
+ ),
+
+ ),
+
+ 'ListSQLs' => Array( ''=>' SELECT %1$s.* %2$s
+ FROM %1$s
+ LEFT JOIN '.TABLE_PREFIX.'Phrase pri ON (%1$s.Phrase = pri.Phrase) AND (pri.LanguageId = 1)'),
+
+ 'ItemSQLs' => Array( ''=>'SELECT *, 0 AS PrimaryValue FROM %s',),
+
+ 'ListSortings' => Array(
+ '' => Array(
+ 'Sorting' => Array('Phrase' => 'asc'),
+ )
+ ),
+
+ 'ForeignKey' => 'LanguageId',
+ 'ParentTableKey' => 'LanguageId',
+ 'ParentPrefix' => 'lang',
+ 'AutoDelete' => true,
+ 'AutoClone' => true,
+
+ 'Fields' => Array(
+ 'Phrase' => Array('type' => 'string','required'=>1,'unique'=>Array('LanguageId'),'not_null' => '1','default' => ''),
+ 'Translation' => Array('type' => 'string','required'=>1,'not_null' => '1','default' => ''),
+ 'PhraseType' => Array('type' => 'int','required'=>1,'formatter'=>'kOptionsFormatter','options'=>Array(0=>'la_PhraseType_Front',1=>'la_PhraseType_Admin',2=>'la_PhraseType_Both'), 'use_phrases' => 1, 'not_null' => '1','default' => '0'),
+ 'PhraseId' => Array('type' => 'int','not_null' => '1','default' => ''),
+ 'LanguageId' => Array('type' => 'int','not_null' => '1','default' => '0'),
+ 'LastChanged' => Array('type' => 'int', 'formatter'=>'kDateFormatter', 'not_null' => '1','default' => '0'),
+ 'LastChangeIP' => Array('type' => 'string','not_null' => '1','default' => ''),
+ 'Module' => Array('type' => 'string', 'formatter'=>'kOptionsFormatter', 'options'=>Array(''=>''), 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Modules ORDER BY Name', 'option_key_field'=>'Name', 'option_title_field'=>'Name', 'not_null' => '1','default' => 'In-Portal'),
+ ),
+
+ 'VirtualFields' => Array(
+ 'PrimaryValue' => Array(),
+ 'LangFile' => Array(),
+ ),
+
+ 'Grids' => Array(
+ 'Default' => Array(
+ 'Icons' => Array('default'=>'icon16_language_var.gif'),
+ 'Fields' => Array(
+ 'Phrase' => Array( 'title'=>'la_col_Label', 'data_block' => 'grid_checkbox_td'),
+ 'Translation' => Array( 'title'=>'la_col_Translation' ),
+ 'PrimaryValue' => Array( 'title'=>'la_col_PrimaryValue' ),
+ 'PhraseType' => Array( 'title'=>'la_col_PhraseType' ),
+ 'LastChanged' => Array( 'title'=>'la_col_LastChanged' ),
+ 'Module' => Array( 'title'=>'la_col_Module' ),
+ ),
+
+ ),
+ ),
+ );
+
+?>
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/stylesheets_edit_block.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/stylesheets_edit_block.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/stylesheets_edit_block.tpl (revision 1563)
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/stylesheets_edit_base.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/stylesheets_edit_base.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/stylesheets_edit_base.tpl (revision 1563)
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_edit_email_events.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_edit_email_events.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_edit_email_events.tpl (revision 1563)
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/stylesheets_tabs.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/stylesheets_tabs.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/stylesheets_tabs.tpl (revision 1563)
@@ -0,0 +1,13 @@
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/stylesheets_list.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/stylesheets_list.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/stylesheets_list.tpl (revision 1563)
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/style_editor.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/style_editor.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/style_editor.tpl (revision 1563)
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
">
+
+
+ "
+ id=""
+ value=""
+ tabindex=""
+ size=""
+ maxlength=""
+ class=""
+ onkeyup="updateColor(event,'')"
+ onblur="">
+ " style="display: inline; border: 1px solid #000000;" onclick="openColorSelector(event,'');">
+
+ |
+ |
+
+
+
+
+
">
+
+
+ " name="" id="" onchange="">
+
+
+ |
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_export_step2.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_export_step2.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_export_step2.tpl (revision 1563)
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
">
+
+
+ |
+ ">
+ |
+ |
+
+
+
">
+
+
+ |
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/stylesheets_edit.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/stylesheets_edit.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/stylesheets_edit.tpl (revision 1563)
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_list.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_list.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_list.tpl (revision 1563)
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_import.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_import.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_import.tpl (revision 1563)
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/units/phrases/phrases_event_handler.php
===================================================================
diff -u
--- trunk/kernel/units/phrases/phrases_event_handler.php (revision 0)
+++ trunk/kernel/units/phrases/phrases_event_handler.php (revision 1563)
@@ -0,0 +1,68 @@
+Application->GetVar('phrases_label');
+ if($label)
+ {
+ $this->Application->setUnitOption($event->Prefix,'AutoLoad',false);
+ $object =& $event->getObject( Array('live_table'=>true) );
+ $object->SetDBField('Phrase',$label);
+ $object->SetDBField('LanguageId', $this->Application->GetVar('m_lang') );
+ $object->SetDBField('PhraseType',1);
+
+ $last_module = $this->Application->GetVar('last_module');
+ if($last_module) $object->SetDBField('Module', $last_module);
+ }
+ }
+
+ /**
+ * Forces create to use live table
+ *
+ * @param kEvent $event
+ */
+ function OnBeforePhraseCreate(&$event)
+ {
+ $edit_direct = $this->Application->GetVar($event->Prefix.'_label');
+ if($edit_direct)
+ {
+ $this->Application->setUnitOption($event->Prefix,'AutoLoad',false);
+ $object =& $event->getObject();
+ if( $this->Application->GetVar('m_lang') != $this->Application->GetVar('lang_id') )
+ {
+ $object->SwitchToLive();
+ }
+ }
+ }
+
+ /**
+ * Save phrase change date & ip translation was made from
+ *
+ * @param kEvent $event
+ */
+ function OnSetLastUpdated(&$event)
+ {
+ $object =& $event->getObject();
+ $prev_translation = $this->Conn->GetOne('SELECT Translation FROM '.$object->TableName.' WHERE '.$object->IDField.' = '.(int)$object->GetId() );
+ if( $prev_translation != $object->GetDBField('Translation') )
+ {
+ $ip_address = getenv('HTTP_X_FORWARDED_FOR') ? getenv('HTTP_X_FORWARDED_FOR') : getenv('REMOTE_ADDR');
+ $object->SetDBField('LastChanged_date', time() );
+ $object->SetDBField('LastChanged_time', time() );
+ $object->SetDBField('LastChangeIP', $ip_address);
+ }
+
+ setcookie('last_module', $object->GetDBField('Module') );
+ }
+ }
+
+
+?>
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_edit_phrases.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_edit_phrases.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_edit_phrases.tpl (revision 1563)
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/block_style_edit.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/block_style_edit.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/block_style_edit.tpl (revision 1563)
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ " value="2">
+
+
+
+
+
+
+
+
+
+
+
">
+
+
+ :
+
+ |
+
+
+
+ : |
+
+
+ |
+ : |
+ | ">
+
+
+
+
+ |
+ |
+
+
+
+
+
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/base_style_edit.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/base_style_edit.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/base_style_edit.tpl (revision 1563)
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ " value="1">
+
+
+
+
+
+
+
+
">
+
+
+ :
+
+ |
+
+
+
+ : |
+
+
+ |
+ : |
+ | ">
+
+
+
+
+ |
+ |
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/phrases_edit.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/phrases_edit.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/phrases_edit.tpl (revision 1563)
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/stylesheets_edit_block.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/stylesheets_edit_block.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/stylesheets_edit_block.tpl (revision 1563)
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/units/phrases/phrases_config.php
===================================================================
diff -u
--- trunk/kernel/units/phrases/phrases_config.php (revision 0)
+++ trunk/kernel/units/phrases/phrases_config.php (revision 1563)
@@ -0,0 +1,127 @@
+ 'phrases',
+ 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'),
+ 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'),
+ 'EventHandlerClass' => Array('class'=>'PhrasesEventHandler','file'=>'phrases_event_handler.php','build_event'=>'OnBuild'),
+ 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'),
+ 'AutoLoad' => true,
+
+ 'Hooks' => Array(
+ Array(
+ 'Mode' => hBEFORE,
+ 'Conditional' => false,
+ 'HookToPrefix' => 'phrases',
+ 'HookToSpecial' => '',
+ 'HookToEvent' => Array('OnCreate'),
+ 'DoPrefix' => 'phrases',
+ 'DoSpecial' => '',
+ 'DoEvent' => 'OnBeforePhraseCreate',
+ ),
+
+ Array(
+ 'Mode' => hAFTER,
+ 'Conditional' => false,
+ 'HookToPrefix' => 'phrases',
+ 'HookToSpecial' => '',
+ 'HookToEvent' => Array('OnBeforeItemCreate','OnBeforeItemUpdate'),
+ 'DoPrefix' => 'phrases',
+ 'DoSpecial' => '',
+ 'DoEvent' => 'OnSetLastUpdated',
+ ),
+ ),
+
+ 'QueryString' => Array(
+ 1 => 'id',
+ 2 => 'page',
+ 3 => 'event',
+ 4 => 'label',
+ ),
+ 'IDField' => 'PhraseId',
+
+ 'StatusField' => Array('Type'),
+
+ 'TitleField' => 'Phrase',
+
+ 'TitlePresets' => Array(
+ 'default' => Array( 'new_status_labels' => Array('phrases'=>'!la_title_Adding_Phrase!'),
+ 'edit_status_labels' => Array('phrases'=>'!la_title_Editing_Phrase!'),
+ 'new_titlefield' => Array('phrases'=>'!la_title_New_Phrase!'),
+ ),
+
+ 'phrase_edit' => Array('prefixes' => Array('phrases'), 'format' => '#phrases_status# - #phrases_titlefield#'),
+
+ ),
+
+ 'FilterMenu' => Array(
+ 'Groups' => Array(
+ Array('mode' => 'AND', 'filters' => Array('show_front','show_admin','show_both'), 'type' => WHERE_FILTER),
+ ),
+ 'Filters' => Array(
+ 'show_front' => Array('label' =>'la_PhraseType_Front', 'on_sql' => '', 'off_sql' => '%1$s.PhraseType != 0' ),
+ 'show_admin' => Array('label' => 'la_PhraseType_Admin', 'on_sql' => '', 'off_sql' => '%1$s.PhraseType != 1' ),
+ 'show_both' => Array('label' => 'la_PhraseType_Both', 'on_sql' => '', 'off_sql' => '%1$s.PhraseType != 2' ),
+ )
+ ),
+
+ 'TableName' => TABLE_PREFIX.'Phrase',
+
+ 'CalculatedFields' => Array(
+ '' => Array(
+ 'PrimaryValue' => 'pri.Translation',
+ ),
+
+ ),
+
+ 'ListSQLs' => Array( ''=>' SELECT %1$s.* %2$s
+ FROM %1$s
+ LEFT JOIN '.TABLE_PREFIX.'Phrase pri ON (%1$s.Phrase = pri.Phrase) AND (pri.LanguageId = 1)'),
+
+ 'ItemSQLs' => Array( ''=>'SELECT *, 0 AS PrimaryValue FROM %s',),
+
+ 'ListSortings' => Array(
+ '' => Array(
+ 'Sorting' => Array('Phrase' => 'asc'),
+ )
+ ),
+
+ 'ForeignKey' => 'LanguageId',
+ 'ParentTableKey' => 'LanguageId',
+ 'ParentPrefix' => 'lang',
+ 'AutoDelete' => true,
+ 'AutoClone' => true,
+
+ 'Fields' => Array(
+ 'Phrase' => Array('type' => 'string','required'=>1,'unique'=>Array('LanguageId'),'not_null' => '1','default' => ''),
+ 'Translation' => Array('type' => 'string','required'=>1,'not_null' => '1','default' => ''),
+ 'PhraseType' => Array('type' => 'int','required'=>1,'formatter'=>'kOptionsFormatter','options'=>Array(0=>'la_PhraseType_Front',1=>'la_PhraseType_Admin',2=>'la_PhraseType_Both'), 'use_phrases' => 1, 'not_null' => '1','default' => '0'),
+ 'PhraseId' => Array('type' => 'int','not_null' => '1','default' => ''),
+ 'LanguageId' => Array('type' => 'int','not_null' => '1','default' => '0'),
+ 'LastChanged' => Array('type' => 'int', 'formatter'=>'kDateFormatter', 'not_null' => '1','default' => '0'),
+ 'LastChangeIP' => Array('type' => 'string','not_null' => '1','default' => ''),
+ 'Module' => Array('type' => 'string', 'formatter'=>'kOptionsFormatter', 'options'=>Array(''=>''), 'options_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Modules ORDER BY Name', 'option_key_field'=>'Name', 'option_title_field'=>'Name', 'not_null' => '1','default' => 'In-Portal'),
+ ),
+
+ 'VirtualFields' => Array(
+ 'PrimaryValue' => Array(),
+ 'LangFile' => Array(),
+ ),
+
+ 'Grids' => Array(
+ 'Default' => Array(
+ 'Icons' => Array('default'=>'icon16_language_var.gif'),
+ 'Fields' => Array(
+ 'Phrase' => Array( 'title'=>'la_col_Label', 'data_block' => 'grid_checkbox_td'),
+ 'Translation' => Array( 'title'=>'la_col_Translation' ),
+ 'PrimaryValue' => Array( 'title'=>'la_col_PrimaryValue' ),
+ 'PhraseType' => Array( 'title'=>'la_col_PhraseType' ),
+ 'LastChanged' => Array( 'title'=>'la_col_LastChanged' ),
+ 'Module' => Array( 'title'=>'la_col_Module' ),
+ ),
+
+ ),
+ ),
+ );
+
+?>
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/stylesheets_edit_base.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/stylesheets_edit_base.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/stylesheets_edit_base.tpl (revision 1563)
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_edit_tabs.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_edit_tabs.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_edit_tabs.tpl (revision 1563)
@@ -0,0 +1,13 @@
+
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/stylesheets_list.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/stylesheets_list.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/stylesheets_list.tpl (revision 1563)
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/languages_export.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/languages_export.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/languages_export.tpl (revision 1563)
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/stylesheets/stylesheets_tabs.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/stylesheets/stylesheets_tabs.tpl (revision 0)
+++ trunk/kernel/admin_templates/stylesheets/stylesheets_tabs.tpl (revision 1563)
@@ -0,0 +1,13 @@
+
\ No newline at end of file
Index: trunk/core/admin_templates/stylesheets/style_editor.tpl
===================================================================
diff -u
--- trunk/core/admin_templates/stylesheets/style_editor.tpl (revision 0)
+++ trunk/core/admin_templates/stylesheets/style_editor.tpl (revision 1563)
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
">
+
+
+ "
+ id=""
+ value=""
+ tabindex=""
+ size=""
+ maxlength=""
+ class=""
+ onkeyup="updateColor(event,'')"
+ onblur="">
+ " style="display: inline; border: 1px solid #000000;" onclick="openColorSelector(event,'');">
+
+ |
+ |
+
+
+
+
+
">
+
+
+ " name="" id="" onchange="">
+
+
+ |
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: trunk/kernel/admin_templates/regional/email_messages_edit.tpl
===================================================================
diff -u
--- trunk/kernel/admin_templates/regional/email_messages_edit.tpl (revision 0)
+++ trunk/kernel/admin_templates/regional/email_messages_edit.tpl (revision 1563)
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file