<?php
$lang->workflowhook->common = 'Workflow Extended Action';
$lang->workflowhook->browse = 'Extended Actions';
$lang->workflowhook->create = 'Create Ext Action';
$lang->workflowhook->edit   = 'Edit Ext Action';
$lang->workflowhook->delete = 'Delete Ext Action';

$lang->workflowhook->condition = 'Condition';
$lang->workflowhook->hook      = 'Ext Action';
$lang->workflowhook->type      = 'Type';
$lang->workflowhook->result    = 'Result';
$lang->workflowhook->sql       = 'SQL';
$lang->workflowhook->varName   = 'Var Name';
$lang->workflowhook->varValue  = 'Var Value';
$lang->workflowhook->action    = 'Action';
$lang->workflowhook->table     = 'Table';
$lang->workflowhook->field     = 'Field';
$lang->workflowhook->value     = 'Value';
$lang->workflowhook->where     = 'Where';
$lang->workflowhook->message   = 'Message';

$lang->workflowhook->typeList['data'] = 'Data as condition';
$lang->workflowhook->typeList['sql']  = 'SQL as condition';

$lang->workflowhook->resultList['empty']    = 'Execute extended action when result is empty or zero.';
$lang->workflowhook->resultList['notempty'] = 'Execute extended action when result is not empty nor zero.';

$lang->workflowhook->logicalOperatorList['and'] = 'And';
$lang->workflowhook->logicalOperatorList['or']  = 'Or';

$lang->workflowhook->actionList['insert'] = 'Insert';
$lang->workflowhook->actionList['update'] = 'Update';
$lang->workflowhook->actionList['delete'] = 'Delete';

$lang->workflowhook->tables['order']     = 'Order';
$lang->workflowhook->tables['contract']  = 'Contract';
$lang->workflowhook->tables['customer']  = 'Customer';
$lang->workflowhook->tables['provider']  = 'Provider';
$lang->workflowhook->tables['contact']   = 'Contact';
$lang->workflowhook->tables['product']   = 'Product';
$lang->workflowhook->tables['user']      = 'User';
$lang->workflowhook->tables['project']   = 'Project';
$lang->workflowhook->tables['task']      = 'Task';
$lang->workflowhook->tables['todo']      = 'Todo';
$lang->workflowhook->tables['article']   = 'Article';
$lang->workflowhook->tables['doc']       = 'Document';
$lang->workflowhook->tables['doclib']    = 'Document Library';
$lang->workflowhook->tables['refund']    = 'Refund';
$lang->workflowhook->tables['announce']  = 'Announce';
$lang->workflowhook->tables['holiday']   = 'Holiday';
$lang->workflowhook->tables['attend']    = 'Attend';
$lang->workflowhook->tables['leave']     = 'Leave';
$lang->workflowhook->tables['lieu']      = 'Lieu';
$lang->workflowhook->tables['overtime']  = 'Overtime';
$lang->workflowhook->tables['trip']      = 'Trip';
$lang->workflowhook->tables['depositor'] = 'Depositor';
$lang->workflowhook->tables['trade']     = 'Trade';
$lang->workflowhook->tables['payable']   = 'Payable';
$lang->workflowhook->tables['balance']   = 'Balance';
$lang->workflowhook->tables['thread']    = 'Thread';
$lang->workflowhook->tables['reply']     = 'Reply';

$lang->workflowhook->options['user']        = 'User';
$lang->workflowhook->options['dept']        = 'Department';
$lang->workflowhook->options['deptManager'] = 'Dept Manager';
$lang->workflowhook->options['today']       = 'Act Date';
$lang->workflowhook->options['now']         = 'Act Time';
$lang->workflowhook->options['actor']       = 'Actor';
$lang->workflowhook->options['form']        = 'Form Data';
$lang->workflowhook->options['record']      = 'Record Data';
$lang->workflowhook->options['custom']      = 'Custom';

$lang->workflowhook->placeholder = new stdclass();
$lang->workflowhook->placeholder->sql = 'Write a SQL query. Only the query is allowed.';

$lang->workflowhook->error = new stdclass();
$lang->workflowhook->error->wrongSQL = 'The SQL is wrong! Error: ';
