Commit | Line | Data |
---|---|---|
56eb7314 MS |
1 | {if $__wcf->session->getPermission('admin.content.cms.canUseMedia')} |
2 | require(['Language', 'Permission'], function(Language, Permission) { | |
3 | Language.addObject({ | |
e2e8c155 MW |
4 | 'wcf.global.button.insert': '{jslang}wcf.global.button.insert{/jslang}', |
5 | 'wcf.media.button.replaceFile': '{jslang}wcf.media.button.replaceFile{/jslang}', | |
6 | 'wcf.media.button.select': '{jslang}wcf.media.button.select{/jslang}', | |
7 | 'wcf.media.delete.confirmMessage': '{jslang __encode=true __literal=true}wcf.media.delete.confirmMessage{/jslang}', | |
e2e8c155 MW |
8 | 'wcf.media.insert': '{jslang}wcf.media.insert{/jslang}', |
9 | 'wcf.media.insert.imageSize': '{jslang}wcf.media.insert.imageSize{/jslang}', | |
10 | 'wcf.media.insert.imageSize.small': '{jslang}wcf.media.insert.imageSize.small{/jslang}', | |
11 | 'wcf.media.insert.imageSize.medium': '{jslang}wcf.media.insert.imageSize.medium{/jslang}', | |
12 | 'wcf.media.insert.imageSize.large': '{jslang}wcf.media.insert.imageSize.large{/jslang}', | |
13 | 'wcf.media.insert.imageSize.original': '{jslang}wcf.media.insert.imageSize.original{/jslang}', | |
14 | 'wcf.media.manager': '{jslang}wcf.media.manager{/jslang}', | |
15 | 'wcf.media.edit': '{jslang}wcf.media.edit{/jslang}', | |
16 | 'wcf.media.button.insert': '{jslang}wcf.media.button.insert{/jslang}', | |
17 | 'wcf.media.search.info.searchStringThreshold': '{jslang __literal=true}wcf.media.search.info.searchStringThreshold{/jslang}', | |
18 | 'wcf.media.search.noResults': '{jslang}wcf.media.search.noResults{/jslang}', | |
19 | 'wcf.media.upload.error.differentFileExtension': '{jslang}wcf.media.upload.error.differentFileExtension{/jslang}', | |
20 | 'wcf.media.upload.error.differentFileType': '{jslang}wcf.media.upload.error.differentFileType{/jslang}', | |
21 | 'wcf.media.upload.error.noImage': '{jslang}wcf.media.upload.error.noImage{/jslang}', | |
22 | 'wcf.media.upload.error.uploadFailed': '{jslang}wcf.media.upload.error.uploadFailed{/jslang}', | |
23 | 'wcf.media.upload.success': '{jslang}wcf.media.upload.success{/jslang}', | |
24 | 'wcf.media.setCategory': '{jslang}wcf.media.setCategory{/jslang}' | |
56eb7314 MS |
25 | }); |
26 | ||
27 | Permission.add('admin.content.cms.canManageMedia', {if $__wcf->session->getPermission('admin.content.cms.canManageMedia')}true{else}false{/if}); | |
28 | }); | |
29 | {/if} |