From 5eaff19db8856f99717bc6b112ba0434d1119431 Mon Sep 17 00:00:00 2001 From: Garry Yeatman Date: Fri, 12 May 2023 14:37:11 +1000 Subject: [PATCH 1/3] Adds Folder ID for TinyMCE_sslink-file to allow us to target a specific folder when user clicks on tinymce link to file: --- client/dist/js/TinyMCE_sslink-file.js | 2 +- client/src/entwine/TinyMCE_sslink-file.js | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/client/dist/js/TinyMCE_sslink-file.js b/client/dist/js/TinyMCE_sslink-file.js index 21ca617a2..64dd7407e 100644 --- a/client/dist/js/TinyMCE_sslink-file.js +++ b/client/dist/js/TinyMCE_sslink-file.js @@ -1 +1 @@ -!function(e){function o(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,o),s.l=!0,s.exports}var t={};o.m=e,o.c=t,o.i=function(e){return e},o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},o.p="",o(o.s="./client/src/entwine/TinyMCE_sslink-file.js")}({"./client/src/entwine/TinyMCE_sslink-file.js":function(e,o,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0});var s=t(2),r=n(s),a=t(30),d=n(a),l=t(0),i=n(l),u=t(6),_=n(u),c=t(7),h=n(c),f=t(10),p=n(f),m=t(12),j=n(m),v=t(3),y=n(v),g=t("./client/src/state/modal/ModalActions.js"),b=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(g);d.default.addAction("sslink",{text:r.default._t("AssetAdmin.LINKLABEL_FILE","Link to a file"),onclick:function(e){return e.execCommand("sslinkfile")},priority:80},editorIdentifier).addCommandWithUrlTest("sslinkfile",/^\[file_link/);var S={init:function(e){e.addCommand("sslinkfile",function(){(0,h.default)("#"+e.id).entwine("ss").openLinkFileDialog()})}},x="insert-link__dialog-wrapper--file",C=(0,v.loadComponent)(j.default);h.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkFileDialog:function(){var o=e("#"+x);o.length||(o=e('
'),e("body").append(o)),o.addClass("insert-link__dialog-wrapper"),o.setElement(this),o.open()}}),e(".js-injector-boot #"+x).entwine({renderModal:function(e){var o=this,t=y.default.reducer.store.dispatch;t(b.initFormStack("insert-link","admin"));var n=function(){t(b.reset()),o.close()},s=function(){return o.handleInsert.apply(o,arguments)},r=this.getOriginalAttributes(),a=tinymce.activeEditor.selection,d=a.getContent()||"",l=a.getNode().tagName,u="A"!==l&&""===d.trim();_.default.render(i.default.createElement(C,{isOpen:e,type:"insert-link",onInsert:s,onClosed:n,title:!1,bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--internal",fileAttributes:r,requireLinkText:u}),this[0])},buildAttributes:function(e){return{href:p.default.serialise({name:"file_link",properties:{id:e.ID}},!0)+(e.Anchor&&e.Anchor.length?"#"+e.Anchor:""),target:e.TargetBlank?"_blank":"",title:e.Description}},getOriginalAttributes:function(){var o=this.getElement().getEditor(),t=e(o.getSelectedNode()),n=(t.attr("href")||"").split("#");if(!n[0])return{};var s=p.default.match("file_link",!1,n[0]);return s?{ID:s.properties.id?parseInt(s.properties.id,10):0,Anchor:n[1]||"",Description:t.attr("title"),TargetBlank:!!t.attr("target")}:{}}})}),tinymce.PluginManager.add("sslinkfile",function(e){return S.init(e)}),o.default=S},"./client/src/state/modal/ModalActionTypes.js":function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default={DEFINE_IMAGE_SIZE_PRESETS:"DEFINE_IMAGE_SIZE_PRESETS",INIT_FORM_SCHEMA_STACK:"INIT_FORM_SCHEMA_STACK",POP_FORM_SCHEMA:"POP_FORM_SCHEMA",PUSH_FORM_SCHEMA:"PUSH_FORM_SCHEMA",RESET:"RESET",RESET_FORM_STACK:"RESET_FORM_STACK"}},"./client/src/state/modal/ModalActions.js":function(e,o,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function s(e){return{type:c.default.DEFINE_IMAGE_SIZE_PRESETS,payload:{imageSizePresets:e}}}function r(e,o){return function(t,n){var s=n(),r=(0,f.default)(s.form.formState,e+".values"),a=(0,f.default)(s.form.formSchemas,o+".schema.fields");if(r){var d=Object.keys(r).filter(function(e){return null!==r[e]&&(0,j.default)(e,a)}).map(function(e){return{name:e,value:r[e]}});t((0,p.setSchemaStateOverrides)(o,{fields:d}))}}}function a(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return{type:c.default.PUSH_FORM_SCHEMA,payload:{formSchema:{type:e,nextType:o}}}}function d(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return{type:c.default.INIT_FORM_SCHEMA_STACK,payload:{formSchema:{type:e,nextType:o}}}}function l(){return{type:c.default.POP_FORM_SCHEMA}}function i(){return{type:c.default.RESET}}function u(){return{type:c.default.RESET_FORM_STACK}}Object.defineProperty(o,"__esModule",{value:!0}),o.defineImageSizePresets=s,o.stashFormValues=r,o.pushFormStackEntry=a,o.initFormStack=d,o.popFormStackEntry=l,o.reset=i,o.resetFormStack=u;var _=t("./client/src/state/modal/ModalActionTypes.js"),c=n(_),h=t("./node_modules/redux-form/lib/structure/plain/getIn.js"),f=n(h),p=t(8),m=t("./client/src/state/modal/helpers.js"),j=n(m)},"./client/src/state/modal/helpers.js":function(e,o,t){"use strict";function n(e,o){var t=void 0;for(t=0;t-1}var s=t("./node_modules/lodash/_assocIndexOf.js");e.exports=n},"./node_modules/lodash/_listCacheSet.js":function(e,o,t){function n(e,o){var t=this.__data__,n=s(t,e);return n<0?(++this.size,t.push([e,o])):t[n][1]=o,this}var s=t("./node_modules/lodash/_assocIndexOf.js");e.exports=n},"./node_modules/lodash/_mapCacheClear.js":function(e,o,t){function n(){this.size=0,this.__data__={hash:new s,map:new(a||r),string:new s}}var s=t("./node_modules/lodash/_Hash.js"),r=t("./node_modules/lodash/_ListCache.js"),a=t("./node_modules/lodash/_Map.js");e.exports=n},"./node_modules/lodash/_mapCacheDelete.js":function(e,o,t){function n(e){var o=s(this,e).delete(e);return this.size-=o?1:0,o}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_mapCacheGet.js":function(e,o,t){function n(e){return s(this,e).get(e)}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_mapCacheHas.js":function(e,o,t){function n(e){return s(this,e).has(e)}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_mapCacheSet.js":function(e,o,t){function n(e,o){var t=s(this,e),n=t.size;return t.set(e,o),this.size+=t.size==n?0:1,this}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_memoizeCapped.js":function(e,o,t){function n(e){var o=s(e,function(e){return t.size===r&&t.clear(),e}),t=o.cache;return o}var s=t("./node_modules/lodash/memoize.js"),r=500;e.exports=n},"./node_modules/lodash/_nativeCreate.js":function(e,o,t){var n=t("./node_modules/lodash/_getNative.js"),s=n(Object,"create");e.exports=s},"./node_modules/lodash/_objectToString.js":function(e,o){function t(e){return s.call(e)}var n=Object.prototype,s=n.toString;e.exports=t},"./node_modules/lodash/_root.js":function(e,o,t){var n=t("./node_modules/lodash/_freeGlobal.js"),s="object"==typeof self&&self&&self.Object===Object&&self,r=n||s||Function("return this")();e.exports=r},"./node_modules/lodash/_stringToPath.js":function(e,o,t){var n=t("./node_modules/lodash/_memoizeCapped.js"),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=n(function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(s,function(e,t,n,s){o.push(n?s.replace(r,"$1"):t||e)}),o});e.exports=a},"./node_modules/lodash/_toKey.js":function(e,o,t){function n(e){if("string"==typeof e||s(e))return e;var o=e+"";return"0"==o&&1/e==-r?"-0":o}var s=t("./node_modules/lodash/isSymbol.js"),r=1/0;e.exports=n},"./node_modules/lodash/_toSource.js":function(e,o){function t(e){if(null!=e){try{return s.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var n=Function.prototype,s=n.toString;e.exports=t},"./node_modules/lodash/eq.js":function(e,o){function t(e,o){return e===o||e!==e&&o!==o}e.exports=t},"./node_modules/lodash/isArray.js":function(e,o){var t=Array.isArray;e.exports=t},"./node_modules/lodash/isFunction.js":function(e,o,t){function n(e){if(!r(e))return!1;var o=s(e);return o==d||o==l||o==a||o==i}var s=t("./node_modules/lodash/_baseGetTag.js"),r=t("./node_modules/lodash/isObject.js"),a="[object AsyncFunction]",d="[object Function]",l="[object GeneratorFunction]",i="[object Proxy]";e.exports=n},"./node_modules/lodash/isObject.js":function(e,o){function t(e){var o=typeof e;return null!=e&&("object"==o||"function"==o)}e.exports=t},"./node_modules/lodash/isObjectLike.js":function(e,o){function t(e){return null!=e&&"object"==typeof e}e.exports=t},"./node_modules/lodash/isSymbol.js":function(e,o,t){function n(e){return"symbol"==typeof e||r(e)&&s(e)==a}var s=t("./node_modules/lodash/_baseGetTag.js"),r=t("./node_modules/lodash/isObjectLike.js"),a="[object Symbol]";e.exports=n},"./node_modules/lodash/memoize.js":function(e,o,t){function n(e,o){if("function"!=typeof e||null!=o&&"function"!=typeof o)throw new TypeError(r);var t=function(){var n=arguments,s=o?o.apply(this,n):n[0],r=t.cache;if(r.has(s))return r.get(s);var a=e.apply(this,n);return t.cache=r.set(s,a)||r,a};return t.cache=new(n.Cache||s),t}var s=t("./node_modules/lodash/_MapCache.js"),r="Expected a function";n.Cache=s,e.exports=n},"./node_modules/lodash/toPath.js":function(e,o,t){function n(e){return a(e)?s(e,i):d(e)?[e]:r(l(u(e)))}var s=t("./node_modules/lodash/_arrayMap.js"),r=t("./node_modules/lodash/_copyArray.js"),a=t("./node_modules/lodash/isArray.js"),d=t("./node_modules/lodash/isSymbol.js"),l=t("./node_modules/lodash/_stringToPath.js"),i=t("./node_modules/lodash/_toKey.js"),u=t("./node_modules/lodash/toString.js");e.exports=n},"./node_modules/lodash/toString.js":function(e,o,t){function n(e){return null==e?"":s(e)}var s=t("./node_modules/lodash/_baseToString.js");e.exports=n},"./node_modules/redux-form/lib/structure/plain/getIn.js":function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=t("./node_modules/lodash/toPath.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(n),r=function(e,o){if(!e)return e;var t=(0,s.default)(o),n=t.length;if(n){for(var r=e,a=0;a'),e("body").append(o)),o.addClass("insert-link__dialog-wrapper"),o.setElement(this),o.open()}}),e(".js-injector-boot #"+x).entwine({renderModal:function(e){var o=this,t=y.default.reducer.store.dispatch;t(b.initFormStack("insert-link","admin"));var n=function(){t(b.reset()),o.close()},s=function(){return o.handleInsert.apply(o,arguments)},r=this.getOriginalAttributes(),a=tinymce.activeEditor.selection,d=this.getFolderId(),l=a.getContent()||"",u=a.getNode().tagName,c="A"!==u&&""===l.trim();_.default.render(i.default.createElement(C,{isOpen:e,type:"insert-link",folderId:d,onInsert:s,onClosed:n,title:!1,bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--internal",fileAttributes:r,requireLinkText:c}),this[0])},buildAttributes:function(e){return{href:p.default.serialise({name:"file_link",properties:{id:e.ID}},!0)+(e.Anchor&&e.Anchor.length?"#"+e.Anchor:""),target:e.TargetBlank?"_blank":"",title:e.Description}},getFolderId:function(){var e=this.getElement();if(!e)return null;var o=Number(e.data("config").upload_folder_id);return isNaN(o)?null:o},getOriginalAttributes:function(){var o=this.getElement().getEditor(),t=e(o.getSelectedNode()),n=(t.attr("href")||"").split("#");if(!n[0])return{};var s=p.default.match("file_link",!1,n[0]);return s?{ID:s.properties.id?parseInt(s.properties.id,10):0,Anchor:n[1]||"",Description:t.attr("title"),TargetBlank:!!t.attr("target")}:{}}})}),tinymce.PluginManager.add("sslinkfile",function(e){return S.init(e)}),o.default=S},"./client/src/state/modal/ModalActionTypes.js":function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default={DEFINE_IMAGE_SIZE_PRESETS:"DEFINE_IMAGE_SIZE_PRESETS",INIT_FORM_SCHEMA_STACK:"INIT_FORM_SCHEMA_STACK",POP_FORM_SCHEMA:"POP_FORM_SCHEMA",PUSH_FORM_SCHEMA:"PUSH_FORM_SCHEMA",RESET:"RESET",RESET_FORM_STACK:"RESET_FORM_STACK"}},"./client/src/state/modal/ModalActions.js":function(e,o,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function s(e){return{type:c.default.DEFINE_IMAGE_SIZE_PRESETS,payload:{imageSizePresets:e}}}function r(e,o){return function(t,n){var s=n(),r=(0,f.default)(s.form.formState,e+".values"),a=(0,f.default)(s.form.formSchemas,o+".schema.fields");if(r){var d=Object.keys(r).filter(function(e){return null!==r[e]&&(0,j.default)(e,a)}).map(function(e){return{name:e,value:r[e]}});t((0,p.setSchemaStateOverrides)(o,{fields:d}))}}}function a(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return{type:c.default.PUSH_FORM_SCHEMA,payload:{formSchema:{type:e,nextType:o}}}}function d(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return{type:c.default.INIT_FORM_SCHEMA_STACK,payload:{formSchema:{type:e,nextType:o}}}}function l(){return{type:c.default.POP_FORM_SCHEMA}}function i(){return{type:c.default.RESET}}function u(){return{type:c.default.RESET_FORM_STACK}}Object.defineProperty(o,"__esModule",{value:!0}),o.defineImageSizePresets=s,o.stashFormValues=r,o.pushFormStackEntry=a,o.initFormStack=d,o.popFormStackEntry=l,o.reset=i,o.resetFormStack=u;var _=t("./client/src/state/modal/ModalActionTypes.js"),c=n(_),h=t("./node_modules/redux-form/lib/structure/plain/getIn.js"),f=n(h),p=t(8),m=t("./client/src/state/modal/helpers.js"),j=n(m)},"./client/src/state/modal/helpers.js":function(e,o,t){"use strict";function n(e,o){var t=void 0;for(t=0;t-1}var s=t("./node_modules/lodash/_assocIndexOf.js");e.exports=n},"./node_modules/lodash/_listCacheSet.js":function(e,o,t){function n(e,o){var t=this.__data__,n=s(t,e);return n<0?(++this.size,t.push([e,o])):t[n][1]=o,this}var s=t("./node_modules/lodash/_assocIndexOf.js");e.exports=n},"./node_modules/lodash/_mapCacheClear.js":function(e,o,t){function n(){this.size=0,this.__data__={hash:new s,map:new(a||r),string:new s}}var s=t("./node_modules/lodash/_Hash.js"),r=t("./node_modules/lodash/_ListCache.js"),a=t("./node_modules/lodash/_Map.js");e.exports=n},"./node_modules/lodash/_mapCacheDelete.js":function(e,o,t){function n(e){var o=s(this,e).delete(e);return this.size-=o?1:0,o}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_mapCacheGet.js":function(e,o,t){function n(e){return s(this,e).get(e)}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_mapCacheHas.js":function(e,o,t){function n(e){return s(this,e).has(e)}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_mapCacheSet.js":function(e,o,t){function n(e,o){var t=s(this,e),n=t.size;return t.set(e,o),this.size+=t.size==n?0:1,this}var s=t("./node_modules/lodash/_getMapData.js");e.exports=n},"./node_modules/lodash/_memoizeCapped.js":function(e,o,t){function n(e){var o=s(e,function(e){return t.size===r&&t.clear(),e}),t=o.cache;return o}var s=t("./node_modules/lodash/memoize.js"),r=500;e.exports=n},"./node_modules/lodash/_nativeCreate.js":function(e,o,t){var n=t("./node_modules/lodash/_getNative.js"),s=n(Object,"create");e.exports=s},"./node_modules/lodash/_objectToString.js":function(e,o){function t(e){return s.call(e)}var n=Object.prototype,s=n.toString;e.exports=t},"./node_modules/lodash/_root.js":function(e,o,t){var n=t("./node_modules/lodash/_freeGlobal.js"),s="object"==typeof self&&self&&self.Object===Object&&self,r=n||s||Function("return this")();e.exports=r},"./node_modules/lodash/_stringToPath.js":function(e,o,t){var n=t("./node_modules/lodash/_memoizeCapped.js"),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=n(function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace(s,function(e,t,n,s){o.push(n?s.replace(r,"$1"):t||e)}),o});e.exports=a},"./node_modules/lodash/_toKey.js":function(e,o,t){function n(e){if("string"==typeof e||s(e))return e;var o=e+"";return"0"==o&&1/e==-r?"-0":o}var s=t("./node_modules/lodash/isSymbol.js"),r=1/0;e.exports=n},"./node_modules/lodash/_toSource.js":function(e,o){function t(e){if(null!=e){try{return s.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var n=Function.prototype,s=n.toString;e.exports=t},"./node_modules/lodash/eq.js":function(e,o){function t(e,o){return e===o||e!==e&&o!==o}e.exports=t},"./node_modules/lodash/isArray.js":function(e,o){var t=Array.isArray;e.exports=t},"./node_modules/lodash/isFunction.js":function(e,o,t){function n(e){if(!r(e))return!1;var o=s(e);return o==d||o==l||o==a||o==i}var s=t("./node_modules/lodash/_baseGetTag.js"),r=t("./node_modules/lodash/isObject.js"),a="[object AsyncFunction]",d="[object Function]",l="[object GeneratorFunction]",i="[object Proxy]";e.exports=n},"./node_modules/lodash/isObject.js":function(e,o){function t(e){var o=typeof e;return null!=e&&("object"==o||"function"==o)}e.exports=t},"./node_modules/lodash/isObjectLike.js":function(e,o){function t(e){return null!=e&&"object"==typeof e}e.exports=t},"./node_modules/lodash/isSymbol.js":function(e,o,t){function n(e){return"symbol"==typeof e||r(e)&&s(e)==a}var s=t("./node_modules/lodash/_baseGetTag.js"),r=t("./node_modules/lodash/isObjectLike.js"),a="[object Symbol]";e.exports=n},"./node_modules/lodash/memoize.js":function(e,o,t){function n(e,o){if("function"!=typeof e||null!=o&&"function"!=typeof o)throw new TypeError(r);var t=function(){var n=arguments,s=o?o.apply(this,n):n[0],r=t.cache;if(r.has(s))return r.get(s);var a=e.apply(this,n);return t.cache=r.set(s,a)||r,a};return t.cache=new(n.Cache||s),t}var s=t("./node_modules/lodash/_MapCache.js"),r="Expected a function";n.Cache=s,e.exports=n},"./node_modules/lodash/toPath.js":function(e,o,t){function n(e){return a(e)?s(e,i):d(e)?[e]:r(l(u(e)))}var s=t("./node_modules/lodash/_arrayMap.js"),r=t("./node_modules/lodash/_copyArray.js"),a=t("./node_modules/lodash/isArray.js"),d=t("./node_modules/lodash/isSymbol.js"),l=t("./node_modules/lodash/_stringToPath.js"),i=t("./node_modules/lodash/_toKey.js"),u=t("./node_modules/lodash/toString.js");e.exports=n},"./node_modules/lodash/toString.js":function(e,o,t){function n(e){return null==e?"":s(e)}var s=t("./node_modules/lodash/_baseToString.js");e.exports=n},"./node_modules/redux-form/lib/structure/plain/getIn.js":function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=t("./node_modules/lodash/toPath.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(n),r=function(e,o){if(!e)return e;var t=(0,s.default)(o),n=t.length;if(n){for(var r=e,a=0;a { const handleInsert = (...args) => this.handleInsert(...args); const attrs = this.getOriginalAttributes(); const selection = tinymce.activeEditor.selection; + const folderId = this.getFolderId(); const selectionContent = selection.getContent() || ''; const tagName = selection.getNode().tagName; const requireLinkText = tagName !== 'A' && selectionContent.trim() === ''; @@ -78,6 +79,7 @@ jQuery.entwine('ss', ($) => { { }; }, + /** + * Get default upload folder + * + * @returns {(number|null)} + */ + getFolderId() { + const $field = this.getElement(); + if (!$field) { + return null; + } + + // Check type safely + const folderId = Number($field.data('config').upload_folder_id); + return isNaN(folderId) ? null : folderId; + }, + getOriginalAttributes() { const editor = this.getElement().getEditor(); const node = $(editor.getSelectedNode()); From e7e0cf60bacb8c86104a3a1f2c03b0b2aaea1253 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 9 Jun 2023 14:25:59 +1200 Subject: [PATCH 2/3] MNT Update invalid translations --- code/Forms/AssetFormFactory.php | 4 ++-- code/Forms/FileFormFactory.php | 4 ++-- code/Forms/MoveFormFactory.php | 4 ++-- lang/af.yml | 2 -- lang/ar.yml | 2 -- lang/bg.yml | 2 -- lang/bs.yml | 2 -- lang/cs.yml | 2 -- lang/da.yml | 9 --------- lang/de.yml | 9 --------- lang/el.yml | 2 -- lang/en.yml | 15 ++++++--------- lang/eo.yml | 9 --------- lang/es.yml | 2 -- lang/et_EE.yml | 2 -- lang/fa_IR.yml | 2 -- lang/fi.yml | 2 -- lang/fr.yml | 9 --------- lang/gl_ES.yml | 2 -- lang/he_IL.yml | 2 -- lang/hr.yml | 9 --------- lang/hu.yml | 2 -- lang/id.yml | 2 -- lang/is.yml | 2 -- lang/it.yml | 9 --------- lang/ja.yml | 2 -- lang/ko.yml | 2 -- lang/lt.yml | 7 ------- lang/mi.yml | 2 -- lang/nb.yml | 2 -- lang/nl.yml | 9 --------- lang/pl.yml | 9 --------- lang/pt.yml | 2 -- lang/ro.yml | 2 -- lang/ru.yml | 2 -- lang/sk.yml | 2 -- lang/sl.yml | 9 --------- lang/sr.yml | 2 -- lang/sr_RS@latin.yml | 2 -- lang/sv.yml | 2 -- lang/th.yml | 2 -- lang/uk.yml | 2 -- lang/zh.yml | 2 -- 43 files changed, 12 insertions(+), 161 deletions(-) diff --git a/code/Forms/AssetFormFactory.php b/code/Forms/AssetFormFactory.php index 3ac460e44..0bd73e3f8 100644 --- a/code/Forms/AssetFormFactory.php +++ b/code/Forms/AssetFormFactory.php @@ -155,9 +155,9 @@ protected function getSaveAction($record) ->setIcon('save') ->setSchemaState([ 'data' => [ - 'pristineTitle' => _t(__CLASS__.'SAVED', 'Saved'), + 'pristineTitle' => _t(__CLASS__.'.SAVED', 'Saved'), 'pristineIcon' => 'tick', - 'dirtyTitle' => _t(__CLASS__.'SAVE', 'Save'), + 'dirtyTitle' => _t(__CLASS__.'.SAVE', 'Save'), 'dirtyIcon' => 'save', 'pristineClass' => 'btn-outline-primary', 'dirtyClass' => '', diff --git a/code/Forms/FileFormFactory.php b/code/Forms/FileFormFactory.php index 2e4222343..f977c0cd0 100644 --- a/code/Forms/FileFormFactory.php +++ b/code/Forms/FileFormFactory.php @@ -249,9 +249,9 @@ protected function getPublishAction($record) 'data' => [ 'isPublished' => $record->isPublished(), 'isModified' => $record->isModifiedOnDraft(), - 'pristineTitle' => _t(__CLASS__ . 'PUBLISHED', 'Published'), + 'pristineTitle' => _t(__CLASS__ . '.PUBLISHED', 'Published'), 'pristineIcon' => 'tick', - 'dirtyTitle' => _t(__CLASS__ . 'PUBLISH', 'Publish'), + 'dirtyTitle' => _t(__CLASS__ . '.PUBLISH', 'Publish'), 'dirtyIcon' => 'rocket', 'pristineClass' => 'btn-outline-primary', 'dirtyClass' => 'btn-primary', diff --git a/code/Forms/MoveFormFactory.php b/code/Forms/MoveFormFactory.php index 24442a125..8488ca13d 100644 --- a/code/Forms/MoveFormFactory.php +++ b/code/Forms/MoveFormFactory.php @@ -23,13 +23,13 @@ public function getForm(RequestHandler $controller = null, $name = self::DEFAULT FieldList::create( TreeDropdownField::create( 'FolderID', - _t(__CLASS__.'CHOOSEFOLDER', 'Choose a folder'), + _t(__CLASS__.'.CHOOSEFOLDER', 'Choose a folder'), Folder::class )->setValue((int) $context['FolderID']) ->setTitleField('Filename') ), FieldList::create( - FormAction::create('move', _t(__CLASS__.'MOVE', 'Move')) + FormAction::create('move', _t(__CLASS__.'.MOVE', 'Move')) ->addExtraClass('btn-primary font-icon-folder-move') ) ); diff --git a/lang/af.yml b/lang/af.yml index a533eac2c..c103b5872 100644 --- a/lang/af.yml +++ b/lang/af.yml @@ -16,8 +16,6 @@ af: EDITINFO: 'Verander die lêer' FIELDNOTSET: 'Die lêer informasie kan nie gevind word nie' REMOVE: Verwyder - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/ar.yml b/lang/ar.yml index a5f974b3f..a787a1545 100644 --- a/lang/ar.yml +++ b/lang/ar.yml @@ -17,8 +17,6 @@ ar: EDITINFO: 'قم بتعديل هذا الملف' FIELDNOTSET: 'لا يوجد معلومات عن الملف' REMOVE: حذف - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/bg.yml b/lang/bg.yml index e11fd0d17..61d2ab95b 100644 --- a/lang/bg.yml +++ b/lang/bg.yml @@ -18,8 +18,6 @@ bg: EDITINFO: 'Редактирай този файл' FIELDNOTSET: 'Информация за файла не беше намерена' REMOVE: Премахни - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/bs.yml b/lang/bs.yml index df0ab6cc2..43b0cd6b2 100644 --- a/lang/bs.yml +++ b/lang/bs.yml @@ -10,8 +10,6 @@ bs: Filetype: 'File type' ImageSpecs: Dimensions LASTEDIT: 'Last changed' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/cs.yml b/lang/cs.yml index c4559dd2a..538d742e4 100644 --- a/lang/cs.yml +++ b/lang/cs.yml @@ -19,8 +19,6 @@ cs: EDITINFO: 'Editovat tento soubor' FIELDNOTSET: 'Žádná informace o souboru' REMOVE: Odstranit - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/da.yml b/lang/da.yml index 57a6f5a1c..0e5d6944d 100644 --- a/lang/da.yml +++ b/lang/da.yml @@ -1,13 +1,4 @@ da: - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Gem - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Gemt - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Udgiv - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Udgivet - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Vælg en mappe' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Flyt SilverStripe\AssetAdmin\BatchAction\DeleteAssets: TITLE: 'Slet mapper' SilverStripe\AssetAdmin\Controller\AssetAdmin: diff --git a/lang/de.yml b/lang/de.yml index 61f1a9191..37b68c47d 100644 --- a/lang/de.yml +++ b/lang/de.yml @@ -1,13 +1,4 @@ de: - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Speichern - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Gespeichert - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Veröffentlichen - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Veröffentlicht - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Ordner auswählen' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Verschieben SilverStripe\AssetAdmin\BatchAction\DeleteAssets: TITLE: 'Ordner löschen' SilverStripe\AssetAdmin\Controller\AssetAdmin: diff --git a/lang/el.yml b/lang/el.yml index bd6d11cce..9e7a8ec1e 100644 --- a/lang/el.yml +++ b/lang/el.yml @@ -8,8 +8,6 @@ el: Filetype: 'File type' ImageSpecs: Dimensions LASTEDIT: 'Last changed' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/en.yml b/lang/en.yml index de90fd073..a7c04cfcb 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -2,15 +2,6 @@ en: AssetAdmin: INSERT_FILE: 'Insert file' UPDATE_FILE: 'Update file' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Saved - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Publish - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Published - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Choose a folder' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Move SilverStripe\Admin\FileStatusIcon: ACCESS_RESTRICTED: 'Restricted access' TRACKED_FORM_UPLOAD_RESTRICTED: 'Form submission' @@ -80,6 +71,7 @@ en: ONLY_GROUPS: 'Only these groups (choose from list)' ROOTNAME: '(Top level)' SAVE: Save + SAVED: Saved VIEWERGROUPS: 'Viewer Groups' SilverStripe\AssetAdmin\Forms\FileFormFactory: DOWNLOAD_FILE: 'Download file' @@ -89,6 +81,8 @@ en: LINKOPTIONS: 'Link options' LINKTEXT: 'Link text' OTHER_ACTIONS: 'Other actions' + PUBLISH: Publish + PUBLISHED: Published REPLACE_FILE: 'Replace file' UNEMEDABLE_MESSAGE: '

This file type can only be inserted as a link. You can edit the link once it is inserted.

' USAGE: 'Used on' @@ -99,6 +93,9 @@ en: CREATE: Create SilverStripe\AssetAdmin\Forms\FolderFormFactory: FOLDERNAME: 'Folder name' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Choose a folder' + MOVE: Move SilverStripe\AssetAdmin\Forms\RemoteFileFormFactory: AddMedia: 'Add media' Cancel: Cancel diff --git a/lang/eo.yml b/lang/eo.yml index bce0cf8e6..5d332f2af 100644 --- a/lang/eo.yml +++ b/lang/eo.yml @@ -2,15 +2,6 @@ eo: AssetAdmin: INSERT_FILE: 'Enmeti dosieron' UPDATE_FILE: 'Ĝisdatigi dosieron' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Konservi - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Konservita - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Publikigi - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Publikigita - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Elekti dosierujon' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Movi SilverStripe\Admin\FileStatusIcon: ACCESS_RESTRICTED: 'Limigita aliro' TRACKED_FORM_UPLOAD_RESTRICTED: 'Sendi formularon' diff --git a/lang/es.yml b/lang/es.yml index 8fe0d9bfa..0bfc95573 100644 --- a/lang/es.yml +++ b/lang/es.yml @@ -19,8 +19,6 @@ es: EDITINFO: 'Editar este archivo' FIELDNOTSET: 'No ha sido encontrada la información del archivo' REMOVE: Eliminar - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/et_EE.yml b/lang/et_EE.yml index 1cd2bbcf6..014d49925 100644 --- a/lang/et_EE.yml +++ b/lang/et_EE.yml @@ -17,8 +17,6 @@ et_EE: EDITINFO: 'Muuda seda faili' FIELDNOTSET: 'Failiteavet ei leitud' REMOVE: Eemalda - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/fa_IR.yml b/lang/fa_IR.yml index 215822e85..3415ac50a 100644 --- a/lang/fa_IR.yml +++ b/lang/fa_IR.yml @@ -19,8 +19,6 @@ fa_IR: EDITINFO: 'ویرایش این فایل' FIELDNOTSET: 'اطلاعات فایل پیدا نشد' REMOVE: حذف - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/fi.yml b/lang/fi.yml index eba10a017..f835fb389 100644 --- a/lang/fi.yml +++ b/lang/fi.yml @@ -19,8 +19,6 @@ fi: EDITINFO: 'Muokkaa tätä tiedostoa' FIELDNOTSET: 'Tietoja tiedostosta ei löytynyt' REMOVE: Poista - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/fr.yml b/lang/fr.yml index 32bbc314a..9bb25e6ba 100644 --- a/lang/fr.yml +++ b/lang/fr.yml @@ -1,13 +1,4 @@ fr: - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Sauvegarder - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Sauvegardé - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Publier - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Publié - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Choisir un dossier' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Déplacer SilverStripe\AssetAdmin\BatchAction\DeleteAssets: TITLE: 'Supprimer les dossiers' SilverStripe\AssetAdmin\Controller\AssetAdmin: diff --git a/lang/gl_ES.yml b/lang/gl_ES.yml index 6e0130951..c61dfbd83 100644 --- a/lang/gl_ES.yml +++ b/lang/gl_ES.yml @@ -11,8 +11,6 @@ gl_ES: SilverStripe\AssetAdmin\Forms\UploadField: EDITINFO: 'Editar este ficheiro' FIELDNOTSET: 'Ficheiro de información non atopado' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/he_IL.yml b/lang/he_IL.yml index 3e63627cb..ef519462e 100644 --- a/lang/he_IL.yml +++ b/lang/he_IL.yml @@ -11,8 +11,6 @@ he_IL: Filetype: 'File type' ImageSpecs: Dimensions LASTEDIT: 'Last changed' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/hr.yml b/lang/hr.yml index c96d42e3f..9501593f1 100644 --- a/lang/hr.yml +++ b/lang/hr.yml @@ -1,13 +1,4 @@ hr: - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Spremi - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Spremljeno - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Objavi - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Objavljeno - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Odaberi direktorij' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Premjesti SilverStripe\AssetAdmin\BatchAction\DeleteAssets: TITLE: 'Obriši direktorije' SilverStripe\AssetAdmin\Controller\AssetAdmin: diff --git a/lang/hu.yml b/lang/hu.yml index 816b15f47..1c2faf7e8 100644 --- a/lang/hu.yml +++ b/lang/hu.yml @@ -10,8 +10,6 @@ hu: Filetype: 'File type' ImageSpecs: Dimensions LASTEDIT: 'Last changed' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/id.yml b/lang/id.yml index c8de223b7..08408e53b 100644 --- a/lang/id.yml +++ b/lang/id.yml @@ -17,8 +17,6 @@ id: EDITINFO: 'Edit berkas ini' FIELDNOTSET: 'Informasi berkas tidak ada' REMOVE: Buang - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/is.yml b/lang/is.yml index 60faecf0e..9e2fd834d 100644 --- a/lang/is.yml +++ b/lang/is.yml @@ -1,6 +1,4 @@ is: - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Controller\AssetAdmin: CREATED: 'First uploaded' DELETE_BUTTON: Delete diff --git a/lang/it.yml b/lang/it.yml index ff8693ef7..ed17c7e57 100644 --- a/lang/it.yml +++ b/lang/it.yml @@ -2,15 +2,6 @@ it: AssetAdmin: INSERT_FILE: 'Inserire file' UPDATE_FILE: 'Aggiorna file' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Salva - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Salvato - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Pubblica - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Pubblicato - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Scegli una cartella' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Sposta SilverStripe\Admin\FileStatusIcon: ACCESS_RESTRICTED: 'Accesso ristretto' TRACKED_FORM_UPLOAD_RESTRICTED: 'Inoltro modulo' diff --git a/lang/ja.yml b/lang/ja.yml index d739f38cf..c4de0a7e5 100644 --- a/lang/ja.yml +++ b/lang/ja.yml @@ -17,8 +17,6 @@ ja: EDITINFO: このファイルを編集 FIELDNOTSET: ファイル情報が見つかりませんでした REMOVE: 削除 - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/ko.yml b/lang/ko.yml index 254f01ba6..f6936b746 100644 --- a/lang/ko.yml +++ b/lang/ko.yml @@ -8,8 +8,6 @@ ko: Filetype: 'File type' ImageSpecs: Dimensions LASTEDIT: 'Last changed' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/lt.yml b/lang/lt.yml index b720487c1..8e488c7a5 100644 --- a/lang/lt.yml +++ b/lang/lt.yml @@ -22,13 +22,6 @@ lt: EDITINFO: 'Redaguoti šią bylą' FIELDNOTSET: 'Informacija apie bylą nerasta' REMOVE: Pašalinti - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Publikuoti - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Publikuota - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Perkelti SilverStripe\Admin\FileStatusIcon: ACCESS_RESTRICTED: 'Ribotas priėjimas' SilverStripe\AssetAdmin\Forms\AssetFormFactory: diff --git a/lang/mi.yml b/lang/mi.yml index 33383fde6..e7a2d6514 100644 --- a/lang/mi.yml +++ b/lang/mi.yml @@ -17,8 +17,6 @@ mi: EDITINFO: 'Whakatikatia tēnei kōnae' FIELDNOTSET: 'Kāore i kitea te mōhiohio kōnae' REMOVE: Tango - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/nb.yml b/lang/nb.yml index 7bdc68fb0..22df06e26 100644 --- a/lang/nb.yml +++ b/lang/nb.yml @@ -17,8 +17,6 @@ nb: EDITINFO: 'Rediger denne filen' FIELDNOTSET: 'Filinformasjon ikke funnet' REMOVE: Fjern - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/nl.yml b/lang/nl.yml index eff4c52ae..23172ed37 100644 --- a/lang/nl.yml +++ b/lang/nl.yml @@ -2,15 +2,6 @@ nl: AssetAdmin: INSERT_FILE: 'Bestand invoegen' UPDATE_FILE: 'Bestand aanpassen' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Opslaan - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Opgeslagen - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Publiceer - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Gepubliceerd - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Kies een map' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Verplaats SilverStripe\Admin\FileStatusIcon: ACCESS_RESTRICTED: 'Toegang beperkt' TRACKED_FORM_UPLOAD_RESTRICTED: 'Formulier inzending' diff --git a/lang/pl.yml b/lang/pl.yml index 835c13bbd..f11fa3b11 100644 --- a/lang/pl.yml +++ b/lang/pl.yml @@ -1,13 +1,4 @@ pl: - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Zapisz - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Zapisano - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Opublikuj - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Opublikowano - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Wybierz folder' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Przenieś SilverStripe\AssetAdmin\BatchAction\DeleteAssets: TITLE: 'Usuń folder' SilverStripe\AssetAdmin\Controller\AssetAdmin: diff --git a/lang/pt.yml b/lang/pt.yml index 018fe0b31..369c460c4 100644 --- a/lang/pt.yml +++ b/lang/pt.yml @@ -11,8 +11,6 @@ pt: SilverStripe\AssetAdmin\Forms\UploadField: EDITINFO: 'Editar este ficheiro' FIELDNOTSET: 'Informação do ficheiro não encontrada' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/ro.yml b/lang/ro.yml index da21fc2f4..0839edede 100644 --- a/lang/ro.yml +++ b/lang/ro.yml @@ -10,8 +10,6 @@ ro: LASTEDIT: 'Last changed' SilverStripe\AssetAdmin\Forms\UploadField: EDITINFO: 'Editeaza acest fisier' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/ru.yml b/lang/ru.yml index 30ab6298a..0e585c65c 100644 --- a/lang/ru.yml +++ b/lang/ru.yml @@ -19,8 +19,6 @@ ru: EDITINFO: 'Редактировать этот файл' FIELDNOTSET: 'Информация о файле не найдена' REMOVE: Удалить - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/sk.yml b/lang/sk.yml index 37330ca6b..746f55f1b 100644 --- a/lang/sk.yml +++ b/lang/sk.yml @@ -19,8 +19,6 @@ sk: EDITINFO: 'Editovať súbor' FIELDNOTSET: 'Žiadna informácia o súbore' REMOVE: Odstrániť - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/sl.yml b/lang/sl.yml index 462234092..d299874ec 100644 --- a/lang/sl.yml +++ b/lang/sl.yml @@ -2,15 +2,6 @@ sl: AssetAdmin: INSERT_FILE: 'Vstavi datoteko' UPDATE_FILE: 'Posodobi datoteko' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Shrani - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVED: Shranjeno - FileFormFactory: - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISH: Objavi - php.SilverStripe\AssetAdmin\Forms\FileFormFactoryPUBLISHED: Objavljeno - MoveFormFactory: - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryCHOOSEFOLDER: 'Izberite mapo' - php.SilverStripe\AssetAdmin\Forms\MoveFormFactoryMOVE: Premakni SilverStripe\Admin\FileStatusIcon: ACCESS_RESTRICTED: 'Dostop omejen' TRACKED_FORM_UPLOAD_RESTRICTED: 'Uporaba obrazca' diff --git a/lang/sr.yml b/lang/sr.yml index 7f5f8b13c..cfdb7c421 100644 --- a/lang/sr.yml +++ b/lang/sr.yml @@ -17,8 +17,6 @@ sr: EDITINFO: 'Измени ову датотеку' FIELDNOTSET: 'Информације о датотеци нису пронађене' REMOVE: Уклони - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/sr_RS@latin.yml b/lang/sr_RS@latin.yml index bb071fc1e..9d02fbecf 100644 --- a/lang/sr_RS@latin.yml +++ b/lang/sr_RS@latin.yml @@ -17,8 +17,6 @@ sr_RS@latin: EDITINFO: 'Izmeni ovu datoteku' FIELDNOTSET: 'Informacije o datoteci nisu pronađene' REMOVE: Ukloni - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/sv.yml b/lang/sv.yml index 47edcad64..08cc69a6a 100644 --- a/lang/sv.yml +++ b/lang/sv.yml @@ -19,8 +19,6 @@ sv: EDITINFO: 'Redigera filen' FIELDNOTSET: 'Hittade ingen filinformation' REMOVE: 'Ta bort' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/th.yml b/lang/th.yml index 5f3a99bb9..ad6c0330e 100644 --- a/lang/th.yml +++ b/lang/th.yml @@ -16,8 +16,6 @@ th: EDITINFO: แก้ไขไฟล์นี้ FIELDNOTSET: ไม่พบข้อมูลเกี่ยวกับไฟล์ REMOVE: ลบออก - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/uk.yml b/lang/uk.yml index bfce25550..0f6327d43 100644 --- a/lang/uk.yml +++ b/lang/uk.yml @@ -12,8 +12,6 @@ uk: LASTEDIT: 'Last changed' SilverStripe\AssetAdmin\Forms\UploadField: EDITINFO: 'Редагувати цей файл' - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save diff --git a/lang/zh.yml b/lang/zh.yml index 7ef5501ae..196c5370a 100644 --- a/lang/zh.yml +++ b/lang/zh.yml @@ -17,8 +17,6 @@ zh: EDITINFO: 编辑该文件 FIELDNOTSET: 没有找到文件信息 REMOVE: 移除 - AssetFormFactory: - php.SilverStripe\AssetAdmin\Forms\AssetFormFactorySAVE: Save SilverStripe\AssetAdmin\Forms\AssetFormFactory: FILENAME: Filename SAVE: Save From d278be605883144d3260c53cd2f6fe806b9f2673 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 14 Jun 2023 18:35:28 +1200 Subject: [PATCH 3/3] ENH Update translations --- lang/da.yml | 6 ++++++ lang/de.yml | 6 ++++++ lang/eo.yml | 6 ++++++ lang/fr.yml | 6 ++++++ lang/hr.yml | 6 ++++++ lang/it.yml | 6 ++++++ lang/lt.yml | 5 +++++ lang/nl.yml | 6 ++++++ lang/pl.yml | 6 ++++++ lang/sl.yml | 6 ++++++ 10 files changed, 59 insertions(+) diff --git a/lang/da.yml b/lang/da.yml index 0e5d6944d..e97630d93 100644 --- a/lang/da.yml +++ b/lang/da.yml @@ -60,6 +60,7 @@ da: ROOTNAME: '(Top niveau)' SAVE: Gem VIEWERGROUPS: Visningsgrupper + SAVED: Gemt SilverStripe\AssetAdmin\Forms\FileFormFactory: INSERT_LINK: 'Link til fil' LINKDESCR: 'Link beskrivelse' @@ -69,6 +70,8 @@ da: OTHER_ACTIONS: 'Andre handlinger' UNEMEDABLE_MESSAGE: '

Denne filtype kan kun indsættes som et link. Du kan redigere linket når det er sat ind.

' USAGE: 'Brugt på' + PUBLISH: Udgiv + PUBLISHED: Udgivet SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Udgivet SAVED: Gemt @@ -88,3 +91,6 @@ da: FileNotFound: 'Filen eller mappen kunne ikke findes' SilverStripe\AssetAdmin\GraphQL\FileFilter: FileNotFound: 'Filen eller mappen kunne ikke findes' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Vælg en mappe' + MOVE: Flyt diff --git a/lang/de.yml b/lang/de.yml index 37b68c47d..e3b3d7275 100644 --- a/lang/de.yml +++ b/lang/de.yml @@ -63,6 +63,7 @@ de: ROOTNAME: (Hauptebene) SAVE: Speichern VIEWERGROUPS: Betrachtergruppen + SAVED: Gespeichert SilverStripe\AssetAdmin\Forms\FileFormFactory: INSERT_LINK: 'Link zur Datei' LINKDESCR: 'Beschreibung des Links' @@ -74,6 +75,8 @@ de: UNEMEDABLE_MESSAGE: '

Dieser Dateityp kann nur als Link eingefügt werden. Sie können den Link nach dem Einfügen bearbeiten.

' USAGE: 'Benutzt in' DOWNLOAD_FILE: 'Datei herunterladen' + PUBLISH: Veröffentlichen + PUBLISHED: Veröffentlicht SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Veröffentlicht SAVED: Gespeichert @@ -114,3 +117,6 @@ de: OWNER_WARNING: one: 'Die Datei "{file}" wird an {count} Stelle verwendet.' other: 'Die Datei "{file}" wird an {count} Stellen verwendet.' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Ordner auswählen' + MOVE: Verschieben diff --git a/lang/eo.yml b/lang/eo.yml index 5d332f2af..3ce762c75 100644 --- a/lang/eo.yml +++ b/lang/eo.yml @@ -72,6 +72,7 @@ eo: ROOTNAME: '(Supra nivelo)' SAVE: Konservi VIEWERGROUPS: 'Grupoj de vidantoj' + SAVED: Konservita SilverStripe\AssetAdmin\Forms\FileFormFactory: DOWNLOAD_FILE: 'Elŝuti dosieron' INSERT_LINK: 'Ligi al dosiero' @@ -83,6 +84,8 @@ eo: REPLACE_FILE: 'Anstataŭigi dosieron' UNEMEDABLE_MESSAGE: '

Ĉi tiu tipo de dosiero estas enmetebla nur kiel ligilon. Vi povas redakti la ligilon post enmeto.

' USAGE: 'Uzita je' + PUBLISH: Publikigi + PUBLISHED: Publikigita SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Publikigita SAVED: Konservita @@ -116,3 +119,6 @@ eo: OWNER_WARNING: one: 'Dosiero "{file}" estas uzita en 1 loko.' other: 'Dosiero "{file}" estas uzita en {count} lokoj.' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Elekti dosierujon' + MOVE: Movi diff --git a/lang/fr.yml b/lang/fr.yml index 9bb25e6ba..02472f0c3 100644 --- a/lang/fr.yml +++ b/lang/fr.yml @@ -60,6 +60,7 @@ fr: ROOTNAME: (Racine) SAVE: Sauvegarder VIEWERGROUPS: 'Groupes de visualisation' + SAVED: Sauvegardé SilverStripe\AssetAdmin\Forms\FileFormFactory: INSERT_LINK: 'Lien du fichier' LINKDESCR: 'Description du lien' @@ -68,6 +69,8 @@ fr: LINKTEXT: 'Texte du lien' OTHER_ACTIONS: 'Autres actions' UNEMEDABLE_MESSAGE: '

Ce type de fichier peut uniquement être inséré en tant que lien. Vous pourrez modifier le lien après qu''il aura été inséré.

' + PUBLISH: Publier + PUBLISHED: Publié SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Publié SAVED: Sauvegardé @@ -90,3 +93,6 @@ fr: FileNotFound: 'Fichier ou dossier introuvable' SilverStripe\AssetAdmin\GraphQL\FileFilter: FileNotFound: 'Fichier ou dossier introuvable' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Choisir un dossier' + MOVE: Déplacer diff --git a/lang/hr.yml b/lang/hr.yml index 9501593f1..d77078166 100644 --- a/lang/hr.yml +++ b/lang/hr.yml @@ -49,10 +49,13 @@ hr: FILENAME: 'Naziv datoteke' FOLDERLOCATION: Lokacije SAVE: Spremi + SAVED: Spremljeno SilverStripe\AssetAdmin\Forms\FileFormFactory: INSERT_LINK: 'Poveži s datotekom' LINKOPENNEWWIN: 'Otvori u novom prozoru/tabu' OTHER_ACTIONS: 'Druge akcije' + PUBLISH: Objavi + PUBLISHED: Objavljeno SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Objavljeno SAVED: Spremljeno @@ -65,3 +68,6 @@ hr: Cancel: Odustani AssetAdmin: INSERT_FILE: 'Ubaci datoteku' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Odaberi direktorij' + MOVE: Premjesti diff --git a/lang/it.yml b/lang/it.yml index ed17c7e57..61de50fbc 100644 --- a/lang/it.yml +++ b/lang/it.yml @@ -72,6 +72,7 @@ it: ROOTNAME: '(Primo Livello)' SAVE: Salva VIEWERGROUPS: 'Gruppi di visualizzatori' + SAVED: Salvato SilverStripe\AssetAdmin\Forms\FileFormFactory: DOWNLOAD_FILE: 'Scaricamento file' INSERT_LINK: 'Collegamento al file' @@ -83,6 +84,8 @@ it: REPLACE_FILE: 'Sostituisci file' UNEMEDABLE_MESSAGE: '

Questo tipo di file può essere inserito solo come collegamento. Non potrai modificare il collegamento una volta inserito.

' USAGE: 'Usato da' + PUBLISH: Pubblica + PUBLISHED: Pubblicato SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Pubblicato SAVED: Salvato @@ -112,3 +115,6 @@ it: one: 'Il file "{file}" è usato in {count} posto.' other: 'Il file "{file}" è usato in {count} posti.' many: 'Il file "{file}" è usato in {count} posti.' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Scegli una cartella' + MOVE: Sposta diff --git a/lang/lt.yml b/lang/lt.yml index 8e488c7a5..416e8fb11 100644 --- a/lang/lt.yml +++ b/lang/lt.yml @@ -33,3 +33,8 @@ lt: FOLDERNAME: 'Katalogo pavadinimas' SilverStripe\AssetAdmin\Forms\RemoteFileFormFactory: Cancel: Cancel + SilverStripe\AssetAdmin\Forms\FileFormFactory: + PUBLISH: Publikuoti + PUBLISHED: Publikuota + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + MOVE: Perkelti diff --git a/lang/nl.yml b/lang/nl.yml index 23172ed37..431abefbc 100644 --- a/lang/nl.yml +++ b/lang/nl.yml @@ -72,6 +72,7 @@ nl: ROOTNAME: '(Bovenste niveau)' SAVE: Opslaan VIEWERGROUPS: 'Groepen met bekijkrechten' + SAVED: Opgeslagen SilverStripe\AssetAdmin\Forms\FileFormFactory: DOWNLOAD_FILE: 'Download bestand' INSERT_LINK: 'Link naar bestand' @@ -83,6 +84,8 @@ nl: REPLACE_FILE: 'Vervang bestand' UNEMEDABLE_MESSAGE: '

Dit bestandstype kan alleen als link ingevoegd worden. Na het invoegen kan het bewerkt worden.

' USAGE: 'In gebruik op' + PUBLISH: Publiceer + PUBLISHED: Gepubliceerd SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Gepubliceerd SAVED: Opgeslagen @@ -110,3 +113,6 @@ nl: OWNER_WARNING: one: 'Bestand "{file}" wordt op {count} plekken gebruikt.' other: 'Bestand "{file}" wordt op {count} plekken gebruikt.' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Kies een map' + MOVE: Verplaats diff --git a/lang/pl.yml b/lang/pl.yml index f11fa3b11..5888b2146 100644 --- a/lang/pl.yml +++ b/lang/pl.yml @@ -65,6 +65,7 @@ pl: ROOTNAME: '(Najwyższy poziom)' SAVE: Zapisz VIEWERGROUPS: 'Kto może zobaczyć (grupy)' + SAVED: Zapisano SilverStripe\AssetAdmin\Forms\FileFormFactory: INSERT_LINK: 'Link do pliku' LINKDESCR: 'Opis linku' @@ -76,6 +77,8 @@ pl: UNEMEDABLE_MESSAGE: '

Ten typ pliku można wstawić tylko jako łącze. Możesz edytować link, gdy zostanie wstawiony.

' USAGE: 'Użyty na' DOWNLOAD_FILE: 'Pobierz plik' + PUBLISH: Opublikuj + PUBLISHED: Opublikowano SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Opublikowano SAVED: Zapisano @@ -116,3 +119,6 @@ pl: few: 'Plik "{file}" jest używany w kilku {count} miejscach.' many: 'Plik "{file}" jest używany w wielu {count} miejscach.' other: 'Plik "{file}" jest używany w {count} miejscach.' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Wybierz folder' + MOVE: Przenieś diff --git a/lang/sl.yml b/lang/sl.yml index d299874ec..3483a4501 100644 --- a/lang/sl.yml +++ b/lang/sl.yml @@ -69,6 +69,7 @@ sl: ROOTNAME: '(Prvi nivo)' SAVE: Shrani VIEWERGROUPS: 'Skupine ogledovalcev' + SAVED: Shranjeno SilverStripe\AssetAdmin\Forms\FileFormFactory: DOWNLOAD_FILE: 'Prenesi datoteko' INSERT_LINK: 'Vstavi povezavo do datoteke' @@ -80,6 +81,8 @@ sl: REPLACE_FILE: 'Menjaj datoteko' UNEMEDABLE_MESSAGE: '

Ta tip datoteke lahko vstavite samo v kot povezavo. Povezavo lahko naknadno tudi uredite.

' USAGE: 'Uporabljena na' + PUBLISH: Objavi + PUBLISHED: Objavljeno SilverStripe\AssetAdmin\Forms\FileHistoryFormFactory: PUBLISHED: Objavljeno SAVED: Shranjeno @@ -113,3 +116,6 @@ sl: other: 'Datoteka "{file}" se uporablja na {count} koncih.' SilverStripe\AssetAdmin\GraphQL\FileFilter: FileNotFound: 'Mapa ali datoteka ne obstaja' + SilverStripe\AssetAdmin\Forms\MoveFormFactory: + CHOOSEFOLDER: 'Izberite mapo' + MOVE: Premakni