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:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -313,9 +313,16 @@ 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";
|
||||
|
||||
$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 . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/locale/ext-lang-" . $aux[0] . ".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 (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
|
||||
|
||||
Reference in New Issue
Block a user