From: Marcel Werk Date: Sun, 23 Aug 2020 23:01:43 +0000 (+0200) Subject: Template plugin for the assignment of language variables in javascript code X-Git-Tag: 5.3.0_Alpha_1~24^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e2e8c155da8b54690190c4d96a87f4c30e64fe78;p=GitHub%2FWoltLab%2FWCF.git Template plugin for the assignment of language variables in javascript code Closes #3530 --- diff --git a/com.woltlab.wcf/templates/__commentJavaScript.tpl b/com.woltlab.wcf/templates/__commentJavaScript.tpl index 3e6d952a8a..aa34a48960 100644 --- a/com.woltlab.wcf/templates/__commentJavaScript.tpl +++ b/com.woltlab.wcf/templates/__commentJavaScript.tpl @@ -1,17 +1,17 @@ diff --git a/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl b/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl index 6501f1538e..d61999dfcd 100644 --- a/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl +++ b/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl @@ -7,7 +7,7 @@ \ No newline at end of file + diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index 0f9968fc49..f4f44b5078 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -375,8 +375,8 @@ \ No newline at end of file + diff --git a/com.woltlab.wcf/templates/groupedUserReactionList.tpl b/com.woltlab.wcf/templates/groupedUserReactionList.tpl index 25a5a5d0c2..e55095362c 100644 --- a/com.woltlab.wcf/templates/groupedUserReactionList.tpl +++ b/com.woltlab.wcf/templates/groupedUserReactionList.tpl @@ -24,13 +24,13 @@ \ No newline at end of file + diff --git a/com.woltlab.wcf/templates/headInclude.tpl b/com.woltlab.wcf/templates/headInclude.tpl index f54caa9768..744e17f52c 100644 --- a/com.woltlab.wcf/templates/headInclude.tpl +++ b/com.woltlab.wcf/templates/headInclude.tpl @@ -14,7 +14,7 @@ {assign var=__imageViewerLoaded value=true} -{/if} \ No newline at end of file +{/if} diff --git a/com.woltlab.wcf/templates/mediaJavaScript.tpl b/com.woltlab.wcf/templates/mediaJavaScript.tpl index 609991a1bf..b9016db077 100644 --- a/com.woltlab.wcf/templates/mediaJavaScript.tpl +++ b/com.woltlab.wcf/templates/mediaJavaScript.tpl @@ -1,28 +1,28 @@ {if $__wcf->session->getPermission('admin.content.cms.canUseMedia')} require(['Language', 'Permission'], function(Language, Permission) { Language.addObject({ - 'wcf.global.button.insert': '{lang}wcf.global.button.insert{/lang}', - 'wcf.media.button.replaceFile': '{lang}wcf.media.button.replaceFile{/lang}', - 'wcf.media.button.select': '{lang}wcf.media.button.select{/lang}', - 'wcf.media.delete.confirmMessage': '{lang __encode=true __literal=true}wcf.media.delete.confirmMessage{/lang}', - 'wcf.media.imageDimensions.value': '{lang __literal=true}wcf.media.imageDimensions.value{/lang}', - 'wcf.media.insert': '{lang}wcf.media.insert{/lang}', - 'wcf.media.insert.imageSize': '{lang}wcf.media.insert.imageSize{/lang}', - 'wcf.media.insert.imageSize.small': '{lang}wcf.media.insert.imageSize.small{/lang}', - 'wcf.media.insert.imageSize.medium': '{lang}wcf.media.insert.imageSize.medium{/lang}', - 'wcf.media.insert.imageSize.large': '{lang}wcf.media.insert.imageSize.large{/lang}', - 'wcf.media.insert.imageSize.original': '{lang}wcf.media.insert.imageSize.original{/lang}', - 'wcf.media.manager': '{lang}wcf.media.manager{/lang}', - 'wcf.media.edit': '{lang}wcf.media.edit{/lang}', - 'wcf.media.button.insert': '{lang}wcf.media.button.insert{/lang}', - 'wcf.media.search.info.searchStringThreshold': '{lang __literal=true}wcf.media.search.info.searchStringThreshold{/lang}', - 'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}', - 'wcf.media.upload.error.differentFileExtension': '{lang}wcf.media.upload.error.differentFileExtension{/lang}', - 'wcf.media.upload.error.differentFileType': '{lang}wcf.media.upload.error.differentFileType{/lang}', - 'wcf.media.upload.error.noImage': '{lang}wcf.media.upload.error.noImage{/lang}', - 'wcf.media.upload.error.uploadFailed': '{lang}wcf.media.upload.error.uploadFailed{/lang}', - 'wcf.media.upload.success': '{lang}wcf.media.upload.success{/lang}', - 'wcf.media.setCategory': '{lang}wcf.media.setCategory{/lang}' + 'wcf.global.button.insert': '{jslang}wcf.global.button.insert{/jslang}', + 'wcf.media.button.replaceFile': '{jslang}wcf.media.button.replaceFile{/jslang}', + 'wcf.media.button.select': '{jslang}wcf.media.button.select{/jslang}', + 'wcf.media.delete.confirmMessage': '{jslang __encode=true __literal=true}wcf.media.delete.confirmMessage{/jslang}', + 'wcf.media.imageDimensions.value': '{jslang __literal=true}wcf.media.imageDimensions.value{/jslang}', + 'wcf.media.insert': '{jslang}wcf.media.insert{/jslang}', + 'wcf.media.insert.imageSize': '{jslang}wcf.media.insert.imageSize{/jslang}', + 'wcf.media.insert.imageSize.small': '{jslang}wcf.media.insert.imageSize.small{/jslang}', + 'wcf.media.insert.imageSize.medium': '{jslang}wcf.media.insert.imageSize.medium{/jslang}', + 'wcf.media.insert.imageSize.large': '{jslang}wcf.media.insert.imageSize.large{/jslang}', + 'wcf.media.insert.imageSize.original': '{jslang}wcf.media.insert.imageSize.original{/jslang}', + 'wcf.media.manager': '{jslang}wcf.media.manager{/jslang}', + 'wcf.media.edit': '{jslang}wcf.media.edit{/jslang}', + 'wcf.media.button.insert': '{jslang}wcf.media.button.insert{/jslang}', + 'wcf.media.search.info.searchStringThreshold': '{jslang __literal=true}wcf.media.search.info.searchStringThreshold{/jslang}', + 'wcf.media.search.noResults': '{jslang}wcf.media.search.noResults{/jslang}', + 'wcf.media.upload.error.differentFileExtension': '{jslang}wcf.media.upload.error.differentFileExtension{/jslang}', + 'wcf.media.upload.error.differentFileType': '{jslang}wcf.media.upload.error.differentFileType{/jslang}', + 'wcf.media.upload.error.noImage': '{jslang}wcf.media.upload.error.noImage{/jslang}', + 'wcf.media.upload.error.uploadFailed': '{jslang}wcf.media.upload.error.uploadFailed{/jslang}', + 'wcf.media.upload.success': '{jslang}wcf.media.upload.success{/jslang}', + 'wcf.media.setCategory': '{jslang}wcf.media.setCategory{/jslang}' }); Permission.add('admin.content.cms.canManageMedia', {if $__wcf->session->getPermission('admin.content.cms.canManageMedia')}true{else}false{/if}); diff --git a/com.woltlab.wcf/templates/membersList.tpl b/com.woltlab.wcf/templates/membersList.tpl index cc0f1a0c6a..9fc6744d36 100644 --- a/com.woltlab.wcf/templates/membersList.tpl +++ b/com.woltlab.wcf/templates/membersList.tpl @@ -133,10 +133,10 @@ \ No newline at end of file + diff --git a/com.woltlab.wcf/templates/moderationActivation.tpl b/com.woltlab.wcf/templates/moderationActivation.tpl index d819d9f673..4c1bd05f0c 100644 --- a/com.woltlab.wcf/templates/moderationActivation.tpl +++ b/com.woltlab.wcf/templates/moderationActivation.tpl @@ -80,13 +80,13 @@ \ No newline at end of file + diff --git a/wcfsetup/install/files/acp/templates/__optionEmailSmtpTest.tpl b/wcfsetup/install/files/acp/templates/__optionEmailSmtpTest.tpl index 6a22dc1a4a..d591f5266a 100644 --- a/wcfsetup/install/files/acp/templates/__optionEmailSmtpTest.tpl +++ b/wcfsetup/install/files/acp/templates/__optionEmailSmtpTest.tpl @@ -2,13 +2,13 @@ diff --git a/wcfsetup/install/files/acp/templates/__wysiwygPreviewFormButton.tpl b/wcfsetup/install/files/acp/templates/__wysiwygPreviewFormButton.tpl index 6501f1538e..d61999dfcd 100644 --- a/wcfsetup/install/files/acp/templates/__wysiwygPreviewFormButton.tpl +++ b/wcfsetup/install/files/acp/templates/__wysiwygPreviewFormButton.tpl @@ -7,7 +7,7 @@ \ No newline at end of file + diff --git a/wcfsetup/install/files/acp/templates/articleAdd.tpl b/wcfsetup/install/files/acp/templates/articleAdd.tpl index e7bec299fb..962ee2d86b 100644 --- a/wcfsetup/install/files/acp/templates/articleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/articleAdd.tpl @@ -52,10 +52,10 @@ {assign var=__imageViewerLoaded value=true} -{/if} \ No newline at end of file +{/if} diff --git a/wcfsetup/install/files/acp/templates/languageItemList.tpl b/wcfsetup/install/files/acp/templates/languageItemList.tpl index f2da135f2d..f037ff9153 100644 --- a/wcfsetup/install/files/acp/templates/languageItemList.tpl +++ b/wcfsetup/install/files/acp/templates/languageItemList.tpl @@ -3,7 +3,7 @@