diff --git a/gulliver/js/ext/locale/ext-lang-pt.js b/gulliver/js/ext/locale/ext-lang-pt.js index cec535d73..5efe02270 100644 --- a/gulliver/js/ext/locale/ext-lang-pt.js +++ b/gulliver/js/ext/locale/ext-lang-pt.js @@ -245,6 +245,15 @@ if(Ext.grid.GridView){ }); } + +if(Ext.grid.GroupingView){ + Ext.apply(Ext.grid.GroupingView.prototype, { + emptyGroupText : '(Nenhum)', + groupByText : 'Grupo por este campo', + showGroupsText : 'Mostrar em Grupos' + }); +} + if(Ext.grid.PropertyColumnModel){ Ext.apply(Ext.grid.PropertyColumnModel.prototype, { nameText : "Nome", @@ -258,6 +267,8 @@ if (Ext.ux.grid.RowEditor) { Ext.ux.grid.RowEditor.prototype.cancelBtnText = "Cancelar"; Ext.ux.grid.RowEditor.prototype.saveText = "Salvar"; Ext.ux.grid.RowEditor.prototype.cancelText = "Cancelar"; + Ext.ux.grid.RowEditor.prototype.errorText = "Erros"; + Ext.ux.grid.RowEditor.prototype.commitChangesText = "Você precisa atualizar ou cancelar suas alterações"; } if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ diff --git a/gulliver/js/ext/locale/ext-lang-pt_BR.js b/gulliver/js/ext/locale/ext-lang-pt_BR.js index 03c6b1553..80d2c6b63 100644 --- a/gulliver/js/ext/locale/ext-lang-pt_BR.js +++ b/gulliver/js/ext/locale/ext-lang-pt_BR.js @@ -287,6 +287,14 @@ if(Ext.grid.GridView){ }); } +if(Ext.grid.GroupingView){ + Ext.apply(Ext.grid.GroupingView.prototype, { + emptyGroupText : '(Nenhum)', + groupByText : 'Grupo por este campo', + showGroupsText : 'Mostrar em Grupos' + }); +} + if(Ext.grid.PropertyColumnModel){ Ext.apply(Ext.grid.PropertyColumnModel.prototype, { nameText : "Nome", @@ -300,6 +308,8 @@ if (Ext.ux.grid.RowEditor) { Ext.ux.grid.RowEditor.prototype.cancelBtnText = "Cancelar"; Ext.ux.grid.RowEditor.prototype.saveText = "Salvar"; Ext.ux.grid.RowEditor.prototype.cancelText = "Cancelar"; + Ext.ux.grid.RowEditor.prototype.errorText = "Erros"; + Ext.ux.grid.RowEditor.prototype.commitChangesText = "Você precisa atualizar ou cancelar suas alterações"; } if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ diff --git a/gulliver/system/class.headPublisher.php b/gulliver/system/class.headPublisher.php index f1c1f4191..3161166d7 100644 --- a/gulliver/system/class.headPublisher.php +++ b/gulliver/system/class.headPublisher.php @@ -313,9 +313,16 @@ class headPublisher $head = $head . " \n"; $head = $head . " \n"; - $aux = explode('-', strtolower(SYS_LANG)); - if (($aux[0] != 'en') && file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $aux[0] . '.js')) { - $head = $head . " \n"; + if (SYS_LANG != 'en') { + $tempLang = str_replace('-', '_', SYS_LANG); + if (file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $tempLang . '.js')) { + $head = $head . " \n"; + } else { + $aux = explode('-', strtolower(SYS_LANG)); + if (file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $aux[0] . '.js')) { + $head = $head . " \n"; + } + } } // enabled for particular use diff --git a/workflow/engine/methods/authSources/authSources_SearchUsers.php b/workflow/engine/methods/authSources/authSources_SearchUsers.php index a5956290e..e6e5a6d19 100755 --- a/workflow/engine/methods/authSources/authSources_SearchUsers.php +++ b/workflow/engine/methods/authSources/authSources_SearchUsers.php @@ -50,6 +50,26 @@ if (file_exists( PATH_PLUGINS . $fields['AUTH_SOURCE_PROVIDER'] . PATH_SEP . $fi if ($pluginEnabled == 0) { $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_AUTH_SOURCE_MISSING' ) ) ); G::RenderPage( 'publish', 'blank' ); + } else { + G::LoadClass('configuration'); + $c = new Configurations(); + $configPage = $c->getConfiguration('additionalTablesList', 'pageSize','',$_SESSION['USER_LOGGED']); + $Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20; + + $oHeadPublisher = & headPublisher::getSingleton (); + + $oHeadPublisher->assign("FORMATS", $c->getFormats()); + $oHeadPublisher->assign("CONFIG", $Config); + + if (file_exists(PATH_PLUGINS . $fields["AUTH_SOURCE_PROVIDER"] . PATH_SEP . $fields["AUTH_SOURCE_PROVIDER"] . 'Flag')) { + $oHeadPublisher = & headPublisher::getSingleton (); + + $oHeadPublisher->assign("Fields", $fields); + $oHeadPublisher->addExtJsScript (PATH_PLUGINS . $fields["AUTH_SOURCE_PROVIDER"] . PATH_SEP . 'js' . PATH_SEP . 'library', false, true ); + $oHeadPublisher->addExtJsScript (PATH_PLUGINS . $fields["AUTH_SOURCE_PROVIDER"] . PATH_SEP . 'js' . PATH_SEP . 'ldapAdvancedSearch', false, true ); + G::RenderPage ('publish', 'extJs'); + die(); + } } } diff --git a/workflow/engine/templates/pmTables/editReport.js b/workflow/engine/templates/pmTables/editReport.js index e284b12e0..3da3523d4 100755 --- a/workflow/engine/templates/pmTables/editReport.js +++ b/workflow/engine/templates/pmTables/editReport.js @@ -1218,7 +1218,7 @@ loadFieldNormal = function(){ }); var assignedGridGotData = Ext.getCmp('assignedGrid').getStore().getCount() > 0; if(assignedGridGotData) { - Ext.MessageBox.confirm('Confirm', 'The row data that you recently created will be deleted?', function(button) { + Ext.MessageBox.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_ASSIGNED_GRID'), function(button) { if(button=='yes'){ Ext.getCmp('assignedGrid').store.removeAll(); }