make itemKeys also translatable
This commit is contained in:
parent
df38aad4f7
commit
95b4d33614
2 changed files with 31 additions and 8 deletions
|
|
@ -15,8 +15,10 @@ pandora.ui.filter = function(id) {
|
|||
align: 'left',
|
||||
id: 'name',
|
||||
format: function(value) {
|
||||
var layer = Ox.getObjectById(pandora.site.layers, filter.id);
|
||||
if (layer && layer.translate) {
|
||||
var layer = Ox.getObjectById(pandora.site.layers, filter.id),
|
||||
key = Ox.getObjectById(pandora.site.itemKeys, filter.id);
|
||||
console.log('filter', filter, key, layer)
|
||||
if ((layer && layer.translate) || (key && key.translate)) {
|
||||
value = Ox._(value)
|
||||
}
|
||||
return filter.flag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue