aboutsummaryrefslogtreecommitdiffstats
path: root/search
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-06 11:28:43 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-06 11:28:43 +0200
commit7c29645f22eeb686ce7a25c9f8ad97b464d7febb (patch)
tree9e987d1eece2d0851bec64510b38f2b52e678de7 /search
parent2801f0f2228c571a0bfd9de3684f87e0fe408c57 (diff)
downloadnextcloud-server-7c29645f22eeb686ce7a25c9f8ad97b464d7febb.tar.gz
nextcloud-server-7c29645f22eeb686ce7a25c9f8ad97b464d7febb.zip
allow apps to add translation for search result typeid
Diffstat (limited to 'search')
-rw-r--r--search/js/result.js2
1 files changed, 1 insertions, 1 deletions
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);