diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-24 12:50:54 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-29 10:09:12 +0100 |
commit | d71cd680dd6133ad254fd296319aeab6deb77686 (patch) | |
tree | 5540046761fb4d14c0142c87b8692011b9e21c65 /core | |
parent | a589d61b78fbfedad8fcf3ee59522b2e95de48ed (diff) | |
download | nextcloud-server-d71cd680dd6133ad254fd296319aeab6deb77686.tar.gz nextcloud-server-d71cd680dd6133ad254fd296319aeab6deb77686.zip |
Include core translations
Moved search result type translations to search.js
Load JS translations earlier
Translations need to be loaded earlier to make sure that some JS files
like search.js get access to translations at this time.
This requires the template initialization to be moved to after session
initialization, because only after the session we have access to the
current language.
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/js/js.js b/core/js/js.js index 7f657f0e945..b1a61ddf502 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -468,15 +468,6 @@ OC.search.customResults={}; OC.search.currentResult=-1; OC.search.lastQuery=''; OC.search.lastResults={}; -//translations for result type ids, can be extended by apps -// FIXME: move to later in the init process, after translations were loaded - -OC.search.resultTypes={ - file: 'File', //t('core','File'), - folder: 'Folder', //t('core','Folder'), - image: 'Image', //t('core','Image'), - audio: 'Audio' //t('core','Audio') -}; OC.addStyle.loaded=[]; OC.addScript.loaded=[]; |