<?php
$lang->workflowfield->common         = 'Trường quy trình';
$lang->workflowfield->browse         = 'Trường';
$lang->workflowfield->create         = 'Tạo trường';
$lang->workflowfield->edit           = 'Sửa trường';
$lang->workflowfield->delete         = 'Xóa trường';
$lang->workflowfield->import         = 'Import Field';
$lang->workflowfield->showImport     = 'Show Import';
$lang->workflowfield->exportTemplate = 'Download Template';
$lang->workflowfield->sort           = 'Sắp xếp trường';
$lang->workflowfield->setValue       = 'Display Values';
$lang->workflowfield->setExport      = 'Xuất Thiết lập';
$lang->workflowfield->setSearch      = 'Search Settings';
$lang->workflowfield->settings       = 'Field and attribute settings';

$lang->workflowfield->id        = 'ID';
$lang->workflowfield->module    = 'Module';
$lang->workflowfield->field     = 'Trường';
$lang->workflowfield->type      = 'Loại';
$lang->workflowfield->length    = 'Chiều dài';
$lang->workflowfield->name      = 'Tên';
$lang->workflowfield->control   = 'Control';
$lang->workflowfield->expression   = 'Expression';
$lang->workflowfield->options   = 'Tùy chọn';
$lang->workflowfield->defaultValue = 'Mặc định';
$lang->workflowfield->rules  = 'Rule';
$lang->workflowfield->placeholder  = 'Placeholder';
$lang->workflowfield->canSetValue  = 'Enable Display Values';
$lang->workflowfield->canExport = 'Xuất';
$lang->workflowfield->canSearch = 'Tìm kiếm';
$lang->workflowfield->isKeyValue   = 'Key-Value';
$lang->workflowfield->order  = 'Sắp xếp';
$lang->workflowfield->buildin   = 'Tích hợp';
$lang->workflowfield->desc   = 'Mô tả';
$lang->workflowfield->createdBy = 'Người tạo';
$lang->workflowfield->createdDate  = 'Ngày tạo';
$lang->workflowfield->editedBy  = 'Người sửa';
$lang->workflowfield->editedDate   = 'Ngày sửa';

$lang->workflowfield->position   = 'Vị trí';
$lang->workflowfield->datasource    = 'Nguồn dữ liệu';
$lang->workflowfield->sql     = 'SQL';
$lang->workflowfield->vars    = 'Biến';
$lang->workflowfield->addVar     = 'Thêm biến';
$lang->workflowfield->varName    = 'Tên biến';
$lang->workflowfield->showName   = 'Hiện tên';
$lang->workflowfield->requestType   = 'Control';
$lang->workflowfield->status     = 'Tình trạng';
$lang->workflowfield->subStatus  = 'Tình trạng con';
$lang->workflowfield->key     = 'Khóa';
$lang->workflowfield->value   = 'Giá trị';
$lang->workflowfield->defaultSubStatus = 'Mặc định';
$lang->workflowfield->fieldName        = 'Field Name';
$lang->workflowfield->tableParent      = 'Parent ID';
$lang->workflowfield->template         = 'Fields Template';

$lang->workflowfield->integerDigits = 'Integer Digits';
$lang->workflowfield->decimalDigits = 'Decimal Digits';

$lang->workflowfield->typeGroup['integer']  = 'Integer';
$lang->workflowfield->typeGroup['decimal']  = 'Decimal';
$lang->workflowfield->typeGroup['date']     = 'Date';
$lang->workflowfield->typeGroup['time']     = 'Time';
$lang->workflowfield->typeGroup['varchar']  = 'Text';
$lang->workflowfield->typeGroup['text']     = 'Multiline Text';

$lang->workflowfield->controlTypeList['label']  = 'Nhãn';
$lang->workflowfield->controlTypeList['input']  = 'Text';
$lang->workflowfield->controlTypeList['textarea']  = 'Multiline Text';
$lang->workflowfield->controlTypeList['select']       = 'Dropdown';
$lang->workflowfield->controlTypeList['multi-select'] = 'Multi-Dropdown';
$lang->workflowfield->controlTypeList['radio']        = 'Radio';
$lang->workflowfield->controlTypeList['checkbox']     = 'Checkbox';
$lang->workflowfield->controlTypeList['richtext']     = 'Richtext';
$lang->workflowfield->controlTypeList['date']         = 'Date';
$lang->workflowfield->controlTypeList['datetime']     = 'Time';
$lang->workflowfield->controlTypeList['decimal']      = 'Decimal';
$lang->workflowfield->controlTypeList['integer']      = 'Integer';
$lang->workflowfield->controlTypeList['formula']      = 'Expression';
$lang->workflowfield->controlTypeList['file']         = 'File';

$lang->workflowfield->optionTypeList['sql']  = 'SQL';
$lang->workflowfield->optionTypeList['category']   = 'Category';
$lang->workflowfield->optionTypeList['prevModule'] = 'Xem trước quy trình';

$lang->workflowfield->positionList['before'] = 'Trước';
$lang->workflowfield->positionList['after']  = 'Sau';

$lang->workflowfield->exportList[1] = 'Có';
$lang->workflowfield->exportList[0] = 'Không';

$lang->workflowfield->searchList[1] = 'Có';
$lang->workflowfield->searchList[0] = 'Không';

$lang->workflowfield->keyValueList['key']   = 'Khóa';
$lang->workflowfield->keyValueList['value'] = 'Giá trị';

$lang->workflowfield->buildinList['0'] = 'Không';
$lang->workflowfield->buildinList['1'] = 'Có';

$lang->workflowfield->default = new stdclass();
$lang->workflowfield->default->fields['id']     = 'ID';
$lang->workflowfield->default->fields['parent']    = 'Mẹ';
$lang->workflowfield->default->fields['assignedTo']   = 'Giao cho';
$lang->workflowfield->default->fields['status']    = 'Tình trạng';
$lang->workflowfield->default->fields['createdBy'] = 'Người tạo';
$lang->workflowfield->default->fields['createdDate']  = 'Ngày tạo';
$lang->workflowfield->default->fields['editedBy']  = 'Người sửa';
$lang->workflowfield->default->fields['editedDate']   = 'Ngày sửa';
$lang->workflowfield->default->fields['assignedBy']   = 'Người giao';
$lang->workflowfield->default->fields['assignedDate'] = 'Đã giao';
$lang->workflowfield->default->fields['mailto']       = 'Mail To';
$lang->workflowfield->default->fields['deleted']   = 'Đã xóa';

$lang->workflowfield->default->options = new stdclass();
$lang->workflowfield->default->options->deleted = array();
$lang->workflowfield->default->options->deleted['0'] = 'Chưa xóa';
$lang->workflowfield->default->options->deleted['1'] = 'Đã xóa';

/* Tips */
$lang->workflowfield->tips = new stdclass();
$lang->workflowfield->tips->keyValue  = '<strong>Key-Value Pair</strong> is displayed as the actual value and the display value when the flow data is called by other flows.<br /><strong>Key</strong> is one only, its ID is set as the Key by default.<br /><strong>Values</strong> can be several ones, and multiple values will be displayed one by one.';
$lang->workflowfield->tips->lengthNotice = 'Chú ý! Đây sẽ là nguyên nhân mất dữ liệu.';
$lang->workflowfield->tips->emptyStatus  = 'Thiết lập tùy chọn của trường tình trạng trước.';
$lang->workflowfield->tips->emptyValue   = 'No fields selected and can not enable the display value function. Sure to save?';
$lang->workflowfield->tips->emptyExport  = 'No fields selected for the table <strong>TABLE</strong> and can not enable the search function. Sure to save?';
$lang->workflowfield->tips->emptySearch  = 'No fields selected and can not enable the search function. Sure to save?';
$lang->workflowfield->tips->number       = 'The max is MAX, the min is MIN.';
$lang->workflowfield->tips->string       = 'Up to LENGTH characters and punctuation marks.';

/* Placeholder */
$lang->workflowfield->placeholder = new stdclass();
$lang->workflowfield->placeholder->code   = 'Nên là chữ';
$lang->workflowfield->placeholder->sql    = 'Sử dụng một truy vấn SQL. Chỉ cho phép truy vấn. Các hoạt động SQL khác đều bị cấm. Kết quả truy vấn là cặp khóa-giá trị. Trường truy vấn thứ 1 sẽ là chìa khóa của kết quả và trường thứ 2 là giá trị. Các lĩnh vực khác sẽ bị bỏ qua. Nếu chỉ có một trường, nó sẽ là khóa và giá trị';
$lang->workflowfield->placeholder->defaultValue = 'Phân chia bởi khoảng cách hoặc dấu phẩy.';
$lang->workflowfield->placeholder->optionCode   = 'Nó nên là chữ hoặc số.';
$lang->workflowfield->placeholder->auto         = 'Automatically generated by the system';
$lang->workflowfield->placeholder->varcharLength = 'Default 255, max 1000, min 1';
$lang->workflowfield->placeholder->charLength    = 'Default 50, max 255, min 1';
$lang->workflowfield->placeholder->integerDigits = 'Default 10, max 12, min 1';
$lang->workflowfield->placeholder->decimalDigits = 'Default 2, max 5, min 1';

/* Alert */
$lang->workflowfield->alert = new stdclass();
$lang->workflowfield->alert->common                       = 'Alert';
$lang->workflowfield->alert->update                       = 'The field may be used in below functions, please check and update manually.';
$lang->workflowfield->alert->delete                       = 'The field may be used in below functions, please check and delete manually.';
$lang->workflowfield->alert->separater                    = ', ';
$lang->workflowfield->alert->types['fieldExpression']     = "The expression of the <strong>%s</strong> fields of the <strong>%s</strong> flow.";
$lang->workflowfield->alert->types['conditionSql']        = "The <strong>SQL of conditions</strong> of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['verificationSql']     = "The <strong>SQL of verifications</strong> of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['verificationSqlVar']  = "The SQL variables <strong>%s</strong> of the verifications of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['hookConditionSql']    = "The <strong>SQL of hook's conditions</strong> of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['hookConditionSqlVar'] = "The SQL variables <strong>%s</strong> of the hooks' conditions of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['hookConditionField']  = "The <strong>%s</strong> fields of the hooks' conditions of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['hookField']           = "The <strong>%s</strong> fields of the hooks of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['hookFieldFormula']    = "The expression of the <strong>%s</strong> fields of the hooks of the <strong>%s</strong> flow's <strong>%s</strong> action.";
$lang->workflowfield->alert->types['hookWhere']           = "The <strong>%s</strong> conditions of the hooks of the <strong>%s</strong> flow's <strong>%s</strong> action.";

/* Error */
$lang->workflowfield->error = new stdclass();
$lang->workflowfield->error->remainFields  = '<strong> %s </strong> là một từ khóa dành riêng trong hệ thống, vui lòng thay đổi mã trường.';
$lang->workflowfield->error->emptyOptions  = 'Empty <strong>key</strong> and <strong>value</strong>.';
$lang->workflowfield->error->wrongCode  = 'The <strong> %s </strong> nên dùng chữ.';
$lang->workflowfield->error->longCode   = 'The length of the <strong> %s </strong> should not exceed 30.';
$lang->workflowfield->error->wrongSQL   = 'SQL sai! Lỗi: ';
$lang->workflowfield->error->notunique  = 'unique check';
$lang->workflowfield->error->defaultValue  = 'The default length should not exceed %s.';
$lang->workflowfield->error->textDefaultValue = 'The text-field has no default value.';
$lang->workflowfield->error->duplicatedCode   = 'Vui lòng reset the duplicated <strong>Keys</strong> %s .';
$lang->workflowfield->error->emptyDefault  = 'Chọn a item as <strong>default</strong>.';
$lang->workflowfield->error->emptyCustomField = 'You have not added a field. Add one first.';
$lang->workflowfield->error->length           = '<strong>%s</strong> should be greater than or equal to <strong>%s</strong>, and less than or equal to <strong>%s</strong>.';
$lang->workflowfield->error->digits           = '<strong>%s</strong> should be greater than or equal to <strong>%s</strong>.';
$lang->workflowfield->error->dateFormat       = '<strong> Date </strong> format is wrong, must be Y-m-d.';
$lang->workflowfield->error->timeFormat       = '<strong> Datetime </strong> format is wrong, must be Y-m-d H:i:s.';
$lang->workflowfield->error->intSize          = 'The length of the <strong> default value </strong> should be greater than or equal to %s,and less than or equal to %s .';

/* Formula */
$lang->workflowfield->formula = new stdclass();
$lang->workflowfield->formula->common    = 'Expression';
$lang->workflowfield->formula->target    = 'Target';
$lang->workflowfield->formula->operator  = 'Operator';
$lang->workflowfield->formula->numbers   = 'Number';
$lang->workflowfield->formula->clearLast = 'Delete';
$lang->workflowfield->formula->clearAll  = 'Delete All';
$lang->workflowfield->formula->set       = 'Setting';

$lang->workflowfield->formula->functions['sum']     = 'Total_%s_%s';
$lang->workflowfield->formula->functions['average'] = 'Average_%s_%s';
$lang->workflowfield->formula->functions['max']     = 'Max_%s_%s';
$lang->workflowfield->formula->functions['min']     = 'Min_%s_%s';
$lang->workflowfield->formula->functions['count']   = 'Quantity_%s_%s';

$lang->workflowfield->formula->error = new stdclass();
$lang->workflowfield->formula->error->empty = 'Expression can not be empty.';
$lang->workflowfield->formula->error->error = 'Expression is not correct.';

$lang->workflowfield->excel = new stdclass();
$lang->workflowfield->excel->tips = "1. Name and Field is required. 2. The Options should be in 'key,value' format, separated by comma, multiple groups separated by a newline.";
