[IMP] Fix some remaining untranslated areas, and extract @title,@alt and @label attributes too
(pending an update of the qweb rendering engine to actually translate the newly exported attributes) bzr revid: odo@openerp.com-20120207092655-kgdcxa8myalxfyjq
This commit is contained in:
parent
4db8d52f74
commit
1b3701ce59
|
@ -1079,9 +1079,10 @@ openerp.web.WebClient = openerp.web.OldWidget.extend(/** @lends openerp.web.WebC
|
|||
self.action_manager = new openerp.web.ActionManager(self);
|
||||
self.action_manager.appendTo($("#oe_app"));
|
||||
self.bind_hashchange();
|
||||
var version_label = _t("OpenERP - Unsupported/Community Version");
|
||||
if (!self.session.openerp_entreprise) {
|
||||
self.$element.find('.oe_footer_powered').append('<span> - <a href="http://www.openerp.com/support-or-publisher-warranty-contract" target="_blank">Unsupported/Community Version</a></span>');
|
||||
document.title = _t("OpenERP - Unsupported/Community Version");
|
||||
self.$element.find('.oe_footer_powered').append(_.str.sprintf('<span> - <a href="http://www.openerp.com/support-or-publisher-warranty-contract" target="_blank">%s</a></span>', version_label));
|
||||
document.title = version_label;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -422,7 +422,7 @@
|
|||
<div class="oe_vm_switch">
|
||||
<t t-if="views.length != 1" t-foreach="views" t-as="view">
|
||||
|
||||
<button type="button" t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="view.view_type">
|
||||
<button type="button" t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="view.label || view.view_type">
|
||||
<span><t t-esc="view.label || view.view_type"/></span>
|
||||
</button>
|
||||
</t>
|
||||
|
|
|
@ -313,7 +313,7 @@ openerp.web_dashboard.ConfigOverview = openerp.web.View.extend({
|
|||
name: record.action_id[1],
|
||||
done: record.state !== 'open',
|
||||
to_do: record.state === 'open',
|
||||
category: record['category_id'][1] || "Uncategorized"
|
||||
category: record['category_id'][1] || _t("Uncategorized")
|
||||
}
|
||||
})
|
||||
.groupBy(function (record) {return record.category})
|
||||
|
|
|
@ -74,6 +74,9 @@ def extract_qweb(fileobj, keywords, comment_tags, options):
|
|||
not ("t-jquery" in el.attrib and "t-operation" not in el.attrib) and \
|
||||
not ("t-translation" in el.attrib and el.attrib["t-translation"].strip() == "off"):
|
||||
handle_text(el.text, el.sourceline)
|
||||
for att in ('title', 'alt', 'label'):
|
||||
if att in el.attrib:
|
||||
handle_text(el.attrib[att], el.sourceline)
|
||||
iter_elements(el)
|
||||
handle_text(el.tail, el.sourceline)
|
||||
|
||||
|
|
Loading…
Reference in New Issue