},
on_add_node: function(properties, fields){
var self = this;
-- var render_list = [{'name': 'node_type','selection': _.keys(_CHILDREN).sort(), 'value': 'field', 'string': 'Node Type','type': 'selection'},
++ var render_list = [{'name': 'node_type','selection': _.keys(_CHILDREN).sort(), 'value': 'field', 'string': _t('Node Type'),'type': 'selection'},
{'name': 'field_value','selection': fields, 'value': false, 'string': '','type': 'selection'},
-- {'name': 'position','selection': ['After','Before','Inside'], 'value': false, 'string': 'Position','type': 'selection'}];
++ {'name': 'position','selection': ['After','Before','Inside'], 'value': false, 'string': _t('Position'),'type': 'selection'}];
this.add_widget = [];
this.add_node_dialog = new openerp.web.Dialog(this,{
title: _t("Properties"),
_.str.sprintf("<%s> </%s>",values.node_type,values.node_type);
self.do_save_update_arch("add_node", [tag, values.position]);
} else {
-- alert("Can't Update View");
++ alert(_t("Can't Update View"));
}
}},
{text: _t("Cancel"), click: function() { self.add_node_dialog.close(); }}
} else {
table_selector.append('<td align="right">' + node.string + '</td>' + type_widget.render() );
if (node.name == "field_value") {
-- table_selector.append('<td id="new_field" align="right" width="100px"> <button>New Field</button></td>');
++ table_selector.append('<td id="new_field" align="right" width="100px"> <button>' + _t("New Field") + '</button></td>');
}
}
type_widget.start();