BUG 12570 No existen etiquetas de traduccion para idioma SOLVED

Se agrego etiquetas para los idiomas pt y pt_BR en archivos js para extjs
Se arreglo la llamada a estos archivos segun el idioma actual
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-08-15 10:10:20 -04:00
parent d450cd127d
commit 7726f5cc3c
3 changed files with 27 additions and 3 deletions

View File

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

View File

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

View File

@@ -313,10 +313,17 @@ class headPublisher
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/ext-base.js") . "\"></script>\n";
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/ext-all.js") . "\"></script>\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 . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/locale/ext-lang-" . $tempLang . ".js") . "\"></script>\n";
} else {
$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')) {
if (file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $aux[0] . '.js')) {
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/locale/ext-lang-" . $aux[0] . ".js") . "\"></script>\n";
}
}
}
// enabled for particular use
$head .= $this->getExtJsLibraries();