diff --git a/gulliver/system/class.headPublisher.php b/gulliver/system/class.headPublisher.php
index 5acc72382..c6cbb9431 100755
--- a/gulliver/system/class.headPublisher.php
+++ b/gulliver/system/class.headPublisher.php
@@ -283,6 +283,10 @@ class headPublisher {
$head = '';
$head .= " \n";
$head .= " \n";
+ $aux = explode('-', strtolower(SYS_LANG));
+ if (($aux[0] != 'en') && file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $aux[0] . '.js')) {
+ $head .= " \n";
+ }
// enabled for particular use
$head .= $this->getExtJsLibraries();
diff --git a/workflow/engine/templates/pmTables/edit.js b/workflow/engine/templates/pmTables/edit.js
index cc82685c6..fc93caa18 100755
--- a/workflow/engine/templates/pmTables/edit.js
+++ b/workflow/engine/templates/pmTables/edit.js
@@ -100,7 +100,7 @@ Ext.onReady(function(){
listeners:{
selectionchange: function(sm){
switch(sm.getCount()){
- case 0:
+ case 0:
//Ext.getCmp('removeButton').disable();
Ext.getCmp('editColumn').disable();
Ext.getCmp('removeColumn').disable();
@@ -110,7 +110,7 @@ Ext.onReady(function(){
Ext.getCmp('removeColumn').enable();
break;
default:
- //Ext.getCmp('removeButton').enable();
+ //Ext.getCmp('removeButton').enable();
Ext.getCmp('editColumn').disable();
Ext.getCmp('removeColumn').enable();
break;
@@ -303,7 +303,7 @@ Ext.onReady(function(){
//if a column was set as PK so can't be null
if (row.get('field_key') == true) {
row.data.field_null = false;
-
+
}
row.commit();
}
@@ -359,7 +359,7 @@ Ext.onReady(function(){
if (typeof(cindex) != "undefined") {
for(var i = 0; i < rows.length; i++) {
//skipping primary keys, we can't reorder
- if (rows[i].data.field_key )
+ if (rows[i].data.field_key )
continue;
var srcIndex = ds.indexOfId(rows[i].id);
@@ -587,13 +587,13 @@ Ext.onReady(function(){
southPanel = new Ext.FormPanel({
region: 'south',
- buttons:[
+ buttons:[
{
text: TABLE === false ? _("ID_CREATE") : _("ID_UPDATE"),
handler: function() {
if (TABLE === false || dataNumRows == 0) {
createReportTable();
- }
+ }
else {
PMExt.confirm(_('ID_CONFIRM'), _('ID_PMTABLE_SAVE_AND_DATA_LOST'), createReportTable);
}
@@ -622,7 +622,7 @@ Ext.onReady(function(){
loadTableRowsFromArray(TABLE.FIELDS);
}
-
+
if (dataNumRows > 0) {
var tpl = new Ext.Template(
'
'+
@@ -638,13 +638,13 @@ Ext.onReady(function(){
});
-// actions
+// actions
function createReportTable()
{
var tableName = Ext.getCmp('REP_TAB_NAME').getValue().trim();
var tableDescription = Ext.getCmp('REP_TAB_DSC').getValue().trim();
-
+
//validate table name
if (tableName == '') {
Ext.getCmp('REP_TAB_NAME').focus();
@@ -792,7 +792,7 @@ function _showDebugWin(content)
y: 0,
html: '
' + content + '
'
});
-
+
dbgWin.show();
}
@@ -811,7 +811,7 @@ function addColumn() {
field_null : 1
});
var len = assignedGrid.getStore().data.length;
-
+
editor.stopEditing();
store.insert(len, row);
assignedGrid.getView().refresh();
diff --git a/workflow/engine/templates/pmTables/editReport.js b/workflow/engine/templates/pmTables/editReport.js
index 9e70590a1..aa8a29e0a 100755
--- a/workflow/engine/templates/pmTables/editReport.js
+++ b/workflow/engine/templates/pmTables/editReport.js
@@ -7,7 +7,7 @@
var availableGrid;
var assignedGrid;
-var editor; // row editor for assignedGrid
+var editor; // row editor for assignedGrid
var store; // store for assignedGrid
//buttons define
@@ -34,7 +34,7 @@ Ext.onReady(function(){
root: 'rows',
totalProperty: 'count',
fields : [
- {name : 'FIELD_UID'},
+ {name : 'FIELD_UID'},
{name : 'FIELD_NAME'},
{name : '_index'},
{name : '_isset'}
@@ -172,7 +172,7 @@ Ext.onReady(function(){
}
}
}
- },
+ },
{
text: 'X',
ctCls:'pm_search_x_button',
@@ -181,7 +181,7 @@ Ext.onReady(function(){
filterAvFields();
}
}, {
- text: 'Filter',
+ text: _('ID_FILTER'),
handler: function(){
filterAvFields();
}
@@ -203,7 +203,7 @@ Ext.onReady(function(){
selectionchange: function(sm){
switch(sm.getCount()){
case 0:
- Ext.getCmp('removeButton').disable();
+ Ext.getCmp('removeButton').disable();
Ext.getCmp('removeColumn').disable();
break;
case 1:
@@ -235,15 +235,15 @@ Ext.onReady(function(){
id: 'uid',
dataIndex: 'uid',
hidden: true
- },
- {
+ },
+ {
dataIndex: '_index',
hidden: true
- },
+ },
{
dataIndex: '_isset',
hidden: true
- },
+ },
{
id: 'field_uid',
dataIndex: 'field_uid',
@@ -450,7 +450,7 @@ Ext.onReady(function(){
if (typeof(cindex) != "undefined") {
for(var i = 0; i < rows.length; i++) {
//skipping primary keys, we can't reorder
- if (rows[i].data.field_key )
+ if (rows[i].data.field_key )
continue;
var srcIndex = ds.indexOfId(rows[i].id);
@@ -598,7 +598,7 @@ Ext.onReady(function(){
if (TABLE !== false) { // is editing
defaultValue = TABLE.DBS_UID;
comboDbConnections.setDisabled(true);
- }
+ }
else {
defaultValue = 'workflow';
}
@@ -608,7 +608,7 @@ Ext.onReady(function(){
if (i > -1){
comboDbConnections.setValue(this.getAt(i).data.DBS_UID);
comboDbConnections.setRawValue(this.getAt(i).data.DBS_NAME);
- }
+ }
else {
// DB COnnection deleted
Ext.Msg.alert( _('ID_ERROR'), _('ID_DB_CONNECTION_NOT_EXIST') );
@@ -744,9 +744,9 @@ Ext.onReady(function(){
// loading available fields
//loadAvFieldsFromArray(avFieldsList);
- //if (TABLE.ADD_TAB_TYPE == 'GRID')
+ //if (TABLE.ADD_TAB_TYPE == 'GRID')
//loadFieldsGrids();
- //else
+ //else
if (TABLE.ADD_TAB_TYPE == 'NORMAL')
loadFieldNormal();
@@ -847,7 +847,7 @@ Ext.onReady(function(){
},
items: items
}
-
+
var frmDetails = new Ext.FormPanel(frmDetailsConfig);
southPanel = new Ext.FormPanel({
@@ -882,13 +882,13 @@ Ext.onReady(function(){
comboDbConnections.getStore().reload({params:{PRO_UID : PRO_UID}});
if (Ext.getCmp('REP_TAB_TYPE').getValue() == 'GRID') {
gridsListStore.reload({params:{PRO_UID : PRO_UID}});
- }
-
+ }
+
if (TABLE === false) {
if(TABLE.ADD_TAB_TYPE != 'GRID')
loadFieldNormal();
}
-
+
}
DDLoadFields();
@@ -1037,7 +1037,7 @@ function addColumn()
field_null : 1
});
var len = assignedGrid.getStore().data.length;
-
+
editor.stopEditing();
store.insert(len, row);
assignedGrid.getView().refresh();
@@ -1081,12 +1081,12 @@ AssignAllFieldsAction = function(){
//RevomeALLButton Functionality
RemoveAllFieldsAction = function(){
-
+
if (store.getCount() > 100) {
PMExt.info(_('ID_NOTICE'), _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_1') + _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_2') );
return ;
}
-
+
var allRows = Ext.getCmp('assignedGrid').getStore();
var records = new Array();
if (allRows.getCount() > 0) {
@@ -1115,7 +1115,7 @@ loadFieldNormal = function(){
loadFieldsGrids = function(){
var available = Ext.getCmp('availableGrid');
available.store.removeAll();
-
+
available.store.load({
params: {
action: "getDynafields",
@@ -1242,9 +1242,9 @@ function unsetReportFields(records) {
ix = records[i].data['_index'] != '' ? records[i].data['_index'] : records[i].data['field_dyn']
indexes.push(ix);
} else {
- if ( records[i].data['field_name'] == 'APP_UID'
+ if ( records[i].data['field_name'] == 'APP_UID'
|| records[i].data['field_name'] == 'APP_NUMBER'
- || records[i].data['field_name'] == 'ROW')
+ || records[i].data['field_name'] == 'ROW')
{
records[i] = null;
}
diff --git a/workflow/engine/templates/processes/main.js b/workflow/engine/templates/processes/main.js
index f8d601178..7e4757ddb 100755
--- a/workflow/engine/templates/processes/main.js
+++ b/workflow/engine/templates/processes/main.js
@@ -1,6 +1,6 @@
/*
* @author: Erik A. Ortiz
- * Aug 20th, 2010
+ * Aug 20th, 2010
*/
var processesGrid;
var store;
@@ -62,17 +62,17 @@ Ext.onReady(function(){
{name : 'CASES_COUNT_CANCELLED', type:'float'}
]
}),
-
+
//sortInfo:{field: 'PRO_TITLE', direction: "ASC"}
//groupField:'PRO_CATEGORY_LABEL'
-
+
listeners: {
load: function (store) {
Ext.ComponentMgr.get("export").setDisabled(true);
}
}
});
-
+
var expander = new Ext.ux.grid.RowExpander({
tpl : new Ext.Template(
'
' + _('ID_PRO_DESCRIPTION') + ': {PRO_DESCRIPTION}
'
@@ -112,11 +112,11 @@ Ext.onReady(function(){
filter = comboCategory.value;
store.setBaseParam( 'category', filter);
var searchTxt = Ext.util.Format.trim(Ext.getCmp('searchTxt').getValue());
-
+
if( searchTxt == '' ){
store.setBaseParam( 'processName', '');
}
-
+
store.load({params: {category: filter, start: 0, limit: 25}});
}}
})
@@ -125,7 +125,7 @@ Ext.onReady(function(){
data: [['20'],['30'],['40'],['50'],['100']],
autoLoad: true
});
-
+
var comboPageSize = new Ext.form.ComboBox({
typeAhead : false,
mode : 'local',
@@ -140,7 +140,7 @@ Ext.onReady(function(){
//UpdatePageConfig(d.data['size']);
bbar.pageSize = parseInt(d.data['size']);
bbar.moveFirst();
-
+
//Ext.getCmp('bbar').setPageSize(comboPageSize.getValue());
}
}
@@ -157,7 +157,7 @@ Ext.onReady(function(){
displayMsg: 'Displaying Processes {0} - {1} of {2}',
emptyMsg: "",
items:[_('ID_PAGE_SIZE')+':',comboPageSize]
- }) */
+ }) */
processesGrid = new Ext.grid.GridPanel( {
region: 'center',
layout: 'fit',
@@ -175,7 +175,7 @@ Ext.onReady(function(){
cls : 'grid_with_checkbox',
columnLines: true,
-
+
/*view: new Ext.grid.GroupingView({
//forceFit:true,
//groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
@@ -190,7 +190,7 @@ Ext.onReady(function(){
defaults: {
width: 200,
sortable: true
- },
+ },
columns: [
expander,
{id:'PRO_UID', dataIndex: 'PRO_UID', hidden:true, hideable:false},
@@ -203,7 +203,7 @@ Ext.onReady(function(){
return String.format("
{1}", color, v);
}},
{header: _('ID_PRO_USER'), dataIndex: 'PRO_CREATE_USER_LABEL', width: 150},
- {header: _('ID_PRO_CREATE_DATE'), dataIndex: 'PRO_CREATE_DATE', width: 90},
+ {header: _('ID_PRO_CREATE_DATE'), dataIndex: 'PRO_CREATE_DATE', width: 90},
{header: _('ID_INBOX'), dataIndex: 'CASES_COUNT_TO_DO', width: 50, align:'right'},
{header: _('ID_DRAFT'), dataIndex: 'CASES_COUNT_DRAFT', width: 50, align:'right'},
{header: _('ID_COMPLETED'), dataIndex: 'CASES_COUNT_COMPLETED', width: 70, align:'right'},
@@ -211,7 +211,7 @@ Ext.onReady(function(){
{header: _('ID_TOTAL_CASES'), dataIndex: 'CASES_COUNT', width: 80,renderer:function(v){return "
"+v+"";}, align:'right'},
{header: _('ID_PRO_DEBUG'), dataIndex: 'PRO_DEBUG_LABEL', width: 50, align:'center'}
]
- }),
+ }),
store: store,
tbar:[
{
@@ -220,7 +220,7 @@ Ext.onReady(function(){
//icon: '/images/addc.png',
handler: newProcess
},
- '-'
+ '-'
,{
text: _('ID_EDIT'),
iconCls: 'button_menu_ext ss_sprite ss_pencil',
@@ -322,10 +322,10 @@ Ext.onReady(function(){
processesGrid.getSelectionModel().on('rowselect', function(){
var rowSelected = processesGrid.getSelectionModel().getSelected();
var activator = Ext.getCmp('activator');
-
+
activator.setDisabled(false);
Ext.ComponentMgr.get("export").setDisabled(false);
-
+
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
activator.setIcon('/images/deactivate.png');
activator.setText( _('ID_DEACTIVATE') );
@@ -343,11 +343,11 @@ Ext.onReady(function(){
processesGrid.on('rowcontextmenu', function (grid, rowIndex, evt) {
var sm = grid.getSelectionModel();
sm.selectRow(rowIndex, sm.isSelected(rowIndex));
-
+
var rowSelected = Ext.getCmp('processesGrid').getSelectionModel().getSelected();
var activator = Ext.getCmp('activator2');
var debug = Ext.getCmp('debug');
-
+
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
activator.setIconClass('icon-deactivate');
activator.setText( _('ID_DEACTIVATE') );
@@ -373,7 +373,7 @@ Ext.onReady(function(){
var coords = e.getXY();
messageContextMenu.showAt([coords[0], coords[1]]);
}
-
+
var messageContextMenu = new Ext.menu.Menu({
id: 'messageContextMenu',
items: [{
@@ -420,7 +420,7 @@ Ext.onReady(function(){
function newProcess(){
// window.location = 'processes_New';
var ProcessCategories = new Ext.form.ComboBox({
- fieldLabel : 'Category',
+ fieldLabel : _('ID_CATEGORY'),
hiddenName : 'PRO_CATEGORY',
valueField : 'CATEGORY_UID',
displayField : 'CATEGORY_NAME',
@@ -436,7 +436,7 @@ function newProcess(){
url : '../processProxy/getCategoriesList',
method : 'POST'
}),
-
+
reader : new Ext.data.JsonReader( {
fields : [ {
name : 'CATEGORY_UID'
@@ -458,7 +458,7 @@ function newProcess(){
width : 400,
items : [ {
id: 'PRO_TITLE',
- fieldLabel: _('ID_TITLE'),
+ fieldLabel: _('ID_TITLE'),
xtype:'textfield',
width: 260,
maskRe: /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*:\";|/]+$/i,
@@ -467,14 +467,14 @@ function newProcess(){
id: 'PRO_DESCRIPTION',
fieldLabel: _('ID_DESCRIPTION'),
xtype:'textarea',
- width: 260
+ width: 260
},
ProcessCategories/*,
{
id: 'editor',
xtype: 'radiogroup',
fieldLabel: _('ID_OPEN_WITH'),
- items: [
+ items: [
{boxLabel: _('ID_CLASSIC_EDITOR'), name: 'editor', inputValue: 'classic', checked: true},
{boxLabel: _('ID_BPMN_EDITOR'), name: 'editor', inputValue: 'bpmn'}
]
@@ -488,7 +488,7 @@ function newProcess(){
handler : function() {
win.close();
}
- }]
+ }]
});
var win = new Ext.Window({
@@ -524,7 +524,7 @@ function doSearch(){
store.setBaseParam( 'category', '
');
filter = Ext.getCmp('searchTxt').getValue();
store.setBaseParam('processName', filter);
-
+
store.load({params:{processName: filter, start: 0 , limit: 25}});
}
@@ -567,7 +567,7 @@ deleteProcess = function(){
if( rows.length > 0 ) {
isValid = true;
errLog = Array();
-
+
//verify if the selected rows have not any started or delegated cases
for(i=0; i= 0)? proTitle : proTitle.substring(0, (titleLength - 1) + 1) + "...";
-
+
///////
Ext.Ajax.request({
url: "../processes/processes_Ajax",
@@ -672,11 +672,11 @@ function exportProcess() {
success: function (response, opts) {
myMask.hide();
-
+
///////
var dataResponse = eval("(" + response.responseText + ")"); //json
var url = window.location.href;
-
+
window.open(url.substring(0, url.lastIndexOf("/") + 1) + dataResponse.FILENAME_LINK, "_blank");
},
@@ -1098,7 +1098,7 @@ browseLibrary = function(){
function activeDeactive(){
var rows = processesGrid.getSelectionModel().getSelections();
-
+
if( rows.length > 0 ) {
var ids = '';
for(i=0; i 0 ) {
var ids = '';
for(i=0; i
+