Update list_search.js: Change records count format from 'Found: X records' to 'Records: X' for better translation support
This commit is contained in:
parent
715323d88e
commit
be0af980e0
|
|
@ -304,7 +304,7 @@ odoo.define('fims_general_search_tree_view.list_search', function (require) {
|
|||
_updateCustomSearchUI: function(count) {
|
||||
if (this.renderer && this.renderer.$) {
|
||||
this.renderer.$('.oe_search_count')
|
||||
.text(_t('Found: ') + count + _t(' records'))
|
||||
.text(_t('Records: ') + count)
|
||||
.removeClass('text-danger')
|
||||
.show();
|
||||
this.renderer.$('.oe_clear_search').show();
|
||||
|
|
@ -382,7 +382,7 @@ odoo.define('fims_general_search_tree_view.list_search', function (require) {
|
|||
|
||||
if (state.isFiltered && state.filteredCount >= 0) {
|
||||
this.$('.oe_search_count')
|
||||
.text(_t('Found: ') + state.filteredCount + _t(' records'))
|
||||
.text(_t('Records: ') + state.filteredCount)
|
||||
.removeClass('text-danger')
|
||||
.show();
|
||||
}
|
||||
|
|
@ -410,7 +410,7 @@ odoo.define('fims_general_search_tree_view.list_search', function (require) {
|
|||
}
|
||||
|
||||
var countText = isFiltered ?
|
||||
_t('Found: ') + savedCount + _t(' records') : '';
|
||||
_t('Records: ') + savedCount : '';
|
||||
|
||||
var html =
|
||||
'<div class="oe_search_container d-flex align-items-center">' +
|
||||
|
|
|
|||
Loading…
Reference in New Issue