BUG 8671 PM. 2.0 -Testing.13: Error de traducción

- Al asignar un nuevo usuario a una tarea, la ventana posee labels en ingles.
- Adjustments several in the hardcoded in ExtJS labels.
This commit is contained in:
Hector Cortez
2012-04-23 10:23:09 -04:00
parent 374bb0d051
commit b623e8577b
23 changed files with 251 additions and 259 deletions

View File

@@ -35,7 +35,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$contextTime = new stdclass(); $contextTime = new stdclass();
$contextTime->xtype = 'combo'; $contextTime->xtype = 'combo';
$contextTime->name = 'DAS_INS_CONTEXT_TIME'; $contextTime->name = 'DAS_INS_CONTEXT_TIME';
$contextTime->fieldLabel = 'Period'; $contextTime->fieldLabel = G::LoadTranslation('ID_PERIOD');
$contextTime->editable = false; $contextTime->editable = false;
$contextTime->width = 320; $contextTime->width = 320;
$contextTime->store = $contextTimeStore; $contextTime->store = $contextTimeStore;
@@ -49,7 +49,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$redFrom = new stdclass(); $redFrom = new stdclass();
$redFrom->xtype = 'numberfield'; $redFrom->xtype = 'numberfield';
$redFrom->name = 'DAS_RED_FROM'; $redFrom->name = 'DAS_RED_FROM';
$redFrom->fieldLabel = 'Red Starts In'; $redFrom->fieldLabel = G::LoadTranslation('ID_RED_STARTS_IN');
$redFrom->width = 50; $redFrom->width = 50;
$redFrom->maxLength = 3; $redFrom->maxLength = 3;
$redFrom->maxValue = 100; $redFrom->maxValue = 100;
@@ -61,7 +61,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$redTo = new stdclass(); $redTo = new stdclass();
$redTo->xtype = 'numberfield'; $redTo->xtype = 'numberfield';
$redTo->name = 'DAS_RED_TO'; $redTo->name = 'DAS_RED_TO';
$redTo->fieldLabel = 'Red Ends In'; $redTo->fieldLabel = G::LoadTranslation('ID_RED_ENDS_IN');
$redTo->width = 50; $redTo->width = 50;
$redTo->maxLength = 3; $redTo->maxLength = 3;
$redTo->maxValue = 100; $redTo->maxValue = 100;
@@ -73,7 +73,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$yellowFrom = new stdclass(); $yellowFrom = new stdclass();
$yellowFrom->xtype = 'numberfield'; $yellowFrom->xtype = 'numberfield';
$yellowFrom->name = 'DAS_YELLOW_FROM'; $yellowFrom->name = 'DAS_YELLOW_FROM';
$yellowFrom->fieldLabel = 'Yellow Starts In'; $yellowFrom->fieldLabel = G::LoadTranslation('ID_YELLOW_STARTS_IN');
$yellowFrom->width = 50; $yellowFrom->width = 50;
$yellowFrom->maxLength = 3; $yellowFrom->maxLength = 3;
$yellowFrom->maxValue = 100; $yellowFrom->maxValue = 100;
@@ -85,7 +85,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$yellowTo = new stdclass(); $yellowTo = new stdclass();
$yellowTo->xtype = 'numberfield'; $yellowTo->xtype = 'numberfield';
$yellowTo->name = 'DAS_YELLOW_TO'; $yellowTo->name = 'DAS_YELLOW_TO';
$yellowTo->fieldLabel = 'Yellow Ends In'; $yellowTo->fieldLabel = G::LoadTranslation('ID_YELLOW_ENDS_IN');
$yellowTo->width = 50; $yellowTo->width = 50;
$yellowTo->maxLength = 3; $yellowTo->maxLength = 3;
$yellowTo->maxValue = 100; $yellowTo->maxValue = 100;
@@ -97,7 +97,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$greenFrom = new stdclass(); $greenFrom = new stdclass();
$greenFrom->xtype = 'numberfield'; $greenFrom->xtype = 'numberfield';
$greenFrom->name = 'DAS_GREEN_FROM'; $greenFrom->name = 'DAS_GREEN_FROM';
$greenFrom->fieldLabel = 'Green Starts In'; $greenFrom->fieldLabel = G::LoadTranslation('ID_GREEN_STARTS_IN');
$greenFrom->width = 50; $greenFrom->width = 50;
$greenFrom->maxLength = 3; $greenFrom->maxLength = 3;
$greenFrom->maxValue = 100; $greenFrom->maxValue = 100;
@@ -109,7 +109,7 @@ class dashletOpenVSCompleted implements DashletInterface {
$greenTo = new stdclass(); $greenTo = new stdclass();
$greenTo->xtype = 'numberfield'; $greenTo->xtype = 'numberfield';
$greenTo->name = 'DAS_GREEN_TO'; $greenTo->name = 'DAS_GREEN_TO';
$greenTo->fieldLabel = 'Green Ends In'; $greenTo->fieldLabel = G::LoadTranslation('ID_GREEN_ENDS_IN');
$greenTo->width = 50; $greenTo->width = 50;
$greenTo->maxLength = 3; $greenTo->maxLength = 3;
$greenTo->maxValue = 100; $greenTo->maxValue = 100;

View File

@@ -71,7 +71,7 @@ try {
'ID_FILE', 'ID_OUT_PUT_DOC_UPLOAD_TITLE', 'ID_UPLOADING_FILE', 'ID_UPLOAD', 'ID_CANCEL', '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' '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 $oHeadPublisher->addExtJsScript('outputdocs/htmlEditor', false ); //adding a javascript file .js
G::RenderPage('publish', 'extJs'); G::RenderPage('publish', 'extJs');
die; die;

View File

@@ -29,7 +29,7 @@
'ID_CACHE_TITLE_INFO', 'ID_CACHE_SUBTITLE_REBUILD', 'ID_CACHE_BTN_BUILD', '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' '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'); // $TRANSLATIONS->ID_PROCESSING = G::LoadTranslation('ID_PROCESSING');
// $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations // $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
$oHeadPublisher->assign( 'currentLang', $lang); //current language $oHeadPublisher->assign( 'currentLang', $lang); //current language

View File

@@ -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' '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'); G::RenderPage('publish', 'extJs');

View File

@@ -1098,7 +1098,7 @@ Ext.onReady( function() {
} }
} }
else { 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'));
} }
} }
}, },

View File

@@ -263,7 +263,7 @@ Ext.onReady(function(){
cmodelGroups = new Ext.grid.ColumnModel({ cmodelGroups = new Ext.grid.ColumnModel({
viewConfig: { viewConfig: {
cls:"x-grid-empty", cls:"x-grid-empty",
emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND) emptyText: _('ID_NO_RECORDS_FOUND')
} }
, ,
columns: [ columns: [
@@ -427,8 +427,8 @@ full_name = function(v,x,s){
render_status = function(v){ render_status = function(v){
switch(v){ switch(v){
case 'ACTIVE': return '<font color="green">' + _('ID_ACTIVE') + '</font>'; break; case 'ACTIVE': return '<font color="green">' + _('ID_ACTIVE') + '</font>'; break;
case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>';; break; case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>'; break;
case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>';; break; case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>'; break;
} }
}; };

View File

@@ -149,7 +149,7 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle)
], ],
tbar:[ tbar:[
new Ext.form.TextArea({ new Ext.form.TextArea({
text : 'New Note', text : _('ID_NEW_NOTE'),
xtype : 'textarea', xtype : 'textarea',
id : 'caseNoteText', id : 'caseNoteText',
name : 'caseNoteText', name : 'caseNoteText',
@@ -182,14 +182,14 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle)
}, ' ', }, ' ',
{ {
id: 'addCancelBtn', id: 'addCancelBtn',
text: 'Cancel', text: _('ID_CANCEL'),
cls: 'x-toolbar1', cls: 'x-toolbar1',
//iconCls: 'xx', //iconCls: 'xx',
icon: '/images/add_notes.png', icon: '/images/add_notes.png',
handler: newNoteHandler, handler: newNoteHandler,
tooltip: { tooltip: {
title: 'Add new note', title: _('ID_CASES_NOTES_ADD'),
text: 'Case: ' + title text: _('ID_CASE') + ': ' + title
} }
} }
] ]

View File

@@ -269,7 +269,7 @@ Ext.onReady(function(){
}); });
//here we are setting the fields //here we are setting the fields
fieldsAS = new Ext.form.FieldSet({ fieldsAS = new Ext.form.FieldSet({
title: 'Authentication Source Information', title: _('ID_AUTHENTICATION_SOURCE_INF_TITLE'),
items: [ items: [
txtSourceId, txtSourceId,
txtName, txtName,
@@ -311,11 +311,11 @@ Ext.onReady(function(){
], ],
buttons: [ buttons: [
{ {
text: 'Save', text: _('ID_SAVE'),
handler: saveAuthSources handler: saveAuthSources
}, },
{ {
text: 'Cancel', text: _('ID_CANCEL'),
handler: goback handler: goback
} }
] ]

View File

@@ -23,7 +23,7 @@ var my_values = [
['krlos'] ['krlos']
]; ];
var cboxAuthSourse = new Ext.form.ComboBox({ var cboxAuthSourse = new Ext.form.ComboBox({
fieldLabel: 'Provider', fieldLabel: _('ID_PROVIDER'),
hiddenName: 'AUTH_SOURCE_PROVIDER', hiddenName: 'AUTH_SOURCE_PROVIDER',
mode: 'local', mode: 'local',
triggerAction: 'all', triggerAction: 'all',
@@ -42,7 +42,7 @@ var cboxAuthSourse = new Ext.form.ComboBox({
}); });
componAuthSourse = new Ext.form.FieldSet({ componAuthSourse = new Ext.form.FieldSet({
title: 'Available Authentication Sources', title: _('ID_AVAILABLE_AUTHENTICATION_SOURCES'),
items: [ items: [
cboxAuthSourse cboxAuthSourse
] ]
@@ -70,11 +70,11 @@ var cboxAuthSourse = new Ext.form.ComboBox({
], ],
buttons: [ buttons: [
{ {
text: 'Continue', text: _('ID_CONTINUE'),
handler: gotypesAuthSources handler: gotypesAuthSources
}, },
{ {
text: 'Cancel', text: _('ID_CANCEL'),
handler: goBackform handler: goBackform
} }
] ]

View File

@@ -287,7 +287,7 @@ Ext.onReady(function(){
}); });
//here we are setting the fields //here we are setting the fields
fieldsAS = new Ext.form.FieldSet({ fieldsAS = new Ext.form.FieldSet({
title: 'Authentication Source Information', title: _('ID_AUTHENTICATION_SOURCE_INFORMATION'),
items: [ items: [
txtSourceId, txtSourceId,
txtSourceProvider, txtSourceProvider,
@@ -331,12 +331,12 @@ Ext.onReady(function(){
], ],
buttons: [ buttons: [
{ {
text: 'Save', text: _('ID_SAVE'),
handler: TestSite handler: TestSite
}, },
{ {
text: 'Cancel', text: _('ID_CANCEL'),
handler: goback handler: goback
} }
] ]
@@ -383,10 +383,10 @@ Ext.onReady(function(){
}, },
failure: function(f,a){ failure: function(f,a){
if (a.failureType === Ext.form.Action.CONNECT_FAILURE){ 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){ 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') );
} }
} }
}); });

View File

@@ -12,7 +12,7 @@ new Ext.KeyMap(document, {
storeCases.reload(); storeCases.reload();
} }
else 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); openSummaryWindow(rowModel.data.APP_UID, rowModel.data.DEL_INDEX);
} }
else { 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; var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
openCaseNotesWindow(appUid,true); openCaseNotesWindow(appUid,true);
}else{ }else{
msgBox('Information', TRANSLATIONS.ID_SELECT_ONE_AT_LEAST); msgBox(_('ID_INFORMATION'), _('ID_SELECT_ONE_AT_LEAST') );
} }
} }
function openCase(){ function openCase(){
@@ -52,7 +52,7 @@ function openCase(){
var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID; var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
Ext.Msg.show({ Ext.Msg.show({
msg: TRANSLATIONS.ID_OPEN_CASE + ' ' + caseTitle, msg: _('ID_OPEN_CASE') + ' ' + caseTitle,
width:300, width:300,
wait:true, wait:true,
waitConfig: {interval:200} waitConfig: {interval:200}
@@ -97,7 +97,7 @@ function openCase(){
redirect(requestFile + '?' + params); redirect(requestFile + '?' + params);
} else } else
msgBox('Information', TRANSLATIONS.ID_SELECT_ONE_AT_LEAST); msgBox(_('ID_INFORMATION'), _('ID_SELECT_ONE_AT_LEAST'));
} }
function jumpToCase(appNumber){ function jumpToCase(appNumber){
@@ -117,11 +117,11 @@ function deleteCase() {
APP_UIDS = ids.join(','); APP_UIDS = ids.join(',');
Ext.Msg.confirm( Ext.Msg.confirm(
TRANSLATIONS.ID_CONFIRM, _('ID_CONFIRM'),
rows.length == 1? TRANSLATIONS.ID_MSG_CONFIRM_DELETE_CASE: TRANSLATIONS.ID_MSG_CONFIRM_DELETE_CASES, (rows.length == 1) ? _('ID_MSG_CONFIRM_DELETE_CASE') : _('ID_MSG_CONFIRM_DELETE_CASES'),
function(btn, text){ function(btn, text){
if ( btn == 'yes' ) { 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({ Ext.Ajax.request({
url: 'cases_Delete', url: 'cases_Delete',
success: function(response) { success: function(response) {
@@ -147,7 +147,7 @@ function deleteCase() {
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -162,11 +162,11 @@ function pauseCase(date){
unpauseDate = date.format('Y-m-d'); unpauseDate = date.format('Y-m-d');
Ext.Msg.confirm( Ext.Msg.confirm(
TRANSLATIONS.ID_CONFIRM, _('ID_CONFIRM'),
TRANSLATIONS.ID_PAUSE_CASE_TO_DATE +' '+date.format('M j, Y')+'?', _('ID_PAUSE_CASE_TO_DATE') +' '+date.format('M j, Y')+'?',
function(btn, text){ function(btn, text){
if ( btn == 'yes' ) { 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({ Ext.Ajax.request({
url: 'cases_Ajax', url: 'cases_Ajax',
success: function(response) { success: function(response) {
@@ -208,11 +208,11 @@ function cancelCase(){
DEL_INDEXES = del_index.join(','); DEL_INDEXES = del_index.join(',');
Ext.Msg.confirm( Ext.Msg.confirm(
TRANSLATIONS.ID_CONFIRM, _('ID_CONFIRM'),
rows.length == 1? TRANSLATIONS.ID_MSG_CONFIRM_CANCEL_CASE: TRANSLATIONS.ID_MSG_CONFIRM_CANCEL_CASES, (rows.length == 1) ? _('ID_MSG_CONFIRM_CANCEL_CASE') : _('ID_MSG_CONFIRM_CANCEL_CASES'),
function(btn, text){ function(btn, text){
if ( btn == 'yes' ) { 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({ Ext.Ajax.request({
url: 'cases_Ajax', url: 'cases_Ajax',
success: function(response) { success: function(response) {
@@ -238,7 +238,7 @@ function cancelCase(){
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -250,7 +250,7 @@ function cancelCase(){
function callbackUnpauseCase (btn, text) { function callbackUnpauseCase (btn, text) {
if ( btn == 'yes' ) { 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({ Ext.Ajax.request({
url: 'cases_Ajax', url: 'cases_Ajax',
success: function(response) { success: function(response) {
@@ -278,9 +278,9 @@ function unpauseCase() {
caseIdToUnpause = rowModel.data.APP_UID; caseIdToUnpause = rowModel.data.APP_UID;
caseIndexToUnpause = rowModel.data.DEL_INDEX; 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' ) { 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({ Ext.Ajax.request({
url: 'cases_Ajax', url: 'cases_Ajax',
success: function(response) { success: function(response) {
@@ -340,19 +340,19 @@ Ext.onReady ( function() {
}; };
function openLink(value, p, r){ function openLink(value, p, r){
return String.format("<a class='button_pm' href='../cases/cases_Open?APP_UID={0}&DEL_INDEX={1}&content=inner'>" + TRANSLATIONS.ID_VIEW + "</a>", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']); return String.format("<a class='button_pm' href='../cases/cases_Open?APP_UID={0}&DEL_INDEX={1}&content=inner'>" + _('ID_VIEW') + "</a>", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']);
} }
function deleteLink(value, p, r){ function deleteLink(value, p, r){
return String.format("<a class='button_pm ss_sprite ss_bullet_red' href='#' onclick='deleteCase(\"{0}\")'>" + TRANSLATIONS.ID_DELETE + "</a>", r.data['APP_UID'] ); return String.format("<a class='button_pm ss_sprite ss_bullet_red' href='#' onclick='deleteCase(\"{0}\")'>" + _('ID_DELETE') + "</a>", r.data['APP_UID'] );
} }
function viewLink(value, p, r){ function viewLink(value, p, r){
return String.format("<a href='../cases/cases_Open?APP_UID={0}&DEL_INDEX={1}&content=inner'>" + TRANSLATIONS.ID_VIEW + "</a>", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']); return String.format("<a href='../cases/cases_Open?APP_UID={0}&DEL_INDEX={1}&content=inner'>" + _('ID_VIEW') + "</a>", r.data['APP_UID'], r.data['DEL_INDEX'], r.data['APP_TITLE']);
} }
function unpauseLink(value, p, r){ function unpauseLink(value, p, r){
return String.format("<a href='#' onclick='unpauseCaseFunction(\"{0}\",\"{1}\")'>" + TRANSLATIONS.ID_UNPAUSE + "</a>", r.data['APP_UID'], r.data['DEL_INDEX'] ); return String.format("<a href='#' onclick='unpauseCaseFunction(\"{0}\",\"{1}\")'>" + _('ID_UNPAUSE') + "</a>", r.data['APP_UID'], r.data['DEL_INDEX'] );
} }
function convertDate ( value ) { function convertDate ( value ) {
@@ -438,7 +438,7 @@ Ext.onReady ( function() {
var newPopUp = new Ext.Window({ var newPopUp = new Ext.Window({
id : Ext.id(), id : Ext.id(),
el : 'reassign-panel', el : 'reassign-panel',
title : 'Reassign All Cases by Task', title : _('ID_REASSIGN_ALL_CASES_BY_TASK'),
width : 750, width : 750,
height : 350, height : 350,
frame : true, frame : true,
@@ -446,7 +446,7 @@ Ext.onReady ( function() {
}); });
var btnCloseReassign = new Ext.Button ({ var btnCloseReassign = new Ext.Button ({
text: TRANSLATIONS.ID_CLOSE, text: _('ID_CLOSE'),
// text: TRANSLATIONS.LABEL_SELECT_ALL, // text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){ handler: function(){
newPopUp.hide(); newPopUp.hide();
@@ -454,7 +454,7 @@ Ext.onReady ( function() {
}); });
var btnExecReassign = new Ext.Button ({ var btnExecReassign = new Ext.Button ({
text: TRANSLATIONS.ID_REASSIGN_ALL, text: _('ID_REASSIGN_ALL'),
// text: 'Reassign All', // text: 'Reassign All',
// text: TRANSLATIONS.LABEL_SELECT_ALL, // text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){ handler: function(){
@@ -487,7 +487,7 @@ Ext.onReady ( function() {
}); });
var btnExecReassignSelected = new Ext.Button ({ var btnExecReassignSelected = new Ext.Button ({
text: TRANSLATIONS.ID_REASSIGN, text: _('ID_REASSIGN'),
// text: 'Reassign', // text: 'Reassign',
// text: TRANSLATIONS.LABEL_SELECT_ALL, // text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){ handler: function(){
@@ -499,7 +499,7 @@ Ext.onReady ( function() {
sv[i]= rs[i].data; sv[i]= rs[i].data;
} }
var gridData = storeReassignCases.getModifiedRecords(); 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({ Ext.Ajax.request({
url: 'proxySaveReassignCasesList', url: 'proxySaveReassignCasesList',
success: function(response) { success: function(response) {
@@ -511,18 +511,18 @@ Ext.onReady ( function() {
for (count in ajaxServerResponse) { for (count in ajaxServerResponse) {
if ( ajaxServerResponse[count]['TAS_TITLE'] != undefined ){ if ( ajaxServerResponse[count]['TAS_TITLE'] != undefined ){
message = message + "Case: " + ajaxServerResponse[count]['APP_TITLE'] + " - Reassigned to: " + ajaxServerResponse[count]['APP_REASSIGN_USER'] + "<br>" ; message = message + _('ID_CASE') + ": " + ajaxServerResponse[count]['APP_TITLE'] + " - " + _('ID_REASSIGNED_TO') + ": " + ajaxServerResponse[count]['APP_REASSIGN_USER'] + "<br>" ;
}; };
} }
if (ajaxServerResponse['TOTAL']!=undefined&&ajaxServerResponse['TOTAL']!=-1){ if (ajaxServerResponse['TOTAL']!=undefined&&ajaxServerResponse['TOTAL']!=-1){
message = message + "<br> Total Cases Reassigned: " + ajaxServerResponse['TOTAL']; message = message + "<br> " + _('ID_TOTAL_CASES_REASSIGNED') + ": " + ajaxServerResponse['TOTAL'];
} else { } else {
message = ""; message = "";
}; };
if (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 } params: { APP_UIDS:ids, data:Ext.util.JSON.encode(sv), selected:true }
@@ -632,7 +632,7 @@ Ext.onReady ( function() {
// creating the button for filters // creating the button for filters
var btnRead = new Ext.Button ({ var btnRead = new Ext.Button ({
id: 'read', id: 'read',
text: TRANSLATIONS.ID_OPT_READ, text: _('ID_OPT_READ'),
enableToggle: true, enableToggle: true,
toggleHandler: onItemToggle, toggleHandler: onItemToggle,
allowDepress: false, allowDepress: false,
@@ -641,7 +641,7 @@ Ext.onReady ( function() {
var btnUnread = new Ext.Button ({ var btnUnread = new Ext.Button ({
id: 'unread', id: 'unread',
text: TRANSLATIONS.ID_OPT_UNREAD, text: _('ID_OPT_UNREAD'),
enableToggle: true, enableToggle: true,
toggleHandler: onItemToggle, toggleHandler: onItemToggle,
allowDepress: false, allowDepress: false,
@@ -650,7 +650,7 @@ Ext.onReady ( function() {
var btnAll = new Ext.Button ({ var btnAll = new Ext.Button ({
id: 'all', id: 'all',
text: TRANSLATIONS.ID_OPT_ALL, text: _('ID_OPT_ALL'),
enableToggle: true, enableToggle: true,
toggleHandler: onItemToggle, toggleHandler: onItemToggle,
allowDepress: false, allowDepress: false,
@@ -660,7 +660,7 @@ Ext.onReady ( function() {
var btnStarted = new Ext.Button ({ var btnStarted = new Ext.Button ({
id: 'started', id: 'started',
// text: 'started by me', // text: 'started by me',
text: TRANSLATIONS.ID_OPT_STARTED, text: _('ID_OPT_STARTED'),
enableToggle: true, enableToggle: true,
toggleHandler: onItemToggle, toggleHandler: onItemToggle,
allowDepress: true, allowDepress: true,
@@ -670,7 +670,7 @@ Ext.onReady ( function() {
var btnCompleted = new Ext.Button ({ var btnCompleted = new Ext.Button ({
id: 'completed', id: 'completed',
// text: 'Completed by me', // text: 'Completed by me',
text: TRANSLATIONS.ID_OPT_COMPLETED, text: _('ID_OPT_COMPLETED'),
enableToggle: true, enableToggle: true,
toggleHandler: onItemToggle, toggleHandler: onItemToggle,
allowDepress: true, allowDepress: true,
@@ -691,7 +691,7 @@ Ext.onReady ( function() {
displayField : 'APP_PRO_TITLE', displayField : 'APP_PRO_TITLE',
valueField : 'PRO_UID', valueField : 'PRO_UID',
forceSelection: false, forceSelection: false,
emptyText: TRANSLATIONS.ID_EMPTY_PROCESSES, emptyText: _('ID_EMPTY_PROCESSES'),
selectOnFocus: true, selectOnFocus: true,
tpl: resultTpl, tpl: resultTpl,
@@ -729,7 +729,7 @@ Ext.onReady ( function() {
forceSelection: true, forceSelection: true,
triggerAction: 'all', triggerAction: 'all',
emptyText: TRANSLATIONS.ID_EMPTY_USERS, emptyText: _('ID_EMPTY_USERS'),
selectOnFocus: true, selectOnFocus: true,
//getListParent: function() { //getListParent: function() {
// return this.el.up('.x-menu'); // return this.el.up('.x-menu');
@@ -760,7 +760,7 @@ Ext.onReady ( function() {
}); });
var btnSelectAll = new Ext.Button ({ var btnSelectAll = new Ext.Button ({
text: TRANSLATIONS.CHECK_ALL, text: _('CHECK_ALL'),
// text: 'Check All', // text: 'Check All',
// text: TRANSLATIONS.LABEL_SELECT_ALL, // text: TRANSLATIONS.LABEL_SELECT_ALL,
handler: function(){ handler: function(){
@@ -769,7 +769,7 @@ Ext.onReady ( function() {
}); });
var btnUnSelectAll = new Ext.Button ({ var btnUnSelectAll = new Ext.Button ({
text: TRANSLATIONS.UNCHECK_ALL, text: _('UNCHECK_ALL'),
// text: 'Un-Check All', // text: 'Un-Check All',
// text: TRANSLATIONS.LABEL_UNSELECT_ALL, // text: TRANSLATIONS.LABEL_UNSELECT_ALL,
handler: function(){ handler: function(){
@@ -778,7 +778,7 @@ Ext.onReady ( function() {
}); });
var btnReassign = new Ext.Button ({ var btnReassign = new Ext.Button ({
text: TRANSLATIONS.ID_REASSIGN, text: _('ID_REASSIGN'),
// text: 'Reassign', // text: 'Reassign',
// text: TRANSLATIONS.LABEL_UNSELECT_ALL, // text: TRANSLATIONS.LABEL_UNSELECT_ALL,
handler: function(){ handler: function(){
@@ -794,7 +794,7 @@ Ext.onReady ( function() {
collapsible:true, collapsible:true,
defaultType:'textfield', defaultType:'textfield',
items:[{ items:[{
fieldLabel:'Reassign To', fieldLabel: _('ID_REASSIGN_TO'),
name:'txt_stock_in', name:'txt_stock_in',
allowBlank:true allowBlank:true
}] }]
@@ -811,7 +811,7 @@ Ext.onReady ( function() {
plain:true, plain:true,
items:[nav], items:[nav],
buttons:[{ buttons:[{
text: TRANSLATIONS.ID_SUBMIT, text: _('ID_SUBMIT'),
handler:function(){ handler:function(){
Ext.Msg.alert('OK','save ?'); Ext.Msg.alert('OK','save ?');
Ext.Msg.prompt('Name','please enter your name: ',function(btn,text){ 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() { handler:function() {
reassignPopup.hide(); reassignPopup.hide();
} }
@@ -869,7 +869,7 @@ Ext.onReady ( function() {
valueField : 'USR_UID', valueField : 'USR_UID',
mode : 'local', mode : 'local',
forceSelection: false, forceSelection: false,
emptyText: TRANSLATIONS.ID_SELECT, emptyText: _('ID_SELECT'),
selectOnFocus: true, selectOnFocus: true,
typeAhead: true, typeAhead: true,
@@ -898,7 +898,7 @@ Ext.onReady ( function() {
allowBlank: true, allowBlank: true,
ctCls:'pm_search_text_field', ctCls:'pm_search_text_field',
width: 150, width: 150,
emptyText: TRANSLATIONS.ID_EMPTY_SEARCH, emptyText: _('ID_EMPTY_SEARCH'),
listeners: { listeners: {
specialkey: function(f,e){ specialkey: function(f,e){
if (e.getKey() == e.ENTER) { if (e.getKey() == e.ENTER) {
@@ -909,7 +909,7 @@ Ext.onReady ( function() {
}); });
var btnSearch = new Ext.Button ({ var btnSearch = new Ext.Button ({
text: TRANSLATIONS.ID_SEARCH, text: _('ID_SEARCH'),
handler: doSearch handler: doSearch
}); });
@@ -933,7 +933,7 @@ Ext.onReady ( function() {
id : 'textJump', id : 'textJump',
allowBlank: true, allowBlank: true,
width: 50, width: 50,
emptyText: TRANSLATIONS.ID_CASESLIST_APP_UID, emptyText: _('ID_CASESLIST_APP_UID'),
listeners: { listeners: {
specialkey: function(f,e){ specialkey: function(f,e){
if (e.getKey() == e.ENTER) { if (e.getKey() == e.ENTER) {
@@ -942,20 +942,20 @@ Ext.onReady ( function() {
if( caseNumber ) if( caseNumber )
jumpToCase(caseNumber); jumpToCase(caseNumber);
else 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 ({ var btnJump = new Ext.Button ({
text: TRANSLATIONS.ID_OPT_JUMP, text: _('ID_OPT_JUMP'),
handler: function(){ handler: function(){
var caseNumber = parseFloat(Ext.util.Format.trim(Ext.getCmp('textJump').getValue())); var caseNumber = parseFloat(Ext.util.Format.trim(Ext.getCmp('textJump').getValue()));
if (caseNumber){ if (caseNumber){
jumpToCase(caseNumber); jumpToCase(caseNumber);
} else { } 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({ optionMenuUnpause = new Ext.Action({
text: TRANSLATIONS.ID_UNPAUSE_CASE, text: _('ID_UNPAUSE_CASE'),
iconCls: 'ICON_CASES_UNPAUSE', iconCls: 'ICON_CASES_UNPAUSE',
handler: unpauseCase handler: unpauseCase
}); });
optionMenuPause = new Ext.Action({ optionMenuPause = new Ext.Action({
text: TRANSLATIONS.ID_PAUSE_CASE, text: _('ID_PAUSE_CASE'),
iconCls: 'ICON_CASES_PAUSED', iconCls: 'ICON_CASES_PAUSED',
menu: new Ext.menu.DateMenu({ menu: new Ext.menu.DateMenu({
//vtype: 'daterange', //vtype: 'daterange',
@@ -1082,7 +1082,7 @@ Ext.onReady ( function() {
} }
}, },
failure: function ( result, request) { 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 = ""; optionMenuReassignGlobal.DEL_INDEX = "";
optionMenuReassign = new Ext.Action({ optionMenuReassign = new Ext.Action({
text: TRANSLATIONS.ID_REASSIGN, text: _('ID_REASSIGN'),
iconCls: 'ICON_CASES_TO_REASSIGN', iconCls: 'ICON_CASES_TO_REASSIGN',
handler: function() { handler: function() {
@@ -1222,12 +1222,12 @@ Ext.onReady ( function() {
} }
}); });
optionMenuDelete = new Ext.Action({ optionMenuDelete = new Ext.Action({
text: TRANSLATIONS.ID_DELETE, text: _('ID_DELETE'),
iconCls: 'ICON_CASES_DELETE', iconCls: 'ICON_CASES_DELETE',
handler: deleteCase handler: deleteCase
}); });
optionMenuCancel = new Ext.Action({ optionMenuCancel = new Ext.Action({
text: TRANSLATIONS.ID_CANCEL, text: _('ID_CANCEL'),
iconCls: 'ICON_CASES_CANCEL', iconCls: 'ICON_CASES_CANCEL',
handler: cancelCase handler: cancelCase
}); });
@@ -1288,7 +1288,7 @@ Ext.onReady ( function() {
optionMenuOpen, optionMenuOpen,
{ {
xtype: 'tbsplit', xtype: 'tbsplit',
text: TRANSLATIONS.ID_ACTIONS, text: _('ID_ACTIONS'),
menu: menuItems menu: menuItems
}, },
@@ -1299,7 +1299,7 @@ Ext.onReady ( function() {
'-', '-',
btnAll, btnAll,
'->', // begin using the right-justified button container '->', // begin using the right-justified button container
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
'-', '-',
textSearch, textSearch,
@@ -1320,7 +1320,7 @@ Ext.onReady ( function() {
'-', '-',
btnAll, btnAll,
'->', // begin using the right-justified button container '->', // begin using the right-justified button container
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
'-', '-',
textSearch, textSearch,
@@ -1341,7 +1341,7 @@ Ext.onReady ( function() {
'-', '-',
btnAll, btnAll,
'->', // begin using the right-justified button container '->', // begin using the right-justified button container
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
'-', '-',
textSearch, textSearch,
@@ -1360,11 +1360,11 @@ Ext.onReady ( function() {
optionMenuOpen, optionMenuOpen,
{ {
xtype: 'tbsplit', xtype: 'tbsplit',
text: TRANSLATIONS.ID_ACTIONS, text: _('ID_ACTIONS'),
menu: menuItems menu: menuItems
}, },
'->', '->',
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
'-', '-',
textSearch, textSearch,
@@ -1380,7 +1380,7 @@ Ext.onReady ( function() {
var toolbarToRevise = [ var toolbarToRevise = [
optionMenuOpen, optionMenuOpen,
'->', // begin using the right-justified button container '->', // begin using the right-justified button container
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
'-', '-',
textSearch, textSearch,
@@ -1404,7 +1404,7 @@ Ext.onReady ( function() {
'user', 'user',
comboAllUsers, comboAllUsers,
'-', '-',
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
textSearch, textSearch,
resetSearchButton, resetSearchButton,
@@ -1421,10 +1421,10 @@ Ext.onReady ( function() {
'-', '-',
btnAll, btnAll,
'->', // begin using the right-justified button container '->', // begin using the right-justified button container
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
'-', '-',
TRANSLATIONS.ID_STATUS, _('ID_STATUS'),
comboStatus, comboStatus,
'-', '-',
textSearch, textSearch,
@@ -1439,13 +1439,13 @@ Ext.onReady ( function() {
var toolbarSearch = [ var toolbarSearch = [
' ', ' ',
TRANSLATIONS.ID_DELEGATE_DATE_FROM, _('ID_DELEGATE_DATE_FROM'),
dateFrom, dateFrom,
' ', ' ',
TRANSLATIONS.ID_TO, _('ID_TO'),
dateTo, dateTo,
new Ext.Button ({ new Ext.Button ({
text: TRANSLATIONS.ID_FILTER_BY_DELEGATED_DATE, text: _('ID_FILTER_BY_DELEGATED_DATE'),
handler: function(){ handler: function(){
storeCases.setBaseParam('dateFrom', dateFrom.getValue()); storeCases.setBaseParam('dateFrom', dateFrom.getValue());
storeCases.setBaseParam('dateTo', dateTo.getValue()); storeCases.setBaseParam('dateTo', dateTo.getValue());
@@ -1462,13 +1462,13 @@ Ext.onReady ( function() {
items: [ items: [
optionMenuOpen, optionMenuOpen,
'->', '->',
TRANSLATIONS.ID_PROCESS, _('ID_PROCESS'),
comboProcess, comboProcess,
'-', '-',
TRANSLATIONS.ID_STATUS, _('ID_STATUS'),
comboStatus, comboStatus,
'-', '-',
TRANSLATIONS.ID_USER, _('ID_USER'),
comboUser, comboUser,
'-', '-',
textSearch, textSearch,
@@ -1518,7 +1518,7 @@ Ext.onReady ( function() {
viewConfig: { viewConfig: {
forceFit:true, forceFit:true,
cls:"x-grid-empty", cls:"x-grid-empty",
emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND) emptyText: ( _('ID_NO_RECORDS_FOUND') )
}, },
listeners: { listeners: {
rowdblclick: openCase, rowdblclick: openCase,
@@ -1535,8 +1535,8 @@ Ext.onReady ( function() {
store: storeCases, store: storeCases,
displayInfo: true, displayInfo: true,
//displayMsg: 'Displaying items {0} - {1} of {2} ' + ' &nbsp; ' , //displayMsg: 'Displaying items {0} - {1} of {2} ' + ' &nbsp; ' ,
displayMsg: TRANSLATIONS.ID_DISPLAY_ITEMS + ' &nbsp; ', displayMsg: _('ID_DISPLAY_ITEMS') + ' &nbsp; ',
emptyMsg: TRANSLATIONS.ID_DISPLAY_EMPTY emptyMsg: _('ID_DISPLAY_EMPTY')
}) })
}); });
@@ -1799,7 +1799,7 @@ function reassign(){
else { else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',

View File

@@ -64,7 +64,7 @@ Ext.onReady(function() {
txtDasInsTitle = new Ext.form.TextField({ txtDasInsTitle = new Ext.form.TextField({
id: 'txtDasInsTitle', id: 'txtDasInsTitle',
name: 'DAS_INS_TITLE', name: 'DAS_INS_TITLE',
fieldLabel: 'Title', fieldLabel: _('ID_TITLE'),
allowBlank: false, allowBlank: false,
width: 320, width: 320,
listeners: { listeners: {
@@ -77,7 +77,7 @@ Ext.onReady(function() {
cboDasUID = new Ext.form.ComboBox({ cboDasUID = new Ext.form.ComboBox({
id: 'cboDasUID', id: 'cboDasUID',
name: 'DAS_UID', name: 'DAS_UID',
fieldLabel: 'Dashlet', fieldLabel: _('ID_DASHLET'),
editable: false, editable: false,
width: 320, width: 320,
store: storeDasUID, store: storeDasUID,
@@ -105,7 +105,7 @@ Ext.onReady(function() {
} }
dashletInstanceFrm.add(new Ext.form.FieldSet({ dashletInstanceFrm.add(new Ext.form.FieldSet({
id: 'additional', id: 'additional',
title: 'Other', title: _('ID_OTHER'),
items: additionalFields items: additionalFields
})); }));
} }
@@ -133,7 +133,7 @@ Ext.onReady(function() {
cboDasInsOwnerType = new Ext.form.ComboBox({ cboDasInsOwnerType = new Ext.form.ComboBox({
id: 'cboDasInsOwnerType', id: 'cboDasInsOwnerType',
name: 'DAS_INS_OWNER_TYPE', name: 'DAS_INS_OWNER_TYPE',
fieldLabel: 'Assign To', fieldLabel: _('ID_ASSIGN_TO'),
editable: false, editable: false,
width: 320, width: 320,
store: storeDasInsOwnerType, store: storeDasInsOwnerType,
@@ -156,7 +156,7 @@ Ext.onReady(function() {
cboDasInsOwnerUID = new Ext.form.ComboBox({ cboDasInsOwnerUID = new Ext.form.ComboBox({
id: 'cboDasInsOwnerUID', id: 'cboDasInsOwnerUID',
name: 'DAS_INS_OWNER_UID', name: 'DAS_INS_OWNER_UID',
fieldLabel: 'Name', fieldLabel: _('ID_NAME'),
editable: false, editable: false,
width: 320, width: 320,
store: storeDasInsOwnerUID, store: storeDasInsOwnerUID,
@@ -170,7 +170,7 @@ Ext.onReady(function() {
formFields = [ formFields = [
new Ext.form.FieldSet({ new Ext.form.FieldSet({
id: 'general', id: 'general',
title: 'General', title: _('ID_GENERAL'),
items: [hiddenDasInsUID, txtDasInsTitle, cboDasUID, cboDasInsOwnerType, cboDasInsOwnerUID] items: [hiddenDasInsUID, txtDasInsTitle, cboDasUID, cboDasInsOwnerType, cboDasInsOwnerUID]
}) })
]; ];
@@ -187,7 +187,7 @@ Ext.onReady(function() {
} }
formFields.push(new Ext.form.FieldSet({ formFields.push(new Ext.form.FieldSet({
id: 'additional', id: 'additional',
title: 'Other', title: _('ID_OTHER'),
items: additionalFields items: additionalFields
})); }));
} }
@@ -199,13 +199,13 @@ Ext.onReady(function() {
border: true, border: true,
width: 465, width: 465,
frame: true, frame: true,
title: 'Dashlet Instance Configuration', title: _('ID_DASHLET_INSTANCE_CONFIGURATION'),
items: formFields, items: formFields,
buttonAlign: 'right', buttonAlign: 'right',
buttons: [ buttons: [
new Ext.Action({ new Ext.Action({
id: 'btnSubmit', id: 'btnSubmit',
text: 'Save', text: _('ID_SAVE'),
handler: function () { handler: function () {
if (dashletInstanceFrm.getForm().isValid()) { if (dashletInstanceFrm.getForm().isValid()) {
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: 'Saving. Please wait...'}); var myMask = new Ext.LoadMask(Ext.getBody(), {msg: 'Saving. Please wait...'});
@@ -222,25 +222,25 @@ Ext.onReady(function() {
window.location.href = 'dashletsList'; window.location.href = 'dashletsList';
break; break;
default: default:
Ext.MessageBox.alert('Alert', 'Dashboard Instance registered failed'); Ext.MessageBox.alert( _('ID_ALERT'), _('ID_FAILED_DASHBOARD INSTANCE') );
break; break;
} }
}, },
failure: function (result, request) { failure: function (result, request) {
myMask.hide(); myMask.hide();
Ext.MessageBox.alert('Alert', 'Ajax communication failed'); Ext.MessageBox.alert( _('ID_ALERT'), _('ID_AJAX_COMMUNICATION_FAILED') );
} }
}); });
} }
else { 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', xtype: 'button',
id: 'btnCancel', id: 'btnCancel',
text: 'Cancel', text: _('ID_CANCEL'),
handler: function () { handler: function () {
window.location.href = 'dashletsList'; window.location.href = 'dashletsList';
} }

View File

@@ -207,10 +207,10 @@ Ext.onReady(function(){
pageSize: pageSize, pageSize: pageSize,
store: store, store: store,
displayInfo: true, displayInfo: true,
//displayMsg: _('ID_GRID_PAGE_DISPLAYING_DASHLET_MESSAGE') + '&nbsp; &nbsp; ', displayMsg: _('ID_GRID_PAGE_DISPLAYING_DASHLET_MESSAGE') + '&nbsp; &nbsp; ',
displayMsg: 'Displaying dashlets instances {0} - {1} of {2}' + '&nbsp; &nbsp; ', //displayMsg: 'Displaying dashlets instances {0} - {1} of {2}' + '&nbsp; &nbsp; ',
//emptyMsg: _('ID_GRID_PAGE_NO_DASHLET_MESSAGE'), emptyMsg: _('ID_GRID_PAGE_NO_DASHLET_MESSAGE'),
emptyMsg: 'No dashlets instances to display', //emptyMsg: 'No dashlets instances to display',
items: ['-',_('ID_PAGE_SIZE')+':',comboPageSize] items: ['-',_('ID_PAGE_SIZE')+':',comboPageSize]
}); });
@@ -326,8 +326,8 @@ editDashletInstance = function(){
deleteDashletInstance = function(){ deleteDashletInstance = function(){
var rowSelected = infoGrid.getSelectionModel().getSelected(); var rowSelected = infoGrid.getSelectionModel().getSelected();
if (rowSelected){ if (rowSelected){
//Ext.Msg.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_DELETE_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) //Ext.Msg.confirm(_('ID_CONFIRM'), 'Do you want to delete this Dashlet Instance?', function(btn, text)
{ {
if (btn == 'yes') { if (btn == 'yes') {
viewport.getEl().mask(_('ID_PROCESSING')); viewport.getEl().mask(_('ID_PROCESSING'));
@@ -338,12 +338,12 @@ deleteDashletInstance = function(){
viewport.getEl().unmask(); viewport.getEl().unmask();
response = Ext.util.JSON.decode(r.responseText); response = Ext.util.JSON.decode(r.responseText);
if (response.status == 'OK') { if (response.status == 'OK') {
//PMExt.notify(_('ID_DASHLET_INSTANCE'),_('ID_DASHLET_SUCCESS_DELETE')); PMExt.notify(_('ID_DASHLET_INSTANCE'),_('ID_DASHLET_SUCCESS_DELETE'));
PMExt.notify('Dashlet Instance', 'Dashlet instance deleted sucessfully.'); //PMExt.notify('Dashlet Instance', 'Dashlet instance deleted sucessfully.');
} }
else { else {
//PMExt.error(_('ID_DASHLET_INSTANCE'), response.message); PMExt.error(_('ID_DASHLET_INSTANCE'), response.message);
PMExt.error('Dashlet Instance', response.message); //PMExt.error('Dashlet Instance', response.message);
} }
//doSearch(); //doSearch();
editButton.disable(); editButton.disable();

View File

@@ -112,7 +112,7 @@ Ext.onReady(function(){
{ {
xtype:'htmleditor', xtype:'htmleditor',
id:'OUT_DOC_TEMPLATE', id:'OUT_DOC_TEMPLATE',
fieldLabel:'Output Document Template', fieldLabel: _('ID_OUTPUT_DOCUMENT_TEMPLATE'),
height:300, height:300,
anchor:'98%', anchor:'98%',
listeners: { listeners: {
@@ -157,7 +157,7 @@ Ext.onReady(function(){
success: function(response){ success: function(response){
Ext.Msg.show({ Ext.Msg.show({
title: '', title: '',
msg: 'Saved Successfully', msg: _('ID_SAVED_SUCCESSFULLY'),
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
icon: Ext.MessageBox.INFO, icon: Ext.MessageBox.INFO,
@@ -172,7 +172,7 @@ Ext.onReady(function(){
}); });
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
var sInfo = navigator.userAgent.toLowerCase(); var sInfo = navigator.userAgent.toLowerCase();
if ( sInfo.indexOf('msie') != -1 ) if ( sInfo.indexOf('msie') != -1 )
@@ -196,6 +196,6 @@ Ext.onReady(function(){
}); });
function _(ID){ //function _(ID){
return TRANSLATIONS[ID]; // return TRANSLATIONS[ID];
} //}

View File

@@ -507,7 +507,7 @@ Ext.onReady(function(){
comboDbConnections.setDisabled(true); comboDbConnections.setDisabled(true);
} else { } else {
// DB COnnection deleted // DB COnnection deleted
Ext.Msg.alert( _('ID_ERROR'), 'DB Connection doesn\'t exist!'); Ext.Msg.alert( _('ID_ERROR'), _('ID_DB_CONNECTION_NOT_EXIST') );
} }
} else { } else {
comboDbConnections.setValue('rp'); comboDbConnections.setValue('rp');

View File

@@ -401,7 +401,7 @@ Ext.onReady(function(){
//table columns grid //table columns grid
assignedGrid = new Ext.grid.GridPanel({ assignedGrid = new Ext.grid.GridPanel({
title: 'New Report Table', title : _('ID_NEW_REPORT_TABLE'),
region : 'center', region : 'center',
id : 'assignedGrid', id : 'assignedGrid',
ddGroup : 'availableGridDDGroup', ddGroup : 'availableGridDDGroup',
@@ -461,7 +461,7 @@ Ext.onReady(function(){
} }
}, },
_setTitle: 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 { else {
// DB COnnection deleted // 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 { } 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); processComboBox.setDisabled(true);
} else { } else {
// Process deleted // 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 // setting table attributes for current editing process
Ext.getCmp('REP_TAB_NAME').setValue(TABLE.ADD_TAB_NAME); Ext.getCmp('REP_TAB_NAME').setValue(TABLE.ADD_TAB_NAME);
@@ -902,7 +902,7 @@ function createReportTable()
//validate table name //validate table name
if(Ext.getCmp('REP_TAB_NAME').getValue().trim() == '') { if(Ext.getCmp('REP_TAB_NAME').getValue().trim() == '') {
Ext.getCmp('REP_TAB_NAME').focus(); 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(); Ext.getCmp('REP_TAB_NAME').focus();
}); });
return false; return false;
@@ -1076,7 +1076,7 @@ AssignAllFieldsAction = function(){
RemoveAllFieldsAction = function(){ RemoveAllFieldsAction = function(){
if (store.getCount() > 100) { 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. <br/><br/>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 ; return ;
} }
@@ -1397,7 +1397,7 @@ function verifyTableLimit()
{ {
if( store.getCount() >= 255 ) { if( store.getCount() >= 255 ) {
mainMask.hide(); 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(); assignedGrid._setTitle();
return false; return false;
} }

View File

@@ -117,10 +117,10 @@ Export.configure = function()
} }
this.windowConfig.buttons = [{ this.windowConfig.buttons = [{
text: 'Export', text: _('ID_EXPORT'),
handler: Export.submit handler: Export.submit
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
Export.window.hide(); Export.window.hide();
} }

View File

@@ -58,7 +58,7 @@ Ext.onReady(function(){
var expander = new Ext.ux.grid.RowExpander({ var expander = new Ext.ux.grid.RowExpander({
tpl : new Ext.Template( tpl : new Ext.Template(
'<p><b>'+TRANSLATIONS.ID_PRO_DESCRIPTION+':</b> {PRO_DESCRIPTION}</p><br>' '<p><b>' + _('ID_PRO_DESCRIPTION') + ':</b> {PRO_DESCRIPTION}</p><br>'
) )
}); });
@@ -81,14 +81,14 @@ Ext.onReady(function(){
valueField : 'CATEGORY_UID', valueField : 'CATEGORY_UID',
displayField : 'CATEGORY_NAME', displayField : 'CATEGORY_NAME',
triggerAction : 'all', triggerAction : 'all',
emptyText : TRANSLATIONS.ID_SELECT, emptyText : _('ID_SELECT'),
selectOnFocus : true, selectOnFocus : true,
editable : true, editable : true,
width: 180, width: 180,
allowBlank : true, allowBlank : true,
autocomplete: true, autocomplete: true,
typeAhead: true, typeAhead: true,
allowBlankText : 'You should to select a language from the list.', allowBlankText : _('ID_SHOULD_SELECT_LANGUAGE_FROM_LIST'),
listeners:{ listeners:{
scope: this, scope: this,
'select': function() { 'select': function() {
@@ -166,7 +166,7 @@ Ext.onReady(function(){
viewConfig: { viewConfig: {
forceFit:true, forceFit:true,
cls:"x-grid-empty", cls:"x-grid-empty",
emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND) emptyText: _('ID_NO_RECORDS_FOUND')
}, },
cm: new Ext.grid.ColumnModel({ cm: new Ext.grid.ColumnModel({
defaults: { defaults: {
@@ -177,34 +177,34 @@ Ext.onReady(function(){
expander, expander,
{id:'PRO_UID', dataIndex: 'PRO_UID', hidden:true, hideable:false}, {id:'PRO_UID', dataIndex: 'PRO_UID', hidden:true, hideable:false},
{header: "", dataIndex: 'PRO_STATUS', width: 50, hidden:true, hideable:false}, {header: "", dataIndex: 'PRO_STATUS', width: 50, hidden:true, hideable:false},
{header: TRANSLATIONS.ID_PRO_DESCRIPTION, dataIndex: 'PRO_DESCRIPTION',hidden:true, hideable:false}, {header: _('ID_PRO_DESCRIPTION'), dataIndex: 'PRO_DESCRIPTION',hidden:true, hideable:false},
{header: TRANSLATIONS.ID_PRO_TITLE, dataIndex: 'PRO_TITLE', width: 300}, {header: _('ID_PRO_TITLE'), dataIndex: 'PRO_TITLE', width: 300},
{header: TRANSLATIONS.ID_CATEGORY, dataIndex: 'PRO_CATEGORY_LABEL', width: 100, hidden:false}, {header: _('ID_CATEGORY'), dataIndex: 'PRO_CATEGORY_LABEL', width: 100, hidden:false},
{header: TRANSLATIONS.ID_STATUS, dataIndex: 'PRO_STATUS_LABEL', width: 50, renderer:function(v,p,r){ {header: _('ID_STATUS'), dataIndex: 'PRO_STATUS_LABEL', width: 50, renderer:function(v,p,r){
color = r.get('PRO_STATUS') == 'ACTIVE'? 'green': 'red'; color = r.get('PRO_STATUS') == 'ACTIVE'? 'green': 'red';
return String.format("<font color='{0}'>{1}</font>", color, v); return String.format("<font color='{0}'>{1}</font>", color, v);
}}, }},
{header: TRANSLATIONS.ID_PRO_USER, dataIndex: 'PRO_CREATE_USER_LABEL', width: 150}, {header: _('ID_PRO_USER'), dataIndex: 'PRO_CREATE_USER_LABEL', width: 150},
{header: TRANSLATIONS.ID_PRO_CREATE_DATE, dataIndex: 'PRO_CREATE_DATE', width: 90}, {header: _('ID_PRO_CREATE_DATE'), dataIndex: 'PRO_CREATE_DATE', width: 90},
{header: TRANSLATIONS.ID_INBOX, dataIndex: 'CASES_COUNT_TO_DO', width: 50, align:'right'}, {header: _('ID_INBOX'), dataIndex: 'CASES_COUNT_TO_DO', width: 50, align:'right'},
{header: TRANSLATIONS.ID_DRAFT, dataIndex: 'CASES_COUNT_DRAFT', width: 50, align:'right'}, {header: _('ID_DRAFT'), dataIndex: 'CASES_COUNT_DRAFT', width: 50, align:'right'},
{header: TRANSLATIONS.ID_COMPLETED, dataIndex: 'CASES_COUNT_COMPLETED', width: 70, align:'right'}, {header: _('ID_COMPLETED'), dataIndex: 'CASES_COUNT_COMPLETED', width: 70, align:'right'},
{header: TRANSLATIONS.ID_CANCELLED, dataIndex: 'CASES_COUNT_CANCELLED', width: 70, align:'right'}, {header: _('ID_CANCELLED'), dataIndex: 'CASES_COUNT_CANCELLED', width: 70, align:'right'},
{header: TRANSLATIONS.ID_TOTAL_CASES, dataIndex: 'CASES_COUNT', width: 80,renderer:function(v){return "<b>"+v+"</b>";}, align:'right'}, {header: _('ID_TOTAL_CASES'), dataIndex: 'CASES_COUNT', width: 80,renderer:function(v){return "<b>"+v+"</b>";}, align:'right'},
{header: TRANSLATIONS.ID_PRO_DEBUG, dataIndex: 'PRO_DEBUG_LABEL', width: 50, align:'center'} {header: _('ID_PRO_DEBUG'), dataIndex: 'PRO_DEBUG_LABEL', width: 50, align:'center'}
] ]
}), }),
store: store, store: store,
tbar:[ tbar:[
{ {
text:TRANSLATIONS.ID_NEW, text: _('ID_NEW'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
//icon: '/images/addc.png', //icon: '/images/addc.png',
handler: newProcess handler: newProcess
}, },
'-' '-'
,{ ,{
text:TRANSLATIONS.ID_EDIT, text: _('ID_EDIT'),
iconCls: 'button_menu_ext ss_sprite ss_pencil', iconCls: 'button_menu_ext ss_sprite ss_pencil',
//icon: '/images/edit.gif', //icon: '/images/edit.gif',
handler: editProcess handler: editProcess
@@ -214,26 +214,26 @@ Ext.onReady(function(){
icon: '/images/pencil_beta.png', icon: '/images/pencil_beta.png',
handler: editNewProcess handler: editNewProcess
},*/{ },*/{
text:TRANSLATIONS.ID_STATUS, text: _('ID_STATUS'),
id:'activator', id:'activator',
icon: '', icon: '',
iconCls: 'silk-add', iconCls: 'silk-add',
handler: activeDeactive, handler: activeDeactive,
disabled:true disabled:true
},{ },{
text:TRANSLATIONS.ID_DELETE, text: _('ID_DELETE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
//icon: '/images/delete-16x16.gif', //icon: '/images/delete-16x16.gif',
handler:deleteProcess handler:deleteProcess
},{ },{
xtype: 'tbseparator' xtype: 'tbseparator'
},{ },{
text:TRANSLATIONS.ID_IMPORT, text: _('ID_IMPORT'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/import.gif', icon: '/images/import.gif',
handler:importProcess handler:importProcess
},{ },{
text:TRANSLATIONS.ID_XPDL_IMPORT, text: _('ID_XPDL_IMPORT'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/import.gif', icon: '/images/import.gif',
handler:importXPDLProcess handler:importXPDLProcess
@@ -242,7 +242,7 @@ Ext.onReady(function(){
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/export.png', icon: '/images/export.png',
},*/{ },*/{
text:TRANSLATIONS.ID_BROWSE_LIBRARY, text: _('ID_BROWSE_LIBRARY'),
iconCls: 'button_menu_ext ss_sprite ss_world', iconCls: 'button_menu_ext ss_sprite ss_world',
//icon: '/images/icon-pmwebservices.png', //icon: '/images/icon-pmwebservices.png',
handler: browseLibrary handler: browseLibrary
@@ -252,7 +252,7 @@ Ext.onReady(function(){
},{ },{
xtype: 'tbseparator' xtype: 'tbseparator'
}, },
TRANSLATIONS.ID_CATEGORY, _('ID_CATEGORY'),
comboCategory,{ comboCategory,{
xtype: 'tbseparator' xtype: 'tbseparator'
},new Ext.form.TextField ({ },new Ext.form.TextField ({
@@ -260,7 +260,7 @@ Ext.onReady(function(){
ctCls:'pm_search_text_field', ctCls:'pm_search_text_field',
allowBlank: true, allowBlank: true,
width: 150, width: 150,
emptyText: TRANSLATIONS.ID_ENTER_SEARCH_TERM,//'enter search term', emptyText: _('ID_ENTER_SEARCH_TERM'),//'enter search term',
listeners: { listeners: {
specialkey: function(f,e){ specialkey: function(f,e){
if (e.getKey() == e.ENTER) { if (e.getKey() == e.ENTER) {
@@ -280,7 +280,7 @@ Ext.onReady(function(){
//store.reload(); //store.reload();
} }
},{ },{
text:TRANSLATIONS.ID_SEARCH, text: _('ID_SEARCH'),
handler: doSearch handler: doSearch
} }
], ],
@@ -303,10 +303,10 @@ Ext.onReady(function(){
activator.setDisabled(false); activator.setDisabled(false);
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){ if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
activator.setIcon('/images/deactivate.png'); activator.setIcon('/images/deactivate.png');
activator.setText(TRANSLATIONS.ID_DEACTIVATE); activator.setText( _('ID_DEACTIVATE') );
} else { } else {
activator.setIcon('/images/activate.png'); activator.setIcon('/images/activate.png');
activator.setText(TRANSLATIONS.ID_ACTIVATE); activator.setText( _('ID_ACTIVATE') );
} }
}); });
} }
@@ -325,10 +325,10 @@ Ext.onReady(function(){
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){ if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
activator.setIconClass('icon-deactivate'); activator.setIconClass('icon-deactivate');
activator.setText(TRANSLATIONS.ID_DEACTIVATE); activator.setText( _('ID_DEACTIVATE') );
} else { } else {
activator.setIconClass('icon-activate'); activator.setIconClass('icon-activate');
activator.setText(TRANSLATIONS.ID_ACTIVATE); activator.setText( _('ID_ACTIVATE') );
} }
if( rowSelected.data.PRO_DEBUG == 1){ if( rowSelected.data.PRO_DEBUG == 1){
@@ -504,7 +504,7 @@ editProcess = function(){
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -521,7 +521,7 @@ editNewProcess = function(){
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -553,11 +553,11 @@ deleteProcess = function(){
PRO_UIDS = ids.join(','); PRO_UIDS = ids.join(',');
Ext.Msg.confirm( Ext.Msg.confirm(
TRANSLATIONS.ID_CONFIRM, _('ID_CONFIRM'),
rows.length == 1? TRANSLATIONS.ID_PROCESS_DELETE_LABEL: TRANSLATIONS.ID_PROCESS_DELETE_ALL_LABEL, (rows.length == 1) ? _('ID_PROCESS_DELETE_LABEL') : _('ID_PROCESS_DELETE_ALL_LABEL'),
function(btn, text){ function(btn, text){
if ( btn == 'yes' ){ 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({ Ext.Ajax.request({
url: 'processes_Delete', url: 'processes_Delete',
success: function(response) { success: function(response) {
@@ -568,7 +568,7 @@ deleteProcess = function(){
if(result){ if(result){
if(result.status != 0){ if(result.status != 0){
Ext.MessageBox.show({ Ext.MessageBox.show({
title: 'Error', title: _('ID_ERROR'),
msg: result.msg, msg: result.msg,
buttons: Ext.MessageBox.OK, buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR icon: Ext.MessageBox.ERROR
@@ -576,7 +576,7 @@ deleteProcess = function(){
} }
} else } else
Ext.MessageBox.show({ Ext.MessageBox.show({
title: 'Error', title: _('ID_ERROR'),
msg: response.responseText, msg: response.responseText,
buttons: Ext.MessageBox.OK, buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR icon: Ext.MessageBox.ERROR
@@ -590,7 +590,7 @@ deleteProcess = function(){
} else { } else {
errMsg = ''; errMsg = '';
for(i=0; i<errLog.length; i++){ for(i=0; i<errLog.length; i++){
e = TRANSLATIONS.ID_PROCESS_CANT_DELETE; e = _('ID_PROCESS_CANT_DELETE');
e = e.replace('{0}', rows[errLog[i]].get('PRO_TITLE')); e = e.replace('{0}', rows[errLog[i]].get('PRO_TITLE'));
e = e.replace('{1}', rows[errLog[i]].get('CASES_COUNT')); e = e.replace('{1}', rows[errLog[i]].get('CASES_COUNT'));
errMsg += e + '<br/>'; errMsg += e + '<br/>';
@@ -605,7 +605,7 @@ deleteProcess = function(){
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -648,13 +648,13 @@ function activeDeactive(){
activator.setIcon(''); activator.setIcon('');
}, },
failure: function ( result, request) { failure: function ( result, request) {
Ext.MessageBox.alert('Failed', result.responseText); Ext.MessageBox.alert(_('ID_FAILED'), result.responseText);
} }
}); });
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -684,13 +684,13 @@ function enableDisableDebug()
activator.setIcon(''); activator.setIcon('');
}, },
failure: function ( result, request) { failure: function ( result, request) {
Ext.MessageBox.alert('Failed', result.responseText); Ext.MessageBox.alert(_('ID_FAILED'), result.responseText);
} }
}); });
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_NO_SELECTION_WARNING, msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',

View File

@@ -451,7 +451,7 @@ Ext.onReady(function(){
comboDbConnections.setDisabled(true); comboDbConnections.setDisabled(true);
} else { } else {
// DB COnnection deleted // DB COnnection deleted
Ext.Msg.alert( _('ID_ERROR'), 'DB Connection doesn\'t exist!'); Ext.Msg.alert( _('ID_ERROR'), _('ID_DB_CONNECTION_NO_EXIST'));
} }
} else { } else {
comboDbConnections.setValue('rp'); comboDbConnections.setValue('rp');
@@ -497,7 +497,7 @@ Ext.onReady(function(){
comboGridsList.setRawValue(this.getAt(i).data.FIELD_NAME); comboGridsList.setRawValue(this.getAt(i).data.FIELD_NAME);
comboGridsList.setDisabled(true); comboGridsList.setDisabled(true);
} else { } else {
Ext.Msg.alert( _('ID_ERROR'), 'Grid doesn\'t exist!'); Ext.Msg.alert( _('ID_ERROR'), _('ID_GRID_NO_EXIST'));
} }
} }
} }
@@ -558,7 +558,7 @@ Ext.onReady(function(){
processComboBox.setDisabled(true); processComboBox.setDisabled(true);
} else { } else {
// Process deleted // 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 // setting table attributes for current editing process
Ext.getCmp('REP_TAB_NAME').setValue(TABLE.ADD_TAB_NAME); Ext.getCmp('REP_TAB_NAME').setValue(TABLE.ADD_TAB_NAME);
@@ -676,7 +676,7 @@ Ext.onReady(function(){
region: 'north', region: 'north',
labelWidth: 120, labelWidth: 120,
labelAlign:'right', labelAlign:'right',
title: 'New Report Table', title: _('ID_NEW_REPORT_TABLE'),
bodyStyle:'padding:10px', bodyStyle:'padding:10px',
waitMsgTarget : true, waitMsgTarget : true,
frame: true, frame: true,
@@ -749,7 +749,7 @@ function createReportTable()
//validate table name //validate table name
if(Ext.getCmp('REP_TAB_NAME').getValue().trim() == '') { if(Ext.getCmp('REP_TAB_NAME').getValue().trim() == '') {
Ext.getCmp('REP_TAB_NAME').focus(); 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(); Ext.getCmp('REP_TAB_NAME').focus();
}); });
return false; return false;
@@ -760,7 +760,7 @@ function createReportTable()
//validate columns count //validate columns count
if(allRows.getCount() == 0) { if(allRows.getCount() == 0) {
PMExt.error(_('ID_ERROR'), 'Set columns for this Report Table please.'); PMExt.error(_('ID_ERROR'), _('ID_PMTABLES_ALERT7'));
return false; return false;
} }
@@ -1071,7 +1071,7 @@ SaveFieldsReportTable = function(arr_avail, function_success, function_failure){
//REMOVE GROUPS FROM A USER //REMOVE GROUPS FROM A USER
DeleteFieldsReportTable = function(arr_asign, function_success, function_failure){ DeleteFieldsReportTable = function(arr_asign, function_success, function_failure){
var sw_response; var sw_response;
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({ Ext.Ajax.request({
url: 'reportTables_Ajax', url: 'reportTables_Ajax',

View File

@@ -361,7 +361,7 @@ Ext.onReady(function(){
var rowsSelected = Ext.getCmp('infoGrid').getSelectionModel().getSelections(); var rowsSelected = Ext.getCmp('infoGrid').getSelectionModel().getSelections();
tag = rowsSelected[0].get('ADD_TAB_TAG'); tag = rowsSelected[0].get('ADD_TAB_TAG');
text = tag? 'Convert to native Report Table': 'Convert to Simple Report'; text = tag? _('ID_CONVERT_NATIVE_REP_TABLE'): _('ID_CONVERT_SIMPLE_REPORT');
if (externalOption) { if (externalOption) {
externalOption.setText(text); externalOption.setText(text);
} }

View File

@@ -38,7 +38,7 @@ Ext.onReady(function() {
stripeRows : true, stripeRows : true,
autoHeight : true, autoHeight : true,
width : 400, width : 400,
title : TRANSLATIONS.ID_CACHE_TITLE_INFO, // 'Workflow Applications Cache Info', title : _('ID_CACHE_TITLE_INFO'), // 'Workflow Applications Cache Info',
// config options for stateful behavior // config options for stateful behavior
stateful : true, stateful : true,
stateId : 'grid', stateId : 'grid',
@@ -59,9 +59,9 @@ Ext.onReady(function() {
width : 400, width : 400,
items : [ ], items : [ ],
buttons : [{ buttons : [{
text : TRANSLATIONS.ID_CACHE_BTN_BUILD, // 'Build Cache', text : _('ID_CACHE_BTN_BUILD'), // 'Build Cache',
handler : function() { handler : function() {
Ext.Msg.show ({ msg : TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:400} }); Ext.Msg.show ({ msg : _('ID_PROCESSING'), wait:true,waitConfig: {interval:400} });
Ext.Ajax.request({ Ext.Ajax.request({
url: 'appCacheViewAjax', url: 'appCacheViewAjax',
success: function(response) { success: function(response) {
@@ -73,10 +73,10 @@ Ext.onReady(function() {
}, },
failure : function(response) { failure : function(response) {
Ext.Msg.hide(); Ext.Msg.hide();
Ext.Msg.alert ( 'Error', response.responseText ); Ext.Msg.alert ( _('ID_ERROR'), response.responseText );
}, },
params: {request: 'build', lang: 'en' }, params: {request: 'build', lang: 'en' },
waitMsg : TRANSLATIONS.ID_CACHE_BUILDING, // 'Building Workflow Application Cache...', waitMsg : _('ID_CACHE_BUILDING'), // 'Building Workflow Application Cache...',
timeout : 1000*60*30 //30 mins timeout : 1000*60*30 //30 mins
}); });
} }
@@ -86,7 +86,7 @@ Ext.onReady(function() {
var txtUser = { var txtUser = {
id : 'txtUser', id : 'txtUser',
xtype: 'textfield', xtype: 'textfield',
fieldLabel: TRANSLATIONS.ID_CACHE_USER, // 'User', fieldLabel: _('ID_CACHE_USER'), // 'User',
disabled: false, disabled: false,
name: 'user', name: 'user',
allowBlank: false allowBlank: false
@@ -95,7 +95,7 @@ Ext.onReady(function() {
var txtHost = { var txtHost = {
id : 'txtHost', id : 'txtHost',
xtype: 'textfield', xtype: 'textfield',
fieldLabel: TRANSLATIONS.ID_CACHE_HOST, // 'Host', fieldLabel: _('ID_CACHE_HOST'), // 'Host',
disabled: false, disabled: false,
name: 'host', name: 'host',
allowBlank: false allowBlank: false
@@ -105,7 +105,7 @@ Ext.onReady(function() {
id : 'txtPasswd', id : 'txtPasswd',
inputType: 'password', inputType: 'password',
xtype:'textfield', xtype:'textfield',
fieldLabel: TRANSLATIONS.ID_CACHE_PASSWORD, // 'Password', fieldLabel: _('ID_CACHE_PASSWORD'), // 'Password',
disabled: false, disabled: false,
hidden: false, hidden: false,
value: '' value: ''
@@ -113,7 +113,7 @@ Ext.onReady(function() {
fieldsetRoot = { fieldsetRoot = {
xtype : 'fieldset', xtype : 'fieldset',
title : TRANSLATIONS.ID_CACHE_SUBTITLE_SETUP_DB, // 'Setup MySql Root Password', title : _('ID_CACHE_SUBTITLE_SETUP_DB'), // 'Setup MySql Root Password',
collapsible : true, collapsible : true,
collapsed: true, collapsed: true,
autoHeight : true, autoHeight : true,
@@ -121,13 +121,13 @@ Ext.onReady(function() {
defaultType : 'textfield', defaultType : 'textfield',
items : [txtHost, txtUser, txtPasswd ], items : [txtHost, txtUser, txtPasswd ],
buttons : [{ buttons : [{
text : TRANSLATIONS.ID_CACHE_BTN_SETUP_PASSWRD, // 'Setup Password', text : _('ID_CACHE_BTN_SETUP_PASSWRD'), // 'Setup Password',
handler : function() { handler : function() {
if (!fsf.getForm().isValid()) { if (!fsf.getForm().isValid()) {
return; return;
} }
Ext.Msg.show ({ msg : TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:400} }); Ext.Msg.show ({ msg : _('ID_PROCESSING'), wait:true,waitConfig: {interval:400} });
Ext.Ajax.request({ Ext.Ajax.request({
url: 'appCacheViewAjax', url: 'appCacheViewAjax',
success: function(response) { success: function(response) {
@@ -137,7 +137,7 @@ Ext.onReady(function() {
}, },
failure : function(response) { failure : function(response) {
Ext.Msg.hide(); Ext.Msg.hide();
Ext.Msg.alert ( 'Error', response.responseText ); Ext.Msg.alert ( _('ID_ERROR'), response.responseText );
}, },
params: { request: 'recreate-root', lang: 'en', host: Ext.getCmp('txtHost').getValue(), user: Ext.getCmp('txtUser').getValue(), password: Ext.getCmp('txtPasswd').getValue() }, params: { request: 'recreate-root', lang: 'en', host: Ext.getCmp('txtHost').getValue(), user: Ext.getCmp('txtUser').getValue(), password: Ext.getCmp('txtPasswd').getValue() },
// timeout : 1000 // timeout : 1000
@@ -158,11 +158,11 @@ Ext.onReady(function() {
myData = Ext.decode ( response.responseText ); myData = Ext.decode ( response.responseText );
store.loadData(myData); store.loadData(myData);
if ( myData.error ) { if ( myData.error ) {
Warning( 'error', myData.errorMsg ); Warning( _('ID_ERROR'), myData.errorMsg );
} }
}, },
failure : function(response) { failure : function(response) {
Ext.Msg.alert ( 'Error', response.responseText ); Ext.Msg.alert ( _('ID_ERROR'), response.responseText );
}, },
params: {request: 'info' } params: {request: 'info' }
}); });

View File

@@ -31,7 +31,7 @@ Ext.onReady(function(){
Ext.QuickTips.init(); Ext.QuickTips.init();
installOption = new Ext.Action({ installOption = new Ext.Action({
text: TRANSLATIONS.ID_LANG_INSTALL_UPDATE, text: _('ID_LANG_INSTALL_UPDATE'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/import.gif', icon: '/images/import.gif',
handler: function(){ handler: function(){
@@ -50,7 +50,7 @@ Ext.onReady(function(){
fileUpload: true, fileUpload: true,
width: 400, width: 400,
frame: true, frame: true,
title: TRANSLATIONS.ID_LAN_UPLOAD_TITLE, title: _('ID_LAN_UPLOAD_TITLE'),
autoHeight: false, autoHeight: false,
bodyStyle: 'padding: 10px 10px 0 10px;', bodyStyle: 'padding: 10px 10px 0 10px;',
labelWidth: 50, labelWidth: 50,
@@ -62,8 +62,8 @@ Ext.onReady(function(){
items: [{ items: [{
xtype: 'fileuploadfield', xtype: 'fileuploadfield',
id: 'form-file', id: 'form-file',
emptyText: TRANSLATIONS.ID_LAN_FILE_WATER_LABEL, emptyText: _('ID_LAN_FILE_WATER_LABEL'),
fieldLabel: TRANSLATIONS.ID_LAN_FILE, fieldLabel: _('ID_LAN_FILE'),
name: 'form[LANGUAGE_FILENAME]', name: 'form[LANGUAGE_FILENAME]',
buttonText: '', buttonText: '',
buttonCfg: { buttonCfg: {
@@ -71,7 +71,7 @@ Ext.onReady(function(){
} }
}], }],
buttons: [{ buttons: [{
text: TRANSLATIONS.ID_UPLOAD, text: _('ID_UPLOAD'),
handler: function(){ handler: function(){
var uploader = Ext.getCmp('uploader'); var uploader = Ext.getCmp('uploader');
@@ -112,7 +112,7 @@ Ext.onReady(function(){
uploader.getForm().reset(); uploader.getForm().reset();
} }
}*/,{ }*/,{
text: TRANSLATIONS.ID_CANCEL, text: _('ID_CANCEL'),
handler: function(){ handler: function(){
w.close(); w.close();
} }
@@ -132,7 +132,7 @@ Ext.onReady(function(){
}); });
exportOption = new Ext.Action({ exportOption = new Ext.Action({
text: TRANSLATIONS.ID_EXPORT, text: _('ID_EXPORT'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/export.png', icon: '/images/export.png',
handler: function(){ handler: function(){
@@ -143,7 +143,7 @@ Ext.onReady(function(){
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: 'first select a language from the list please.', msg: _('ID_SELECT_LANGUAGE_FROM_LIST'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -156,7 +156,7 @@ Ext.onReady(function(){
removeOption = new Ext.Action({ removeOption = new Ext.Action({
text: TRANSLATIONS.ID_DELETE_LANGUAGE, text: _('ID_DELETE_LANGUAGE'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/delete-16x16.gif', icon: '/images/delete-16x16.gif',
handler: function(){ handler: function(){
@@ -168,7 +168,7 @@ Ext.onReady(function(){
countryName = rowSelected.data.COUNTRY_NAME; countryName = rowSelected.data.COUNTRY_NAME;
locale = rowSelected.data.LOCALE; locale = rowSelected.data.LOCALE;
confirmMsg = TRANSLATIONS.ID_DELETE_LANGUAGE_CONFIRM; confirmMsg = _('ID_DELETE_LANGUAGE_CONFIRM');
confirmMsg = confirmMsg.replace('{0}', locale); confirmMsg = confirmMsg.replace('{0}', locale);
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
@@ -206,7 +206,7 @@ Ext.onReady(function(){
} else { } else {
Ext.Msg.show({ Ext.Msg.show({
title:'', title:'',
msg: TRANSLATIONS.ID_DELETE_LANGUAGE_WARNING, msg: _('ID_DELETE_LANGUAGE_WARNING'),
buttons: Ext.Msg.INFO, buttons: Ext.Msg.INFO,
fn: function(){}, fn: function(){},
animEl: 'elId', animEl: 'elId',
@@ -264,12 +264,12 @@ Ext.onReady(function(){
}, { }, {
dataIndex : 'LOCALE', dataIndex : 'LOCALE',
id : 'LOCALE', id : 'LOCALE',
header : TRANSLATIONS.ID_LAN_LOCALE, header : _('ID_LAN_LOCALE'),
width : 60, width : 60,
sortable : false sortable : false
}, { }, {
dataIndex : 'LAN_NAME', dataIndex : 'LAN_NAME',
header : TRANSLATIONS.ID_LAN_LANGUAGE, header : _('ID_LAN_LANGUAGE'),
width : 120, width : 120,
sortable : false, sortable : false,
hidden: true, hidden: true,
@@ -278,14 +278,14 @@ Ext.onReady(function(){
return String.format( return String.format(
"{0} <font color=green style='font-size:9px'>({1})</font>", "{0} <font color=green style='font-size:9px'>({1})</font>",
value, value,
TRANSLATIONS.ID_LANG_PREDETERMINED _('ID_LANG_PREDETERMINED')
); );
else else
return value; return value;
} }
}, { }, {
dataIndex : 'COUNTRY_NAME', dataIndex : 'COUNTRY_NAME',
header : TRANSLATIONS.ID_LAN_COUNTRY, header : _('ID_LAN_COUNTRY'),
width : 120, width : 120,
sortable : false, sortable : false,
renderer: function (value, p, r){ renderer: function (value, p, r){
@@ -296,28 +296,28 @@ Ext.onReady(function(){
} }
}, { }, {
dataIndex : 'DATE', dataIndex : 'DATE',
header : TRANSLATIONS.ID_LAN_UPDATE_DATE, header : _('ID_LAN_UPDATE_DATE'),
width : 120, width : 120,
sortable : false sortable : false
}, { }, {
dataIndex : 'REV_DATE', dataIndex : 'REV_DATE',
header : TRANSLATIONS.ID_LAN_REV_DATE, header : _('ID_LAN_REV_DATE'),
width : 110, width : 110,
sortable : false sortable : false
}, { }, {
dataIndex : 'VERSION', dataIndex : 'VERSION',
header : TRANSLATIONS.ID_LAN_VERSION, header : _('ID_LAN_VERSION'),
width : 40, width : 40,
sortable : false sortable : false
}, { }, {
dataIndex : 'TRANSLATOR', dataIndex : 'TRANSLATOR',
header : TRANSLATIONS.ID_LAN_TRANSLATOR, header : _('ID_LAN_TRANSLATOR'),
width : 150, width : 150,
sortable : false, sortable : false,
hidden: false hidden: false
}, { }, {
dataIndex : 'NUM_RECORDS', dataIndex : 'NUM_RECORDS',
header : TRANSLATIONS.ID_LAN_NUM_RECORDS, header : _('ID_LAN_NUM_RECORDS'),
width : 60, width : 60,
sortable : false sortable : false
} }
@@ -349,7 +349,7 @@ Ext.onReady(function(){
tbar:[{ tbar:[{
xtype: 'tbsplit', xtype: 'tbsplit',
text: TRANSLATIONS.ID_ACTIONS, text: _('ID_ACTIONS'),
menu: [removeOption] menu: [removeOption]
}, '-', installOption, exportOption] }, '-', installOption, exportOption]

View File

@@ -25,17 +25,17 @@ Ext.onReady(function(){
} }
}); });
nameWS = new Ext.form.FieldSet({ nameWS = new Ext.form.FieldSet({
title: 'New Workspace', title: _('ID_NEW_WORKSPACE'),
items: [ items: [
fieldNameWS fieldNameWS
] ]
}); });
dbOptionsWS = new Ext.form.FieldSet({ dbOptionsWS = new Ext.form.FieldSet({
title: 'Database Options', title: _('ID_DATABASE_OPTIONS'),
items: [ items: [
{ {
id: 'AO_DB_WF', id: 'AO_DB_WF',
fieldLabel: 'Workflow Database', fieldLabel: _('ID_WORKFLOW_DATABASE'),
xtype:'textfield', xtype:'textfield',
value:'wf_sample', value:'wf_sample',
width: 200, width: 200,
@@ -44,7 +44,7 @@ Ext.onReady(function(){
}, },
{ {
id: 'AO_DB_RB', id: 'AO_DB_RB',
fieldLabel: 'Rbac Database', fieldLabel: _('ID_RBAC_DATABASE'),
xtype:'textfield', xtype:'textfield',
value:'rb_sample', value:'rb_sample',
width: 200, width: 200,
@@ -53,7 +53,7 @@ Ext.onReady(function(){
}, },
{ {
id: 'AO_DB_RP', id: 'AO_DB_RP',
fieldLabel: 'Report Database', fieldLabel: _('ID_REPORT_DATABASE'),
xtype:'textfield', xtype:'textfield',
value:'rp_sample', value:'rp_sample',
width: 200, width: 200,
@@ -62,7 +62,7 @@ Ext.onReady(function(){
}, },
{ {
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: 'Drop database if exists', fieldLabel: _('ID_DROP_DATABASE_EXISTS'),
name: 'AO_DB_DROP', name: 'AO_DB_DROP',
id: 'id-active' id: 'id-active'
} }
@@ -70,11 +70,11 @@ Ext.onReady(function(){
}); });
wspaceAdmWS = new Ext.form.FieldSet({ wspaceAdmWS = new Ext.form.FieldSet({
title: 'Workspace Administrator', title: _('ID_WORKSPACE_ADMINISTRATOR'),
items: [ items: [
{ {
id: 'NW_USERNAME', id: 'NW_USERNAME',
fieldLabel: 'Username', fieldLabel: _('ID_USERNAME'),
xtype:'textfield', xtype:'textfield',
value:'admin', value:'admin',
width: 200, width: 200,
@@ -82,7 +82,7 @@ Ext.onReady(function(){
}, },
{ {
id: 'NW_PASSWORD', id: 'NW_PASSWORD',
fieldLabel: 'Password (admin)(Max. length 20):', fieldLabel: _('ID_PASSWORD_ADMIN'),
xtype:'textfield', xtype:'textfield',
inputType:'password', inputType:'password',
value:'admin', value:'admin',
@@ -91,7 +91,7 @@ Ext.onReady(function(){
}, },
{ {
id: 'NW_PASSWORD2', id: 'NW_PASSWORD2',
fieldLabel: 'Re-type Password', fieldLabel: _('ID_PASSWORD_ADMIN_RETYPE'),
xtype:'textfield', xtype:'textfield',
inputType:'password', inputType:'password',
value:'admin', value:'admin',
@@ -126,12 +126,12 @@ Ext.onReady(function(){
], ],
buttons: [ buttons: [
{ {
text: 'reset', text: _('ID_RESET'),
handler: resetfields handler: resetfields
}, },
{ {
text: 'Test', text: _('ID_TEST'),
handler: TestSite handler: TestSite
} }
] ]
@@ -150,7 +150,7 @@ Ext.onReady(function(){
params: { params: {
action : 'test' action : 'test'
}, },
waitMsg : 'new site testing...', waitMsg : _('ID_NEW_SITE_TESTING'),
timeout : 3600, timeout : 3600,
success: function(f,a){ success: function(f,a){
nwTitle =formNewSite.getForm().findField('NW_TITLE').getValue(); nwTitle =formNewSite.getForm().findField('NW_TITLE').getValue();
@@ -167,10 +167,10 @@ Ext.onReady(function(){
}, },
failure: function(f,a){ failure: function(f,a){
if (a.failureType === Ext.form.Action.CONNECT_FAILURE){ 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){ if (a.failureType === Ext.form.Action.SERVER_INVALID){
Ext.Msg.alert('Warning', _('NEW_SITE_NOT_AVAILABLE')); Ext.Msg.alert(_('ID_WARNING'), _('NEW_SITE_NOT_AVAILABLE'));
} }
} }
}); });
@@ -178,7 +178,7 @@ Ext.onReady(function(){
function createNW(nwTitle, aoDbWf, aoDbRb, aoDbRp, nwUsername, nwPassword, nwPassword2){ function createNW(nwTitle, aoDbWf, aoDbRb, aoDbRp, nwUsername, nwPassword, nwPassword2){
PMExt.confirm(_('ID_CONFIRM'), _('NEW_SITE_CONFIRM_TO_CREATE'), function(){ PMExt.confirm(_('ID_CONFIRM'), _('NEW_SITE_CONFIRM_TO_CREATE'), function(){
var loadMask = new Ext.LoadMask(document.body, {msg:'site creating..'}); var loadMask = new Ext.LoadMask(document.body, {msg : _('ID_SITE_CREATING')});
loadMask.show(); loadMask.show();
Ext.Ajax.request({ Ext.Ajax.request({
url: '../newSiteProxy/testingNW', url: '../newSiteProxy/testingNW',
@@ -212,16 +212,8 @@ Ext.onReady(function(){
} }
}, },
failure: function ( result, request) { failure: function ( result, request) {
Ext.MessageBox.alert('Failed', result.responseText); Ext.MessageBox.alert(_('ID_FAILED'), result.responseText);
} }
}); });
}); });
} }