Fix translation again and remove unuser arguments

This commit is contained in:
Matias De lellis
2020-06-16 17:04:49 -03:00
parent c6d7b99974
commit 8c6b0a2392
3 changed files with 15 additions and 12 deletions

View File

@@ -488,10 +488,7 @@ View.prototype = {
if (result === true) {
self._editableShares(newShares, []);
}
},
true,
t('quicknotes', 'Shares'),
false
}
);
});
@@ -524,10 +521,7 @@ View.prototype = {
if (result === true) {
self._editableTags(newTags);
}
},
true,
t('quicknotes', 'Tags'),
false
}
);
});
@@ -1015,10 +1009,19 @@ new OCA.Search(search, function() {
search('');
});
Handlebars.registerHelper('SW', function(user) {
/**
* Add Helpers to handlebars
*/
Handlebars.registerHelper('tSW', function(user) {
return t('quicknotes', 'Shared with {user}', {user: user});
});
Handlebars.registerHelper('tSB', function(user) {
return t('quicknotes', 'Shared by {user}', {user: user});
});
/*
* Create modules