From 7c29645f22eeb686ce7a25c9f8ad97b464d7febb Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Fri, 6 Jun 2014 11:28:43 +0200 Subject: allow apps to add translation for search result typeid --- search/js/result.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'search') diff --git a/search/js/result.js b/search/js/result.js index b300f90f4c2..04e999c62ee 100644 --- a/search/js/result.js +++ b/search/js/result.js @@ -64,7 +64,7 @@ OC.search.showResults=function(results){ row.data('index',index); if (i === 0){ - var typeName = typeid.charAt(0).toUpperCase() + typeid.slice(1); + var typeName = OC.search.resultTypes[typeid]; row.children('td.type').text(t('lib', typeName)); } row.find('td.result div.name').text(type[i].name); -- cgit v1.2.3