Revert "fix i18n of label group name"

This reverts commit 5a874a4956.
This commit is contained in:
Christoph Scholz 2020-09-28 21:56:45 +02:00 committed by JC Brand
parent 5ea2ccfc17
commit ff5a046922
2 changed files with 6 additions and 6 deletions

View File

@ -545,7 +545,7 @@ converse.plugins.add('converse-rosterview', {
render () {
this.el.setAttribute('data-group', this.model.get('name'));
this.el.innerHTML = tpl_group_header({
'label_group': __(this.model.get('name')),
'label_group': this.model.get('name'),
'desc_group_toggle': this.model.get('description'),
'toggle_state': this.model.get('state'),
'_converse': _converse

View File

@ -38,11 +38,11 @@ converse.plugins.add('converse-roster', {
'rosterInitialized',
]);
_converse.HEADER_CURRENT_CONTACTS = 'My contacts';
_converse.HEADER_PENDING_CONTACTS = 'Pending contacts';
_converse.HEADER_REQUESTING_CONTACTS = 'Contact requests';
_converse.HEADER_UNGROUPED = 'Ungrouped';
_converse.HEADER_UNREAD = 'New messages';
_converse.HEADER_CURRENT_CONTACTS = __('My contacts');
_converse.HEADER_PENDING_CONTACTS = __('Pending contacts');
_converse.HEADER_REQUESTING_CONTACTS = __('Contact requests');
_converse.HEADER_UNGROUPED = __('Ungrouped');
_converse.HEADER_UNREAD = __('New messages');
const HEADER_WEIGHTS = {};
HEADER_WEIGHTS[_converse.HEADER_UNREAD] = 0;