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->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;

View File

@@ -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;

View File

@@ -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

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'
));
$oHeadPublisher->assign('TRANSLATIONS', $labels);
//$oHeadPublisher->assign('TRANSLATIONS', $labels);
G::RenderPage('publish', 'extJs');

View File

@@ -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'));
}
}
},

View File

@@ -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 '<font color="green">' + _('ID_ACTIVE') + '</font>'; break;
case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>';; break;
case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>';; break;
case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>'; break;
case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>'; break;
}
};

View File

@@ -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
}
}
]

View File

@@ -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
}
]

View File

@@ -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
}
]

View File

@@ -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') );
}
}
});

View File

@@ -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("<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){
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){
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){
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 ) {
@@ -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'] + "<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){
message = message + "<br> Total Cases Reassigned: " + ajaxServerResponse['TOTAL'];
message = message + "<br> " + _('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} ' + ' &nbsp; ' ,
displayMsg: TRANSLATIONS.ID_DISPLAY_ITEMS + ' &nbsp; ',
emptyMsg: TRANSLATIONS.ID_DISPLAY_EMPTY
displayMsg: _('ID_DISPLAY_ITEMS') + ' &nbsp; ',
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',

View File

@@ -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';
}

View File

@@ -207,10 +207,10 @@ Ext.onReady(function(){
pageSize: pageSize,
store: store,
displayInfo: true,
//displayMsg: _('ID_GRID_PAGE_DISPLAYING_DASHLET_MESSAGE') + '&nbsp; &nbsp; ',
displayMsg: 'Displaying dashlets instances {0} - {1} of {2}' + '&nbsp; &nbsp; ',
//emptyMsg: _('ID_GRID_PAGE_NO_DASHLET_MESSAGE'),
emptyMsg: 'No dashlets instances to display',
displayMsg: _('ID_GRID_PAGE_DISPLAYING_DASHLET_MESSAGE') + '&nbsp; &nbsp; ',
//displayMsg: 'Displaying dashlets instances {0} - {1} of {2}' + '&nbsp; &nbsp; ',
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();

View File

@@ -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];
//}

View File

@@ -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');

View File

@@ -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. <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 ;
}
@@ -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;
}

View File

@@ -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();
}

View File

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

View File

@@ -451,7 +451,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_NO_EXIST'));
}
} else {
comboDbConnections.setValue('rp');
@@ -497,7 +497,7 @@ Ext.onReady(function(){
comboGridsList.setRawValue(this.getAt(i).data.FIELD_NAME);
comboGridsList.setDisabled(true);
} 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);
} 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);
@@ -676,7 +676,7 @@ Ext.onReady(function(){
region: 'north',
labelWidth: 120,
labelAlign:'right',
title: 'New Report Table',
title: _('ID_NEW_REPORT_TABLE'),
bodyStyle:'padding:10px',
waitMsgTarget : true,
frame: true,
@@ -749,7 +749,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;
@@ -760,7 +760,7 @@ function createReportTable()
//validate columns count
if(allRows.getCount() == 0) {
PMExt.error(_('ID_ERROR'), 'Set columns for this Report Table please.');
PMExt.error(_('ID_ERROR'), _('ID_PMTABLES_ALERT7'));
return false;
}
@@ -1071,7 +1071,7 @@ SaveFieldsReportTable = function(arr_avail, function_success, function_failure){
//REMOVE GROUPS FROM A USER
DeleteFieldsReportTable = function(arr_asign, function_success, function_failure){
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({
url: 'reportTables_Ajax',

View File

@@ -361,7 +361,7 @@ Ext.onReady(function(){
var rowsSelected = Ext.getCmp('infoGrid').getSelectionModel().getSelections();
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) {
externalOption.setText(text);
}

View File

@@ -38,7 +38,7 @@ Ext.onReady(function() {
stripeRows : true,
autoHeight : true,
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
stateful : true,
stateId : 'grid',
@@ -59,9 +59,9 @@ Ext.onReady(function() {
width : 400,
items : [ ],
buttons : [{
text : TRANSLATIONS.ID_CACHE_BTN_BUILD, // 'Build Cache',
text : _('ID_CACHE_BTN_BUILD'), // 'Build Cache',
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({
url: 'appCacheViewAjax',
success: function(response) {
@@ -73,10 +73,10 @@ Ext.onReady(function() {
},
failure : function(response) {
Ext.Msg.hide();
Ext.Msg.alert ( 'Error', response.responseText );
Ext.Msg.alert ( _('ID_ERROR'), response.responseText );
},
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
});
}
@@ -86,7 +86,7 @@ Ext.onReady(function() {
var txtUser = {
id : 'txtUser',
xtype: 'textfield',
fieldLabel: TRANSLATIONS.ID_CACHE_USER, // 'User',
fieldLabel: _('ID_CACHE_USER'), // 'User',
disabled: false,
name: 'user',
allowBlank: false
@@ -95,7 +95,7 @@ Ext.onReady(function() {
var txtHost = {
id : 'txtHost',
xtype: 'textfield',
fieldLabel: TRANSLATIONS.ID_CACHE_HOST, // 'Host',
fieldLabel: _('ID_CACHE_HOST'), // 'Host',
disabled: false,
name: 'host',
allowBlank: false
@@ -105,7 +105,7 @@ Ext.onReady(function() {
id : 'txtPasswd',
inputType: 'password',
xtype:'textfield',
fieldLabel: TRANSLATIONS.ID_CACHE_PASSWORD, // 'Password',
fieldLabel: _('ID_CACHE_PASSWORD'), // 'Password',
disabled: false,
hidden: false,
value: ''
@@ -113,7 +113,7 @@ Ext.onReady(function() {
fieldsetRoot = {
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,
collapsed: true,
autoHeight : true,
@@ -121,13 +121,13 @@ Ext.onReady(function() {
defaultType : 'textfield',
items : [txtHost, txtUser, txtPasswd ],
buttons : [{
text : TRANSLATIONS.ID_CACHE_BTN_SETUP_PASSWRD, // 'Setup Password',
text : _('ID_CACHE_BTN_SETUP_PASSWRD'), // 'Setup Password',
handler : function() {
if (!fsf.getForm().isValid()) {
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({
url: 'appCacheViewAjax',
success: function(response) {
@@ -137,7 +137,7 @@ Ext.onReady(function() {
},
failure : function(response) {
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() },
// timeout : 1000
@@ -158,11 +158,11 @@ Ext.onReady(function() {
myData = Ext.decode ( response.responseText );
store.loadData(myData);
if ( myData.error ) {
Warning( 'error', myData.errorMsg );
Warning( _('ID_ERROR'), myData.errorMsg );
}
},
failure : function(response) {
Ext.Msg.alert ( 'Error', response.responseText );
Ext.Msg.alert ( _('ID_ERROR'), response.responseText );
},
params: {request: 'info' }
});

View File

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

View File

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