diff --git a/workflow/engine/classes/class.dashletOpenVSCompleted.php b/workflow/engine/classes/class.dashletOpenVSCompleted.php
index 89c0f5a9e..b8ed76889 100644
--- a/workflow/engine/classes/class.dashletOpenVSCompleted.php
+++ b/workflow/engine/classes/class.dashletOpenVSCompleted.php
@@ -35,7 +35,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$contextTime = new stdclass();
$contextTime->xtype = 'combo';
$contextTime->name = 'DAS_INS_CONTEXT_TIME';
- $contextTime->fieldLabel = 'Period';
+ $contextTime->fieldLabel = G::LoadTranslation('ID_PERIOD');
$contextTime->editable = false;
$contextTime->width = 320;
$contextTime->store = $contextTimeStore;
@@ -49,7 +49,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$redFrom = new stdclass();
$redFrom->xtype = 'numberfield';
$redFrom->name = 'DAS_RED_FROM';
- $redFrom->fieldLabel = 'Red Starts In';
+ $redFrom->fieldLabel = G::LoadTranslation('ID_RED_STARTS_IN');
$redFrom->width = 50;
$redFrom->maxLength = 3;
$redFrom->maxValue = 100;
@@ -61,7 +61,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$redTo = new stdclass();
$redTo->xtype = 'numberfield';
$redTo->name = 'DAS_RED_TO';
- $redTo->fieldLabel = 'Red Ends In';
+ $redTo->fieldLabel = G::LoadTranslation('ID_RED_ENDS_IN');
$redTo->width = 50;
$redTo->maxLength = 3;
$redTo->maxValue = 100;
@@ -73,7 +73,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$yellowFrom = new stdclass();
$yellowFrom->xtype = 'numberfield';
$yellowFrom->name = 'DAS_YELLOW_FROM';
- $yellowFrom->fieldLabel = 'Yellow Starts In';
+ $yellowFrom->fieldLabel = G::LoadTranslation('ID_YELLOW_STARTS_IN');
$yellowFrom->width = 50;
$yellowFrom->maxLength = 3;
$yellowFrom->maxValue = 100;
@@ -85,7 +85,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$yellowTo = new stdclass();
$yellowTo->xtype = 'numberfield';
$yellowTo->name = 'DAS_YELLOW_TO';
- $yellowTo->fieldLabel = 'Yellow Ends In';
+ $yellowTo->fieldLabel = G::LoadTranslation('ID_YELLOW_ENDS_IN');
$yellowTo->width = 50;
$yellowTo->maxLength = 3;
$yellowTo->maxValue = 100;
@@ -97,7 +97,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$greenFrom = new stdclass();
$greenFrom->xtype = 'numberfield';
$greenFrom->name = 'DAS_GREEN_FROM';
- $greenFrom->fieldLabel = 'Green Starts In';
+ $greenFrom->fieldLabel = G::LoadTranslation('ID_GREEN_STARTS_IN');
$greenFrom->width = 50;
$greenFrom->maxLength = 3;
$greenFrom->maxValue = 100;
@@ -109,7 +109,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$greenTo = new stdclass();
$greenTo->xtype = 'numberfield';
$greenTo->name = 'DAS_GREEN_TO';
- $greenTo->fieldLabel = 'Green Ends In';
+ $greenTo->fieldLabel = G::LoadTranslation('ID_GREEN_ENDS_IN');
$greenTo->width = 50;
$greenTo->maxLength = 3;
$greenTo->maxValue = 100;
diff --git a/workflow/engine/methods/outputdocs/outputdocs_Edit.php b/workflow/engine/methods/outputdocs/outputdocs_Edit.php
index d293fd8f4..b64261e11 100755
--- a/workflow/engine/methods/outputdocs/outputdocs_Edit.php
+++ b/workflow/engine/methods/outputdocs/outputdocs_Edit.php
@@ -71,7 +71,7 @@ try {
'ID_FILE', 'ID_OUT_PUT_DOC_UPLOAD_TITLE', 'ID_UPLOADING_FILE', 'ID_UPLOAD', 'ID_CANCEL',
'ID_SAVE', 'ID_LOAD_FROM_FILE', 'ID_SELECT_TEMPLATE_FILE', 'ID_ALERT_MESSAGE', 'ID_INVALID_FILE'
));
- $oHeadPublisher->assign('TRANSLATIONS', $translations);
+// $oHeadPublisher->assign('TRANSLATIONS', $translations);
$oHeadPublisher->addExtJsScript('outputdocs/htmlEditor', false ); //adding a javascript file .js
G::RenderPage('publish', 'extJs');
die;
diff --git a/workflow/engine/methods/setup/appCacheViewConf.php b/workflow/engine/methods/setup/appCacheViewConf.php
index efb6f0a06..9768c9fd5 100755
--- a/workflow/engine/methods/setup/appCacheViewConf.php
+++ b/workflow/engine/methods/setup/appCacheViewConf.php
@@ -29,7 +29,7 @@
'ID_CACHE_TITLE_INFO', 'ID_CACHE_SUBTITLE_REBUILD', 'ID_CACHE_BTN_BUILD',
'ID_CACHE_BUILDING', 'ID_CACHE_SUBTITLE_SETUP_DB', 'ID_CACHE_BTN_SETUP_PASSWRD', 'ID_CACHE_SUBTITLE_SETUP_SESSION', 'ID_CACHE_BTN_SETUP_SESSION'
));
- $oHeadPublisher->assign('TRANSLATIONS', $labels);
+ // $oHeadPublisher->assign('TRANSLATIONS', $labels);
// $TRANSLATIONS->ID_PROCESSING = G::LoadTranslation('ID_PROCESSING');
// $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
$oHeadPublisher->assign( 'currentLang', $lang); //current language
diff --git a/workflow/engine/methods/setup/languages.php b/workflow/engine/methods/setup/languages.php
index 9e0f235bd..94d260089 100755
--- a/workflow/engine/methods/setup/languages.php
+++ b/workflow/engine/methods/setup/languages.php
@@ -34,5 +34,5 @@ $labels = G::getTranslations(Array(
'ID_DELETE_LANGUAGE_WARNING', 'ID_ACTIONS', 'ID_LAN_LOCALE', 'ID_LAN_TRANSLATOR', 'ID_LAN_NUM_RECORDS', 'ID_UPLOADING_TRANSLATION_FILE'
));
-$oHeadPublisher->assign('TRANSLATIONS', $labels);
+//$oHeadPublisher->assign('TRANSLATIONS', $labels);
G::RenderPage('publish', 'extJs');
diff --git a/workflow/engine/templates/admin/calendarEdit.js b/workflow/engine/templates/admin/calendarEdit.js
index 93fa8fe56..a1fa5b133 100644
--- a/workflow/engine/templates/admin/calendarEdit.js
+++ b/workflow/engine/templates/admin/calendarEdit.js
@@ -1098,7 +1098,7 @@ Ext.onReady( function() {
}
}
else {
- Ext.Msg.alert( _('ID_ERROR'), 'There is at least one empty date field in the holiday grid, please check and try again');
+ Ext.Msg.alert( _('ID_ERROR'), _('ID_MESSAGE_EMPTY_DATE_FIELD'));
}
}
},
diff --git a/workflow/engine/templates/admin/uxUsersList.js b/workflow/engine/templates/admin/uxUsersList.js
index 7373889f3..cb67098c6 100755
--- a/workflow/engine/templates/admin/uxUsersList.js
+++ b/workflow/engine/templates/admin/uxUsersList.js
@@ -263,7 +263,7 @@ Ext.onReady(function(){
cmodelGroups = new Ext.grid.ColumnModel({
viewConfig: {
cls:"x-grid-empty",
- emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND)
+ emptyText: _('ID_NO_RECORDS_FOUND')
}
,
columns: [
@@ -427,8 +427,8 @@ full_name = function(v,x,s){
render_status = function(v){
switch(v){
case 'ACTIVE': return '' + _('ID_ACTIVE') + ''; break;
- case 'INACTIVE': return '' + _('ID_INACTIVE') + '';; break;
- case 'VACATION': return '' + _('ID_VACATION') + '';; break;
+ case 'INACTIVE': return '' + _('ID_INACTIVE') + ''; break;
+ case 'VACATION': return '' + _('ID_VACATION') + ''; break;
}
};
diff --git a/workflow/engine/templates/app/main.js b/workflow/engine/templates/app/main.js
index bee8df26e..44e9bb511 100644
--- a/workflow/engine/templates/app/main.js
+++ b/workflow/engine/templates/app/main.js
@@ -149,7 +149,7 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle)
],
tbar:[
new Ext.form.TextArea({
- text : 'New Note',
+ text : _('ID_NEW_NOTE'),
xtype : 'textarea',
id : 'caseNoteText',
name : 'caseNoteText',
@@ -182,14 +182,14 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle)
}, ' ',
{
id: 'addCancelBtn',
- text: 'Cancel',
+ text: _('ID_CANCEL'),
cls: 'x-toolbar1',
//iconCls: 'xx',
icon: '/images/add_notes.png',
handler: newNoteHandler,
tooltip: {
- title: 'Add new note',
- text: 'Case: ' + title
+ title: _('ID_CASES_NOTES_ADD'),
+ text: _('ID_CASE') + ': ' + title
}
}
]
diff --git a/workflow/engine/templates/authSources/authSourcesEdit.js b/workflow/engine/templates/authSources/authSourcesEdit.js
index c302369e1..d61dba2b9 100644
--- a/workflow/engine/templates/authSources/authSourcesEdit.js
+++ b/workflow/engine/templates/authSources/authSourcesEdit.js
@@ -269,7 +269,7 @@ Ext.onReady(function(){
});
//here we are setting the fields
fieldsAS = new Ext.form.FieldSet({
- title: 'Authentication Source Information',
+ title: _('ID_AUTHENTICATION_SOURCE_INF_TITLE'),
items: [
txtSourceId,
txtName,
@@ -311,11 +311,11 @@ Ext.onReady(function(){
],
buttons: [
{
- text: 'Save',
+ text: _('ID_SAVE'),
handler: saveAuthSources
},
{
- text: 'Cancel',
+ text: _('ID_CANCEL'),
handler: goback
}
]
diff --git a/workflow/engine/templates/authSources/authSourcesListNew.js b/workflow/engine/templates/authSources/authSourcesListNew.js
index 4479da802..719f543ad 100755
--- a/workflow/engine/templates/authSources/authSourcesListNew.js
+++ b/workflow/engine/templates/authSources/authSourcesListNew.js
@@ -23,7 +23,7 @@ var my_values = [
['krlos']
];
var cboxAuthSourse = new Ext.form.ComboBox({
- fieldLabel: 'Provider',
+ fieldLabel: _('ID_PROVIDER'),
hiddenName: 'AUTH_SOURCE_PROVIDER',
mode: 'local',
triggerAction: 'all',
@@ -42,7 +42,7 @@ var cboxAuthSourse = new Ext.form.ComboBox({
});
componAuthSourse = new Ext.form.FieldSet({
- title: 'Available Authentication Sources',
+ title: _('ID_AVAILABLE_AUTHENTICATION_SOURCES'),
items: [
cboxAuthSourse
]
@@ -70,11 +70,11 @@ var cboxAuthSourse = new Ext.form.ComboBox({
],
buttons: [
{
- text: 'Continue',
+ text: _('ID_CONTINUE'),
handler: gotypesAuthSources
},
{
- text: 'Cancel',
+ text: _('ID_CANCEL'),
handler: goBackform
}
]
diff --git a/workflow/engine/templates/authSources/authSourceskindof.js b/workflow/engine/templates/authSources/authSourceskindof.js
index c37ae7703..d0512dd36 100644
--- a/workflow/engine/templates/authSources/authSourceskindof.js
+++ b/workflow/engine/templates/authSources/authSourceskindof.js
@@ -287,7 +287,7 @@ Ext.onReady(function(){
});
//here we are setting the fields
fieldsAS = new Ext.form.FieldSet({
- title: 'Authentication Source Information',
+ title: _('ID_AUTHENTICATION_SOURCE_INFORMATION'),
items: [
txtSourceId,
txtSourceProvider,
@@ -331,12 +331,12 @@ Ext.onReady(function(){
],
buttons: [
{
- text: 'Save',
+ text: _('ID_SAVE'),
handler: TestSite
},
{
- text: 'Cancel',
+ text: _('ID_CANCEL'),
handler: goback
}
]
@@ -383,10 +383,10 @@ Ext.onReady(function(){
},
failure: function(f,a){
if (a.failureType === Ext.form.Action.CONNECT_FAILURE){
- Ext.Msg.alert('Failure', 'Server reported:'+a.response.status+' '+a.response.statusText);
+ Ext.Msg.alert(_('ID_FAILURE'), _('ID_SERVER_REPORTED') + ':'+a.response.status+' '+a.response.statusText);
}
if (a.failureType === Ext.form.Action.SERVER_INVALID){
- Ext.Msg.alert('Warning', 'you have an error');
+ Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR') );
}
}
});
diff --git a/workflow/engine/templates/cases/casesList.js b/workflow/engine/templates/cases/casesList.js
index 9fdca1c60..a72d26cba 100644
--- a/workflow/engine/templates/cases/casesList.js
+++ b/workflow/engine/templates/cases/casesList.js
@@ -12,7 +12,7 @@ new Ext.KeyMap(document, {
storeCases.reload();
}
else
- Ext.Msg.alert(TRANSLATIONS.ID_REFRESH_LABEL, TRANSLATIONS.ID_REFRESH_MESSAGE);
+ Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
}
});
@@ -28,7 +28,7 @@ var caseSummary = function() {
openSummaryWindow(rowModel.data.APP_UID, rowModel.data.DEL_INDEX);
}
else {
- msgBox('Information', TRANSLATIONS.ID_SELECT_ONE_AT_LEAST);
+ msgBox(_('ID_INFORMATION'), _('ID_SELECT_ONE_AT_LEAST'));
}
};
@@ -40,7 +40,7 @@ function caseNotes(){
var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
openCaseNotesWindow(appUid,true);
}else{
- msgBox('Information', TRANSLATIONS.ID_SELECT_ONE_AT_LEAST);
+ msgBox(_('ID_INFORMATION'), _('ID_SELECT_ONE_AT_LEAST') );
}
}
function openCase(){
@@ -52,7 +52,7 @@ function openCase(){
var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
Ext.Msg.show({
- msg: TRANSLATIONS.ID_OPEN_CASE + ' ' + caseTitle,
+ msg: _('ID_OPEN_CASE') + ' ' + caseTitle,
width:300,
wait:true,
waitConfig: {interval:200}
@@ -97,7 +97,7 @@ function openCase(){
redirect(requestFile + '?' + params);
} else
- msgBox('Information', TRANSLATIONS.ID_SELECT_ONE_AT_LEAST);
+ msgBox(_('ID_INFORMATION'), _('ID_SELECT_ONE_AT_LEAST'));
}
function jumpToCase(appNumber){
@@ -117,11 +117,11 @@ function deleteCase() {
APP_UIDS = ids.join(',');
Ext.Msg.confirm(
- TRANSLATIONS.ID_CONFIRM,
- rows.length == 1? TRANSLATIONS.ID_MSG_CONFIRM_DELETE_CASE: TRANSLATIONS.ID_MSG_CONFIRM_DELETE_CASES,
+ _('ID_CONFIRM'),
+ (rows.length == 1) ? _('ID_MSG_CONFIRM_DELETE_CASE') : _('ID_MSG_CONFIRM_DELETE_CASES'),
function(btn, text){
if ( btn == 'yes' ) {
- Ext.MessageBox.show({ msg: TRANSLATIONS.ID_DELETING_ELEMENTS, wait:true,waitConfig: {interval:200} });
+ Ext.MessageBox.show({ msg: _('ID_DELETING_ELEMENTS'), wait:true,waitConfig: {interval:200} });
Ext.Ajax.request({
url: 'cases_Delete',
success: function(response) {
@@ -147,7 +147,7 @@ function deleteCase() {
} else {
Ext.Msg.show({
title:'',
- msg: TRANSLATIONS.ID_NO_SELECTION_WARNING,
+ msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO,
fn: function(){},
animEl: 'elId',
@@ -162,11 +162,11 @@ function pauseCase(date){
unpauseDate = date.format('Y-m-d');
Ext.Msg.confirm(
- TRANSLATIONS.ID_CONFIRM,
- TRANSLATIONS.ID_PAUSE_CASE_TO_DATE +' '+date.format('M j, Y')+'?',
+ _('ID_CONFIRM'),
+ _('ID_PAUSE_CASE_TO_DATE') +' '+date.format('M j, Y')+'?',
function(btn, text){
if ( btn == 'yes' ) {
- Ext.MessageBox.show({ msg: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} });
+ Ext.MessageBox.show({ msg: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
Ext.Ajax.request({
url: 'cases_Ajax',
success: function(response) {
@@ -208,11 +208,11 @@ function cancelCase(){
DEL_INDEXES = del_index.join(',');
Ext.Msg.confirm(
- TRANSLATIONS.ID_CONFIRM,
- rows.length == 1? TRANSLATIONS.ID_MSG_CONFIRM_CANCEL_CASE: TRANSLATIONS.ID_MSG_CONFIRM_CANCEL_CASES,
+ _('ID_CONFIRM'),
+ (rows.length == 1) ? _('ID_MSG_CONFIRM_CANCEL_CASE') : _('ID_MSG_CONFIRM_CANCEL_CASES'),
function(btn, text){
if ( btn == 'yes' ) {
- Ext.MessageBox.show({ msg: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} });
+ Ext.MessageBox.show({ msg: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
Ext.Ajax.request({
url: 'cases_Ajax',
success: function(response) {
@@ -238,7 +238,7 @@ function cancelCase(){
} else {
Ext.Msg.show({
title:'',
- msg: TRANSLATIONS.ID_NO_SELECTION_WARNING,
+ msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO,
fn: function(){},
animEl: 'elId',
@@ -250,7 +250,7 @@ function cancelCase(){
function callbackUnpauseCase (btn, text) {
if ( btn == 'yes' ) {
- Ext.MessageBox.show({ progressText: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} });
+ Ext.MessageBox.show({ progressText: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
Ext.Ajax.request({
url: 'cases_Ajax',
success: function(response) {
@@ -278,9 +278,9 @@ function unpauseCase() {
caseIdToUnpause = rowModel.data.APP_UID;
caseIndexToUnpause = rowModel.data.DEL_INDEX;
- Ext.Msg.confirm( TRANSLATIONS.ID_CONFIRM, TRANSLATIONS.ID_CONFIRM_UNPAUSE_CASE , function (btn, text) {
+ Ext.Msg.confirm( _('ID_CONFIRM'), _('ID_CONFIRM_UNPAUSE_CASE') , function (btn, text) {
if ( btn == 'yes' ) {
- Ext.MessageBox.show({ progressText: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} });
+ Ext.MessageBox.show({ progressText: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
Ext.Ajax.request({
url: 'cases_Ajax',
success: function(response) {
@@ -340,19 +340,19 @@ Ext.onReady ( function() {
};
function openLink(value, p, r){
- return String.format("" + TRANSLATIONS.ID_VIEW + "", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']);
+ return String.format("" + _('ID_VIEW') + "", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']);
}
function deleteLink(value, p, r){
- return String.format("" + TRANSLATIONS.ID_DELETE + "", r.data['APP_UID'] );
+ return String.format("" + _('ID_DELETE') + "", r.data['APP_UID'] );
}
function viewLink(value, p, r){
- return String.format("" + TRANSLATIONS.ID_VIEW + "", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']);
+ return String.format("" + _('ID_VIEW') + "", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']);
}
function unpauseLink(value, p, r){
- return String.format("" + TRANSLATIONS.ID_UNPAUSE + "", r.data['APP_UID'], r.data['DEL_INDEX'] );
+ return String.format("" + _('ID_UNPAUSE') + "", r.data['APP_UID'], r.data['DEL_INDEX'] );
}
function convertDate ( value ) {
@@ -438,7 +438,7 @@ Ext.onReady ( function() {
var newPopUp = new Ext.Window({
id : Ext.id(),
el : 'reassign-panel',
- title : 'Reassign All Cases by Task',
+ title : _('ID_REASSIGN_ALL_CASES_BY_TASK'),
width : 750,
height : 350,
frame : true,
@@ -446,7 +446,7 @@ Ext.onReady ( function() {
});
var btnCloseReassign = new Ext.Button ({
- text: TRANSLATIONS.ID_CLOSE,
+ text: _('ID_CLOSE'),
// text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){
newPopUp.hide();
@@ -454,7 +454,7 @@ Ext.onReady ( function() {
});
var btnExecReassign = new Ext.Button ({
- text: TRANSLATIONS.ID_REASSIGN_ALL,
+ text: _('ID_REASSIGN_ALL'),
// text: 'Reassign All',
// text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){
@@ -487,7 +487,7 @@ Ext.onReady ( function() {
});
var btnExecReassignSelected = new Ext.Button ({
- text: TRANSLATIONS.ID_REASSIGN,
+ text: _('ID_REASSIGN'),
// text: 'Reassign',
// text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){
@@ -499,7 +499,7 @@ Ext.onReady ( function() {
sv[i]= rs[i].data;
}
var gridData = storeReassignCases.getModifiedRecords();
- Ext.MessageBox.show({ msg: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} });
+ Ext.MessageBox.show({ msg: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
Ext.Ajax.request({
url: 'proxySaveReassignCasesList',
success: function(response) {
@@ -511,18 +511,18 @@ Ext.onReady ( function() {
for (count in ajaxServerResponse) {
if ( ajaxServerResponse[count]['TAS_TITLE'] != undefined ){
- message = message + "Case: " + ajaxServerResponse[count]['APP_TITLE'] + " - Reassigned to: " + ajaxServerResponse[count]['APP_REASSIGN_USER'] + "
" ;
+ message = message + _('ID_CASE') + ": " + ajaxServerResponse[count]['APP_TITLE'] + " - " + _('ID_REASSIGNED_TO') + ": " + ajaxServerResponse[count]['APP_REASSIGN_USER'] + "
" ;
};
}
if (ajaxServerResponse['TOTAL']!=undefined&&ajaxServerResponse['TOTAL']!=-1){
- message = message + "
Total Cases Reassigned: " + ajaxServerResponse['TOTAL'];
+ message = message + "
" + _('ID_TOTAL_CASES_REASSIGNED') + ": " + ajaxServerResponse['TOTAL'];
} else {
message = "";
};
if (message!=""){
- Ext.MessageBox.alert( 'Status Reassignment', message, '' );
+ Ext.MessageBox.alert( _('ID_STATUS_REASSIGNMENT'), message, '' );
}
},
params: { APP_UIDS:ids, data:Ext.util.JSON.encode(sv), selected:true }
@@ -632,7 +632,7 @@ Ext.onReady ( function() {
// creating the button for filters
var btnRead = new Ext.Button ({
id: 'read',
- text: TRANSLATIONS.ID_OPT_READ,
+ text: _('ID_OPT_READ'),
enableToggle: true,
toggleHandler: onItemToggle,
allowDepress: false,
@@ -641,7 +641,7 @@ Ext.onReady ( function() {
var btnUnread = new Ext.Button ({
id: 'unread',
- text: TRANSLATIONS.ID_OPT_UNREAD,
+ text: _('ID_OPT_UNREAD'),
enableToggle: true,
toggleHandler: onItemToggle,
allowDepress: false,
@@ -650,7 +650,7 @@ Ext.onReady ( function() {
var btnAll = new Ext.Button ({
id: 'all',
- text: TRANSLATIONS.ID_OPT_ALL,
+ text: _('ID_OPT_ALL'),
enableToggle: true,
toggleHandler: onItemToggle,
allowDepress: false,
@@ -660,7 +660,7 @@ Ext.onReady ( function() {
var btnStarted = new Ext.Button ({
id: 'started',
// text: 'started by me',
- text: TRANSLATIONS.ID_OPT_STARTED,
+ text: _('ID_OPT_STARTED'),
enableToggle: true,
toggleHandler: onItemToggle,
allowDepress: true,
@@ -670,7 +670,7 @@ Ext.onReady ( function() {
var btnCompleted = new Ext.Button ({
id: 'completed',
// text: 'Completed by me',
- text: TRANSLATIONS.ID_OPT_COMPLETED,
+ text: _('ID_OPT_COMPLETED'),
enableToggle: true,
toggleHandler: onItemToggle,
allowDepress: true,
@@ -691,7 +691,7 @@ Ext.onReady ( function() {
displayField : 'APP_PRO_TITLE',
valueField : 'PRO_UID',
forceSelection: false,
- emptyText: TRANSLATIONS.ID_EMPTY_PROCESSES,
+ emptyText: _('ID_EMPTY_PROCESSES'),
selectOnFocus: true,
tpl: resultTpl,
@@ -729,7 +729,7 @@ Ext.onReady ( function() {
forceSelection: true,
triggerAction: 'all',
- emptyText: TRANSLATIONS.ID_EMPTY_USERS,
+ emptyText: _('ID_EMPTY_USERS'),
selectOnFocus: true,
//getListParent: function() {
// return this.el.up('.x-menu');
@@ -760,7 +760,7 @@ Ext.onReady ( function() {
});
var btnSelectAll = new Ext.Button ({
- text: TRANSLATIONS.CHECK_ALL,
+ text: _('CHECK_ALL'),
// text: 'Check All',
// text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){
@@ -769,7 +769,7 @@ Ext.onReady ( function() {
});
var btnUnSelectAll = new Ext.Button ({
- text: TRANSLATIONS.UNCHECK_ALL,
+ text: _('UNCHECK_ALL'),
// text: 'Un-Check All',
// text: TRANSLATIONS.LABEL_UNSELECT_ALL,
handler: function(){
@@ -778,7 +778,7 @@ Ext.onReady ( function() {
});
var btnReassign = new Ext.Button ({
- text: TRANSLATIONS.ID_REASSIGN,
+ text: _('ID_REASSIGN'),
// text: 'Reassign',
// text: TRANSLATIONS.LABEL_UNSELECT_ALL,
handler: function(){
@@ -794,7 +794,7 @@ Ext.onReady ( function() {
collapsible:true,
defaultType:'textfield',
items:[{
- fieldLabel:'Reassign To',
+ fieldLabel: _('ID_REASSIGN_TO'),
name:'txt_stock_in',
allowBlank:true
}]
@@ -811,7 +811,7 @@ Ext.onReady ( function() {
plain:true,
items:[nav],
buttons:[{
- text: TRANSLATIONS.ID_SUBMIT,
+ text: _('ID_SUBMIT'),
handler:function(){
Ext.Msg.alert('OK','save ?');
Ext.Msg.prompt('Name','please enter your name: ',function(btn,text){
@@ -821,7 +821,7 @@ Ext.onReady ( function() {
});
}
}, {
- text: TRANSLATIONS.ID_CLOSE,
+ text: _('ID_CLOSE'),
handler:function() {
reassignPopup.hide();
}
@@ -869,7 +869,7 @@ Ext.onReady ( function() {
valueField : 'USR_UID',
mode : 'local',
forceSelection: false,
- emptyText: TRANSLATIONS.ID_SELECT,
+ emptyText: _('ID_SELECT'),
selectOnFocus: true,
typeAhead: true,
@@ -898,7 +898,7 @@ Ext.onReady ( function() {
allowBlank: true,
ctCls:'pm_search_text_field',
width: 150,
- emptyText: TRANSLATIONS.ID_EMPTY_SEARCH,
+ emptyText: _('ID_EMPTY_SEARCH'),
listeners: {
specialkey: function(f,e){
if (e.getKey() == e.ENTER) {
@@ -909,7 +909,7 @@ Ext.onReady ( function() {
});
var btnSearch = new Ext.Button ({
- text: TRANSLATIONS.ID_SEARCH,
+ text: _('ID_SEARCH'),
handler: doSearch
});
@@ -933,7 +933,7 @@ Ext.onReady ( function() {
id : 'textJump',
allowBlank: true,
width: 50,
- emptyText: TRANSLATIONS.ID_CASESLIST_APP_UID,
+ emptyText: _('ID_CASESLIST_APP_UID'),
listeners: {
specialkey: function(f,e){
if (e.getKey() == e.ENTER) {
@@ -942,20 +942,20 @@ Ext.onReady ( function() {
if( caseNumber )
jumpToCase(caseNumber);
else
- msgBox('Input Error', 'You have set a invalid Application Number', 'error');
+ msgBox(_('ID_INPUT_ERROR'), _('ID_INVALID_APPLICATION_NUMBER'), 'error');
}
}
}
};
var btnJump = new Ext.Button ({
- text: TRANSLATIONS.ID_OPT_JUMP,
+ text: _('ID_OPT_JUMP'),
handler: function(){
var caseNumber = parseFloat(Ext.util.Format.trim(Ext.getCmp('textJump').getValue()));
if (caseNumber){
jumpToCase(caseNumber);
} else {
- msgBox('Input Error', 'You have set a invalid Application Number', 'error');
+ msgBox(_('ID_INPUT_ERROR'), _('ID_INVALID_APPLICATION_NUMBER'), 'error');
}
}
});
@@ -1027,13 +1027,13 @@ Ext.onReady ( function() {
});
optionMenuUnpause = new Ext.Action({
- text: TRANSLATIONS.ID_UNPAUSE_CASE,
+ text: _('ID_UNPAUSE_CASE'),
iconCls: 'ICON_CASES_UNPAUSE',
handler: unpauseCase
});
optionMenuPause = new Ext.Action({
- text: TRANSLATIONS.ID_PAUSE_CASE,
+ text: _('ID_PAUSE_CASE'),
iconCls: 'ICON_CASES_PAUSED',
menu: new Ext.menu.DateMenu({
//vtype: 'daterange',
@@ -1082,7 +1082,7 @@ Ext.onReady ( function() {
}
},
failure: function ( result, request) {
- Ext.MessageBox.alert('Failed', result.responseText);
+ Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
}
});
});
@@ -1122,7 +1122,7 @@ Ext.onReady ( function() {
optionMenuReassignGlobal.DEL_INDEX = "";
optionMenuReassign = new Ext.Action({
- text: TRANSLATIONS.ID_REASSIGN,
+ text: _('ID_REASSIGN'),
iconCls: 'ICON_CASES_TO_REASSIGN',
handler: function() {
@@ -1222,12 +1222,12 @@ Ext.onReady ( function() {
}
});
optionMenuDelete = new Ext.Action({
- text: TRANSLATIONS.ID_DELETE,
+ text: _('ID_DELETE'),
iconCls: 'ICON_CASES_DELETE',
handler: deleteCase
});
optionMenuCancel = new Ext.Action({
- text: TRANSLATIONS.ID_CANCEL,
+ text: _('ID_CANCEL'),
iconCls: 'ICON_CASES_CANCEL',
handler: cancelCase
});
@@ -1288,7 +1288,7 @@ Ext.onReady ( function() {
optionMenuOpen,
{
xtype: 'tbsplit',
- text: TRANSLATIONS.ID_ACTIONS,
+ text: _('ID_ACTIONS'),
menu: menuItems
},
@@ -1299,7 +1299,7 @@ Ext.onReady ( function() {
'-',
btnAll,
'->', // begin using the right-justified button container
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
'-',
textSearch,
@@ -1320,7 +1320,7 @@ Ext.onReady ( function() {
'-',
btnAll,
'->', // begin using the right-justified button container
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
'-',
textSearch,
@@ -1341,7 +1341,7 @@ Ext.onReady ( function() {
'-',
btnAll,
'->', // begin using the right-justified button container
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
'-',
textSearch,
@@ -1360,11 +1360,11 @@ Ext.onReady ( function() {
optionMenuOpen,
{
xtype: 'tbsplit',
- text: TRANSLATIONS.ID_ACTIONS,
+ text: _('ID_ACTIONS'),
menu: menuItems
},
'->',
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
'-',
textSearch,
@@ -1380,7 +1380,7 @@ Ext.onReady ( function() {
var toolbarToRevise = [
optionMenuOpen,
'->', // begin using the right-justified button container
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
'-',
textSearch,
@@ -1404,7 +1404,7 @@ Ext.onReady ( function() {
'user',
comboAllUsers,
'-',
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
textSearch,
resetSearchButton,
@@ -1421,10 +1421,10 @@ Ext.onReady ( function() {
'-',
btnAll,
'->', // begin using the right-justified button container
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
'-',
- TRANSLATIONS.ID_STATUS,
+ _('ID_STATUS'),
comboStatus,
'-',
textSearch,
@@ -1439,13 +1439,13 @@ Ext.onReady ( function() {
var toolbarSearch = [
' ',
- TRANSLATIONS.ID_DELEGATE_DATE_FROM,
+ _('ID_DELEGATE_DATE_FROM'),
dateFrom,
' ',
- TRANSLATIONS.ID_TO,
+ _('ID_TO'),
dateTo,
new Ext.Button ({
- text: TRANSLATIONS.ID_FILTER_BY_DELEGATED_DATE,
+ text: _('ID_FILTER_BY_DELEGATED_DATE'),
handler: function(){
storeCases.setBaseParam('dateFrom', dateFrom.getValue());
storeCases.setBaseParam('dateTo', dateTo.getValue());
@@ -1462,13 +1462,13 @@ Ext.onReady ( function() {
items: [
optionMenuOpen,
'->',
- TRANSLATIONS.ID_PROCESS,
+ _('ID_PROCESS'),
comboProcess,
'-',
- TRANSLATIONS.ID_STATUS,
+ _('ID_STATUS'),
comboStatus,
'-',
- TRANSLATIONS.ID_USER,
+ _('ID_USER'),
comboUser,
'-',
textSearch,
@@ -1518,7 +1518,7 @@ Ext.onReady ( function() {
viewConfig: {
forceFit:true,
cls:"x-grid-empty",
- emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND)
+ emptyText: ( _('ID_NO_RECORDS_FOUND') )
},
listeners: {
rowdblclick: openCase,
@@ -1535,8 +1535,8 @@ Ext.onReady ( function() {
store: storeCases,
displayInfo: true,
//displayMsg: 'Displaying items {0} - {1} of {2} ' + ' ' ,
- displayMsg: TRANSLATIONS.ID_DISPLAY_ITEMS + ' ',
- emptyMsg: TRANSLATIONS.ID_DISPLAY_EMPTY
+ displayMsg: _('ID_DISPLAY_ITEMS') + ' ',
+ emptyMsg: _('ID_DISPLAY_EMPTY')
})
});
@@ -1799,7 +1799,7 @@ function reassign(){
else {
Ext.Msg.show({
title:'',
- msg: TRANSLATIONS.ID_NO_SELECTION_WARNING,
+ msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO,
fn: function(){},
animEl: 'elId',
diff --git a/workflow/engine/templates/dashboard/dashletInstanceForm.js b/workflow/engine/templates/dashboard/dashletInstanceForm.js
index bc638e060..00ffabee9 100644
--- a/workflow/engine/templates/dashboard/dashletInstanceForm.js
+++ b/workflow/engine/templates/dashboard/dashletInstanceForm.js
@@ -64,7 +64,7 @@ Ext.onReady(function() {
txtDasInsTitle = new Ext.form.TextField({
id: 'txtDasInsTitle',
name: 'DAS_INS_TITLE',
- fieldLabel: 'Title',
+ fieldLabel: _('ID_TITLE'),
allowBlank: false,
width: 320,
listeners: {
@@ -77,7 +77,7 @@ Ext.onReady(function() {
cboDasUID = new Ext.form.ComboBox({
id: 'cboDasUID',
name: 'DAS_UID',
- fieldLabel: 'Dashlet',
+ fieldLabel: _('ID_DASHLET'),
editable: false,
width: 320,
store: storeDasUID,
@@ -105,7 +105,7 @@ Ext.onReady(function() {
}
dashletInstanceFrm.add(new Ext.form.FieldSet({
id: 'additional',
- title: 'Other',
+ title: _('ID_OTHER'),
items: additionalFields
}));
}
@@ -133,7 +133,7 @@ Ext.onReady(function() {
cboDasInsOwnerType = new Ext.form.ComboBox({
id: 'cboDasInsOwnerType',
name: 'DAS_INS_OWNER_TYPE',
- fieldLabel: 'Assign To',
+ fieldLabel: _('ID_ASSIGN_TO'),
editable: false,
width: 320,
store: storeDasInsOwnerType,
@@ -156,7 +156,7 @@ Ext.onReady(function() {
cboDasInsOwnerUID = new Ext.form.ComboBox({
id: 'cboDasInsOwnerUID',
name: 'DAS_INS_OWNER_UID',
- fieldLabel: 'Name',
+ fieldLabel: _('ID_NAME'),
editable: false,
width: 320,
store: storeDasInsOwnerUID,
@@ -170,7 +170,7 @@ Ext.onReady(function() {
formFields = [
new Ext.form.FieldSet({
id: 'general',
- title: 'General',
+ title: _('ID_GENERAL'),
items: [hiddenDasInsUID, txtDasInsTitle, cboDasUID, cboDasInsOwnerType, cboDasInsOwnerUID]
})
];
@@ -187,7 +187,7 @@ Ext.onReady(function() {
}
formFields.push(new Ext.form.FieldSet({
id: 'additional',
- title: 'Other',
+ title: _('ID_OTHER'),
items: additionalFields
}));
}
@@ -199,13 +199,13 @@ Ext.onReady(function() {
border: true,
width: 465,
frame: true,
- title: 'Dashlet Instance Configuration',
+ title: _('ID_DASHLET_INSTANCE_CONFIGURATION'),
items: formFields,
buttonAlign: 'right',
buttons: [
new Ext.Action({
id: 'btnSubmit',
- text: 'Save',
+ text: _('ID_SAVE'),
handler: function () {
if (dashletInstanceFrm.getForm().isValid()) {
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: 'Saving. Please wait...'});
@@ -222,25 +222,25 @@ Ext.onReady(function() {
window.location.href = 'dashletsList';
break;
default:
- Ext.MessageBox.alert('Alert', 'Dashboard Instance registered failed');
+ Ext.MessageBox.alert( _('ID_ALERT'), _('ID_FAILED_DASHBOARD INSTANCE') );
break;
}
},
failure: function (result, request) {
myMask.hide();
- Ext.MessageBox.alert('Alert', 'Ajax communication failed');
+ Ext.MessageBox.alert( _('ID_ALERT'), _('ID_AJAX_COMMUNICATION_FAILED') );
}
});
}
else {
- Ext.MessageBox.alert('Invalid data', 'Please check the fields mark in red.');
+ Ext.MessageBox.alert(_('ID_INVALID_DATA'), _('ID_CHECK_FIELDS_MARK_RED'));
}
}
}),
{
xtype: 'button',
id: 'btnCancel',
- text: 'Cancel',
+ text: _('ID_CANCEL'),
handler: function () {
window.location.href = 'dashletsList';
}
diff --git a/workflow/engine/templates/dashboard/dashletsList.js b/workflow/engine/templates/dashboard/dashletsList.js
index 378ea1547..71ba652d9 100644
--- a/workflow/engine/templates/dashboard/dashletsList.js
+++ b/workflow/engine/templates/dashboard/dashletsList.js
@@ -207,10 +207,10 @@ Ext.onReady(function(){
pageSize: pageSize,
store: store,
displayInfo: true,
- //displayMsg: _('ID_GRID_PAGE_DISPLAYING_DASHLET_MESSAGE') + ' ',
- displayMsg: 'Displaying dashlets instances {0} - {1} of {2}' + ' ',
- //emptyMsg: _('ID_GRID_PAGE_NO_DASHLET_MESSAGE'),
- emptyMsg: 'No dashlets instances to display',
+ displayMsg: _('ID_GRID_PAGE_DISPLAYING_DASHLET_MESSAGE') + ' ',
+ //displayMsg: 'Displaying dashlets instances {0} - {1} of {2}' + ' ',
+ emptyMsg: _('ID_GRID_PAGE_NO_DASHLET_MESSAGE'),
+ //emptyMsg: 'No dashlets instances to display',
items: ['-',_('ID_PAGE_SIZE')+':',comboPageSize]
});
@@ -326,8 +326,8 @@ editDashletInstance = function(){
deleteDashletInstance = function(){
var rowSelected = infoGrid.getSelectionModel().getSelected();
if (rowSelected){
- //Ext.Msg.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_DELETE_DASHLET_INSTANCE'),function(btn, text)
- Ext.Msg.confirm(_('ID_CONFIRM'), 'Do you want to delete this Dashlet Instance?', function(btn, text)
+ Ext.Msg.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_DELETE_DASHLET_INSTANCE'),function(btn, text)
+ //Ext.Msg.confirm(_('ID_CONFIRM'), 'Do you want to delete this Dashlet Instance?', function(btn, text)
{
if (btn == 'yes') {
viewport.getEl().mask(_('ID_PROCESSING'));
@@ -338,12 +338,12 @@ deleteDashletInstance = function(){
viewport.getEl().unmask();
response = Ext.util.JSON.decode(r.responseText);
if (response.status == 'OK') {
- //PMExt.notify(_('ID_DASHLET_INSTANCE'),_('ID_DASHLET_SUCCESS_DELETE'));
- PMExt.notify('Dashlet Instance', 'Dashlet instance deleted sucessfully.');
+ PMExt.notify(_('ID_DASHLET_INSTANCE'),_('ID_DASHLET_SUCCESS_DELETE'));
+ //PMExt.notify('Dashlet Instance', 'Dashlet instance deleted sucessfully.');
}
else {
- //PMExt.error(_('ID_DASHLET_INSTANCE'), response.message);
- PMExt.error('Dashlet Instance', response.message);
+ PMExt.error(_('ID_DASHLET_INSTANCE'), response.message);
+ //PMExt.error('Dashlet Instance', response.message);
}
//doSearch();
editButton.disable();
diff --git a/workflow/engine/templates/outputdocs/htmlEditor.js b/workflow/engine/templates/outputdocs/htmlEditor.js
index a7c551b2b..d0d052eaa 100755
--- a/workflow/engine/templates/outputdocs/htmlEditor.js
+++ b/workflow/engine/templates/outputdocs/htmlEditor.js
@@ -112,7 +112,7 @@ Ext.onReady(function(){
{
xtype:'htmleditor',
id:'OUT_DOC_TEMPLATE',
- fieldLabel:'Output Document Template',
+ fieldLabel: _('ID_OUTPUT_DOCUMENT_TEMPLATE'),
height:300,
anchor:'98%',
listeners: {
@@ -157,7 +157,7 @@ Ext.onReady(function(){
success: function(response){
Ext.Msg.show({
title: '',
- msg: 'Saved Successfully',
+ msg: _('ID_SAVED_SUCCESSFULLY'),
fn: function(){},
animEl: 'elId',
icon: Ext.MessageBox.INFO,
@@ -172,7 +172,7 @@ Ext.onReady(function(){
});
}
},{
- text: 'Cancel',
+ text: _('ID_CANCEL'),
handler: function(){
var sInfo = navigator.userAgent.toLowerCase();
if ( sInfo.indexOf('msie') != -1 )
@@ -196,6 +196,6 @@ Ext.onReady(function(){
});
-function _(ID){
- return TRANSLATIONS[ID];
-}
+//function _(ID){
+// return TRANSLATIONS[ID];
+//}
diff --git a/workflow/engine/templates/pmTables/edit.js b/workflow/engine/templates/pmTables/edit.js
index e1ccdda65..f02a4cd0a 100755
--- a/workflow/engine/templates/pmTables/edit.js
+++ b/workflow/engine/templates/pmTables/edit.js
@@ -507,7 +507,7 @@ Ext.onReady(function(){
comboDbConnections.setDisabled(true);
} else {
// DB COnnection deleted
- Ext.Msg.alert( _('ID_ERROR'), 'DB Connection doesn\'t exist!');
+ Ext.Msg.alert( _('ID_ERROR'), _('ID_DB_CONNECTION_NOT_EXIST') );
}
} else {
comboDbConnections.setValue('rp');
diff --git a/workflow/engine/templates/pmTables/editReport.js b/workflow/engine/templates/pmTables/editReport.js
index 1dc27f4ce..6056c7946 100755
--- a/workflow/engine/templates/pmTables/editReport.js
+++ b/workflow/engine/templates/pmTables/editReport.js
@@ -401,7 +401,7 @@ Ext.onReady(function(){
//table columns grid
assignedGrid = new Ext.grid.GridPanel({
- title: 'New Report Table',
+ title : _('ID_NEW_REPORT_TABLE'),
region : 'center',
id : 'assignedGrid',
ddGroup : 'availableGridDDGroup',
@@ -461,7 +461,7 @@ Ext.onReady(function(){
}
},
_setTitle: function() {
- this.setTitle('Report Table: ' + Ext.getCmp('REP_TAB_NAME').getValue() + ' ('+store.getCount()+' columns)');
+ this.setTitle(_('ID_REPORT_TABLE') + ': ' + Ext.getCmp('REP_TAB_NAME').getValue() + ' ('+store.getCount()+' ' + _('ID_COLUMNS') + ')');
}
});
@@ -604,7 +604,7 @@ Ext.onReady(function(){
}
else {
// DB COnnection deleted
- Ext.Msg.alert( _('ID_ERROR'), 'DB Connection doesn\'t exist!');
+ Ext.Msg.alert( _('ID_ERROR'), _('ID_DB_CONNECTION_NOT_EXIST') );
}
}
}
@@ -658,7 +658,7 @@ Ext.onReady(function(){
}
});
} else {
- Ext.Msg.alert( _('ID_ERROR'), 'Grid doesn\'t exist!');
+ Ext.Msg.alert( _('ID_ERROR'), _('ID_GRID_NO_EXIST') );
}
}
}
@@ -719,7 +719,7 @@ Ext.onReady(function(){
processComboBox.setDisabled(true);
} else {
// Process deleted
- Ext.Msg.alert( _('ID_ERROR'), 'Process doesn\'t exist!');
+ Ext.Msg.alert( _('ID_ERROR'), _('ID_PROCESS_NO_EXIST') );
}
// setting table attributes for current editing process
Ext.getCmp('REP_TAB_NAME').setValue(TABLE.ADD_TAB_NAME);
@@ -902,7 +902,7 @@ function createReportTable()
//validate table name
if(Ext.getCmp('REP_TAB_NAME').getValue().trim() == '') {
Ext.getCmp('REP_TAB_NAME').focus();
- PMExt.error(_('ID_ERROR'), 'Table Name is required.', function(){
+ PMExt.error(_('ID_ERROR'), _('ID_TABLE_NAME_IS_REQUIRED'), function(){
Ext.getCmp('REP_TAB_NAME').focus();
});
return false;
@@ -1076,7 +1076,7 @@ AssignAllFieldsAction = function(){
RemoveAllFieldsAction = function(){
if (store.getCount() > 100) {
- PMExt.info('Notice', 'This action was disabled to prevent low performance on your browser. This is because there is more than 100 records on the columns definition grid.
Please perform this action with manual selection only.');
+ PMExt.info(_('ID_NOTICE'), _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_1') + _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_2') );
return ;
}
@@ -1397,7 +1397,7 @@ function verifyTableLimit()
{
if( store.getCount() >= 255 ) {
mainMask.hide();
- PMExt.info('Notice', 'The maximun limit of columns for a database table is 255, you already have them defined!');
+ PMExt.info(_('ID_NOTICE'), _('ID_MAX_LIMIT_COLUMNS_FOR_DATABASE') );
assignedGrid._setTitle();
return false;
}
diff --git a/workflow/engine/templates/pmTables/export.js b/workflow/engine/templates/pmTables/export.js
index 342726038..35811ab92 100755
--- a/workflow/engine/templates/pmTables/export.js
+++ b/workflow/engine/templates/pmTables/export.js
@@ -117,10 +117,10 @@ Export.configure = function()
}
this.windowConfig.buttons = [{
- text: 'Export',
+ text: _('ID_EXPORT'),
handler: Export.submit
},{
- text: 'Cancel',
+ text: _('ID_CANCEL'),
handler: function(){
Export.window.hide();
}
diff --git a/workflow/engine/templates/processes/main.js b/workflow/engine/templates/processes/main.js
index 5522ad67f..953e7ebbe 100755
--- a/workflow/engine/templates/processes/main.js
+++ b/workflow/engine/templates/processes/main.js
@@ -58,7 +58,7 @@ Ext.onReady(function(){
var expander = new Ext.ux.grid.RowExpander({
tpl : new Ext.Template(
- '
'+TRANSLATIONS.ID_PRO_DESCRIPTION+': {PRO_DESCRIPTION}
' + _('ID_PRO_DESCRIPTION') + ': {PRO_DESCRIPTION}