[2010-12-08 13:26:26] Rev:650 | 2 files Modified
hector: Adjust of labels -------------------------------------------------------------------------------- 1. M /trunk/workflow/engine/methods/setup/appCacheViewConf.php 2. M /trunk/workflow/engine/templates/setup/appCacheViewConf.js
This commit is contained in:
@@ -24,8 +24,15 @@
|
|||||||
$lang = isset($oConf->aConfig['LANG']) ? $oConf->aConfig['LANG'] : 'en';
|
$lang = isset($oConf->aConfig['LANG']) ? $oConf->aConfig['LANG'] : 'en';
|
||||||
|
|
||||||
//$oHeadPublisher->assign('appCacheViewEnabled', $appCacheViewEnabled);
|
//$oHeadPublisher->assign('appCacheViewEnabled', $appCacheViewEnabled);
|
||||||
$TRANSLATIONS->ID_PROCESSING = G::LoadTranslation('ID_PROCESSING');
|
|
||||||
$oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
|
$labels = G::getTranslations(Array(
|
||||||
|
'ID_PROCESSING', 'ID_CACHE_LANGUAGE', 'ID_CACHE_HOST', 'ID_CACHE_USER', 'ID_CACHE_PASSWORD',
|
||||||
|
'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'
|
||||||
|
));
|
||||||
|
$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
||||||
|
// $TRANSLATIONS->ID_PROCESSING = G::LoadTranslation('ID_PROCESSING');
|
||||||
|
// $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
|
||||||
$oHeadPublisher->assign( 'currentLang', $lang); //current language
|
$oHeadPublisher->assign( 'currentLang', $lang); //current language
|
||||||
|
|
||||||
G::RenderPage('publish', 'extJs');
|
G::RenderPage('publish', 'extJs');
|
||||||
@@ -43,7 +43,7 @@ Ext.onReady(function() {
|
|||||||
stripeRows : true,
|
stripeRows : true,
|
||||||
autoHeight : true,
|
autoHeight : true,
|
||||||
width : 400,
|
width : 400,
|
||||||
title : 'Workflow Applications Cache Info',
|
title : TRANSLATIONS.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',
|
||||||
@@ -69,7 +69,7 @@ Ext.onReady(function() {
|
|||||||
var fieldset;
|
var fieldset;
|
||||||
|
|
||||||
var cmbLanguages = new Ext.form.ComboBox({
|
var cmbLanguages = new Ext.form.ComboBox({
|
||||||
fieldLabel : 'Language',
|
fieldLabel : TRANSLATIONS.ID_CACHE_LANGUAGE, // 'Language'
|
||||||
hiddenName : 'lang',
|
hiddenName : 'lang',
|
||||||
store : new Ext.data.Store( {
|
store : new Ext.data.Store( {
|
||||||
proxy : new Ext.data.HttpProxy( {
|
proxy : new Ext.data.HttpProxy( {
|
||||||
@@ -94,7 +94,7 @@ Ext.onReady(function() {
|
|||||||
var txtUser = {
|
var txtUser = {
|
||||||
id : 'txtUser',
|
id : 'txtUser',
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
fieldLabel: 'User',
|
fieldLabel: TRANSLATIONS.ID_CACHE_USER, // 'User',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
name: 'user',
|
name: 'user',
|
||||||
value: ''
|
value: ''
|
||||||
@@ -103,7 +103,7 @@ Ext.onReady(function() {
|
|||||||
var txtHost = {
|
var txtHost = {
|
||||||
id : 'txtHost',
|
id : 'txtHost',
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
fieldLabel: 'Host',
|
fieldLabel: TRANSLATIONS.ID_CACHE_HOST, // 'Host',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
name: 'host',
|
name: 'host',
|
||||||
value: ''
|
value: ''
|
||||||
@@ -113,7 +113,7 @@ Ext.onReady(function() {
|
|||||||
id : 'txtPasswd',
|
id : 'txtPasswd',
|
||||||
inputType: 'password',
|
inputType: 'password',
|
||||||
xtype:'textfield',
|
xtype:'textfield',
|
||||||
fieldLabel: 'Password',
|
fieldLabel: TRANSLATIONS.ID_CACHE_PASSWORD, // 'Password',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
hidden: false,
|
hidden: false,
|
||||||
value: ''
|
value: ''
|
||||||
@@ -121,14 +121,14 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
fieldset = {
|
fieldset = {
|
||||||
xtype : 'fieldset',
|
xtype : 'fieldset',
|
||||||
title : 'Rebuild Workflow Application Cache',
|
title : TRANSLATIONS.ID_CACHE_SUBTITLE_REBUILD, // 'Rebuild Workflow Application Cache',
|
||||||
collapsible : false,
|
collapsible : false,
|
||||||
autoHeight : true,
|
autoHeight : true,
|
||||||
defaults : { width : 170 },
|
defaults : { width : 170 },
|
||||||
defaultType : 'textfield',
|
defaultType : 'textfield',
|
||||||
items : [cmbLanguages],
|
items : [cmbLanguages],
|
||||||
buttons : [{
|
buttons : [{
|
||||||
text : 'Build Cache',
|
text : TRANSLATIONS.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 : TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:400} });
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
@@ -145,7 +145,7 @@ Ext.onReady(function() {
|
|||||||
Ext.Msg.alert ( 'Error', response.responseText );
|
Ext.Msg.alert ( 'Error', response.responseText );
|
||||||
},
|
},
|
||||||
params: {request: 'build', lang: 'en' },
|
params: {request: 'build', lang: 'en' },
|
||||||
waitMsg : 'Building Workflow Application Cache...',
|
waitMsg : TRANSLATIONS.ID_CACHE_BUILDING, // 'Building Workflow Application Cache...',
|
||||||
timeout : 1000*60*30 //30 mins
|
timeout : 1000*60*30 //30 mins
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -155,14 +155,14 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
fieldsetRoot = {
|
fieldsetRoot = {
|
||||||
xtype : 'fieldset',
|
xtype : 'fieldset',
|
||||||
title : 'Setup MySql Root Password',
|
title : TRANSLATIONS.ID_CACHE_SUBTITLE_SETUP_DB, // 'Setup MySql Root Password',
|
||||||
collapsible : false,
|
collapsible : false,
|
||||||
autoHeight : true,
|
autoHeight : true,
|
||||||
defaults : { width : 170 },
|
defaults : { width : 170 },
|
||||||
defaultType : 'textfield',
|
defaultType : 'textfield',
|
||||||
items : [txtHost, txtUser, txtPasswd ],
|
items : [txtHost, txtUser, txtPasswd ],
|
||||||
buttons : [{
|
buttons : [{
|
||||||
text : 'Setup Password',
|
text : TRANSLATIONS.ID_CACHE_BTN_SETUP_PASSWRD, // 'Setup Password',
|
||||||
handler : function() {
|
handler : function() {
|
||||||
Ext.Msg.show ({ msg : TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:400} });
|
Ext.Msg.show ({ msg : TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:400} });
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
|
|||||||
Reference in New Issue
Block a user