summaryrefslogtreecommitdiffstats
path: root/core/js/l10n.js
Commit message (Collapse)AuthorAgeFilesLines
* Harden t() with DOMPurifyLukas Reschke2017-03-161-5/+5
| | | | | | This mitigates issues where developers pass untrusted user-input through t() which may lead to XSS issues. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Improved JS L10N bundle merging + testsVincent Petry2016-02-291-3/+1
|
* Allow to overwrite a single language string via the theme folderJoas Schilling2016-02-261-6/+14
|
* Added ext storage mount options GUIVincent Petry2015-03-261-0/+4
| | | | | | | | | | | | Added option to disable autoscan of external storages Mount option file system scan is now an int Move priority field to avoid undefined field in storage options All input elements inside the storage options block get parsed into storage options. Moving the priority field outside prevents it to appear in the storage config, as expected. It is still parsed by special code.
* Autoescape of placeholders in t() and p() - for JSMorris Jobke2015-01-071-10/+28
| | | | | | | * add disableEscape parameter to disable this functionality * drop usage of escapeHTML() that is now done inside t() * add unit test for escaped and not escaped placeholder * proper JSDoc
* Fix l10n promisesVincent Petry2014-11-191-4/+5
|
* Better use of promise in OC.L10N.load()Vincent Petry2014-11-191-13/+8
|
* Remove stray generateUrlVincent Petry2014-11-191-5/+0
|
* Added function to load translations from JSVincent Petry2014-11-181-0/+41
| | | | | | For apps that support async translation loading, a new function OC.L10N.load() can be used to asynchronously load the translations for a given app.
* Added OC.L10N namespace with translation functionsVincent Petry2014-10-291-0/+178
Added addTranslations and fixed de.js file Fixed de.js to use OC.L10N.register() and use to correct expected format. Added JS unit tests for OC.L10N class Include translations JS script for all apps