diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-06 11:28:43 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-06 11:28:43 +0200 |
commit | 7c29645f22eeb686ce7a25c9f8ad97b464d7febb (patch) | |
tree | 9e987d1eece2d0851bec64510b38f2b52e678de7 /core/js | |
parent | 2801f0f2228c571a0bfd9de3684f87e0fe408c57 (diff) | |
download | nextcloud-server-7c29645f22eeb686ce7a25c9f8ad97b464d7febb.tar.gz nextcloud-server-7c29645f22eeb686ce7a25c9f8ad97b464d7febb.zip |
allow apps to add translation for search result typeid
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index b3cefa83bee..03b496b2635 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -585,6 +585,13 @@ OC.search.customResults={}; OC.search.currentResult=-1; OC.search.lastQuery=''; OC.search.lastResults={}; +//translations for result type ids, can be extended by apps +OC.search.resultTypes={ + file: t('core','File'), + folder: t('core','Folder'), + image: t('core','Image'), + audio: t('core','Audio') +}; OC.addStyle.loaded=[]; OC.addScript.loaded=[]; |