Changeset 3460537
- Timestamp:
- 02/13/2026 07:10:52 AM (6 weeks ago)
- Location:
- tax-switch-for-woocommerce
- Files:
-
- 110 added
- 31 edited
-
tags/1.6.9 (added)
-
tags/1.6.9/LICENSE.txt (added)
-
tags/1.6.9/README.txt (added)
-
tags/1.6.9/admin (added)
-
tags/1.6.9/admin/class-wdevs-tax-switch-admin.php (added)
-
tags/1.6.9/admin/index.php (added)
-
tags/1.6.9/admin/js (added)
-
tags/1.6.9/admin/js/wdevs-tax-switch-woocommerce.js (added)
-
tags/1.6.9/admin/partials (added)
-
tags/1.6.9/admin/partials/section-wdevs-tax-switch-shortcode.php (added)
-
tags/1.6.9/build (added)
-
tags/1.6.9/build/label (added)
-
tags/1.6.9/build/label/block.json (added)
-
tags/1.6.9/build/label/index-rtl.css (added)
-
tags/1.6.9/build/label/index.asset.php (added)
-
tags/1.6.9/build/label/index.css (added)
-
tags/1.6.9/build/label/index.js (added)
-
tags/1.6.9/build/label/style-index-rtl.css (added)
-
tags/1.6.9/build/label/style-index.css (added)
-
tags/1.6.9/build/label/view.asset.php (added)
-
tags/1.6.9/build/label/view.js (added)
-
tags/1.6.9/build/shared (added)
-
tags/1.6.9/build/shared/shared.asset.php (added)
-
tags/1.6.9/build/shared/shared.js (added)
-
tags/1.6.9/build/switch (added)
-
tags/1.6.9/build/switch/advanced-product-fields-for-woocommerce.asset.php (added)
-
tags/1.6.9/build/switch/advanced-product-fields-for-woocommerce.js (added)
-
tags/1.6.9/build/switch/block.json (added)
-
tags/1.6.9/build/switch/facetwp.asset.php (added)
-
tags/1.6.9/build/switch/facetwp.js (added)
-
tags/1.6.9/build/switch/fibofilters.asset.php (added)
-
tags/1.6.9/build/switch/fibofilters.js (added)
-
tags/1.6.9/build/switch/index-rtl.css (added)
-
tags/1.6.9/build/switch/index.asset.php (added)
-
tags/1.6.9/build/switch/index.css (added)
-
tags/1.6.9/build/switch/index.js (added)
-
tags/1.6.9/build/switch/kapee-theme.asset.php (added)
-
tags/1.6.9/build/switch/kapee-theme.js (added)
-
tags/1.6.9/build/switch/product-extras-for-woocommerce.asset.php (added)
-
tags/1.6.9/build/switch/product-extras-for-woocommerce.js (added)
-
tags/1.6.9/build/switch/style-index-rtl.css (added)
-
tags/1.6.9/build/switch/style-index.css (added)
-
tags/1.6.9/build/switch/view.asset.php (added)
-
tags/1.6.9/build/switch/view.js (added)
-
tags/1.6.9/build/switch/woocommerce-fees-discounts.asset.php (added)
-
tags/1.6.9/build/switch/woocommerce-fees-discounts.js (added)
-
tags/1.6.9/build/switch/woocommerce-measurement-price-calculator.asset.php (added)
-
tags/1.6.9/build/switch/woocommerce-measurement-price-calculator.js (added)
-
tags/1.6.9/build/switch/woocommerce-product-addons.asset.php (added)
-
tags/1.6.9/build/switch/woocommerce-product-addons.js (added)
-
tags/1.6.9/build/switch/woocommerce-quantity-manager.asset.php (added)
-
tags/1.6.9/build/switch/woocommerce-quantity-manager.js (added)
-
tags/1.6.9/build/switch/woocommerce-tiered-price-table.asset.php (added)
-
tags/1.6.9/build/switch/woocommerce-tiered-price-table.js (added)
-
tags/1.6.9/build/switch/woocommerce-tm-extra-product-options.asset.php (added)
-
tags/1.6.9/build/switch/woocommerce-tm-extra-product-options.js (added)
-
tags/1.6.9/build/switch/woodmart-theme.asset.php (added)
-
tags/1.6.9/build/switch/woodmart-theme.js (added)
-
tags/1.6.9/build/switch/yith-woocommerce-product-add-ons.asset.php (added)
-
tags/1.6.9/build/switch/yith-woocommerce-product-add-ons.js (added)
-
tags/1.6.9/includes (added)
-
tags/1.6.9/includes/assets (added)
-
tags/1.6.9/includes/assets/css (added)
-
tags/1.6.9/includes/assets/css/wdevs-tax-switch-shared.css (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-activator.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-block-label.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-block-shared.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-block-switch.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-block.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-compatibility.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-deactivator.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-loader.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-mini-cart-context.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch-woocommerce.php (added)
-
tags/1.6.9/includes/class-wdevs-tax-switch.php (added)
-
tags/1.6.9/includes/index.php (added)
-
tags/1.6.9/includes/trait-wdevs-tax-switch-display.php (added)
-
tags/1.6.9/includes/trait-wdevs-tax-switch-helper.php (added)
-
tags/1.6.9/includes/trait-wdevs-tax-switch-plugins.php (added)
-
tags/1.6.9/languages (added)
-
tags/1.6.9/languages/build.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-en_US-0b9526334c88655b7ec3959bb635770d.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-en_US.l10n.php (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-en_US.mo (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-en_US.po (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-nl_NL-0b9526334c88655b7ec3959bb635770d.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-nl_NL.l10n.php (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-nl_NL.mo (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-nl_NL.po (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-sv_SE-0b9526334c88655b7ec3959bb635770d.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-sv_SE.l10n.php (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-sv_SE.mo (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce-sv_SE.po (added)
-
tags/1.6.9/languages/tax-switch-for-woocommerce.pot (added)
-
tags/1.6.9/public (added)
-
tags/1.6.9/public/class-wdevs-tax-switch-public.php (added)
-
tags/1.6.9/public/css (added)
-
tags/1.6.9/public/css/wdevs-tax-switch-public.css (added)
-
tags/1.6.9/public/index.php (added)
-
tags/1.6.9/uninstall.php (added)
-
tags/1.6.9/wdevs-tax-switch.php (added)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/build/label/block.json (modified) (1 diff)
-
trunk/build/label/index.asset.php (modified) (1 diff)
-
trunk/build/label/index.js (modified) (1 diff)
-
trunk/build/shared/shared.asset.php (modified) (1 diff)
-
trunk/build/shared/shared.js (modified) (1 diff)
-
trunk/build/switch/block.json (modified) (2 diffs)
-
trunk/build/switch/index.asset.php (modified) (1 diff)
-
trunk/build/switch/index.js (modified) (1 diff)
-
trunk/build/switch/view.asset.php (modified) (1 diff)
-
trunk/build/switch/view.js (modified) (1 diff)
-
trunk/includes/class-wdevs-tax-switch-block-switch.php (modified) (1 diff)
-
trunk/includes/class-wdevs-tax-switch-block.php (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-en_US-0b9526334c88655b7ec3959bb635770d.json (added)
-
trunk/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-en_US.l10n.php (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-en_US.mo (modified) (previous)
-
trunk/languages/tax-switch-for-woocommerce-en_US.po (modified) (6 diffs)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL-0b9526334c88655b7ec3959bb635770d.json (added)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL.l10n.php (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL.mo (modified) (previous)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL.po (modified) (7 diffs)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE-0b9526334c88655b7ec3959bb635770d.json (added)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE.l10n.php (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE.mo (modified) (previous)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE.po (modified) (6 diffs)
-
trunk/languages/tax-switch-for-woocommerce.pot (modified) (5 diffs)
-
trunk/public/class-wdevs-tax-switch-public.php (modified) (3 diffs)
-
trunk/wdevs-tax-switch.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tax-switch-for-woocommerce/trunk/README.txt
r3455509 r3460537 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.6. 86 Stable tag: 1.6.9 7 7 Requires PHP: 7.2 8 8 License: GPL-2.0+ … … 100 100 * `switch-label-excl`: Sets the text for the "excluding VAT" label. 101 101 - Default: Uses the text set in the plugin settings or "Excl. VAT" if not set. 102 * `switch-aria-label`: Sets the aria label of the switch. 103 - Default: Uses the text set in the plugin settings or "Switch between prices including and excluding VAT" if not set. 102 104 103 105 Example with custom attributes: 104 106 105 `[wdevs_tax_switch class-name="is-style-inline" switch-type="switch" switch-color="#ffffff" switch-color-checked="#000000" switch-background-color="#000000" switch-background-color-checked="#4CAF50" switch-text-color="#FF0000" switch-label-incl="Incl. tax" switch-label-excl="Excl. tax" ]`107 `[wdevs_tax_switch class-name="is-style-inline" switch-type="switch" switch-color="#ffffff" switch-color-checked="#000000" switch-background-color="#000000" switch-background-color-checked="#4CAF50" switch-text-color="#FF0000" switch-label-incl="Incl. tax" switch-label-excl="Excl. tax" switch-aria-label="Switch between prices including and excluding VAT"]` 106 108 107 109 … … 207 209 * YITH WooCommerce Role Based Prices 208 210 * WooCommerce Dynamic Pricing and Discount Rules 211 * Price Based on Country for WooCommerce 209 212 210 213 If you encounter any compatibility issues with other plugins or themes, please let us know. Your feedback helps us improve the plugin and extend compatibility to more third-party solutions. … … 243 246 244 247 == Changelog == 248 = 1.6.9 = 249 * Added new option for setting the tax switch aria-label 250 * Added new filter: `wdevs_tax_switch_skip_next_price_wrap` to allow third-parties to skip the next price wrapping 251 245 252 = 1.6.8 = 246 253 * Added compatibility for Elementor Popup -
tax-switch-for-woocommerce/trunk/build/label/block.json
r3455509 r3460537 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch-label", 5 "version": "1.6. 8",5 "version": "1.6.9", 6 6 "title": "Tax Switch text label", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/build/label/index.asset.php
r3410740 r3460537 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => ' 323be06952723dc3fc25');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'a4955e8c23b9c77d2369'); -
tax-switch-for-woocommerce/trunk/build/label/index.js
r3410740 r3460537 1 (()=>{"use strict";var e,o={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data}, 487:(e,o,l)=>{const t=window.wp.blocks,r=window.wp.i18n,a=window.wp.blockEditor,n=window.wp.components;var i=l(67),s=l(790);const c=JSON.parse('{"UU":"wdevs/tax-switch-label"}');(0,t.registerBlockType)(c.UU,{edit:function({attributes:e,setAttributes:o}){const{labelTextColor:l,labelTextColorChecked:t,labelTextIncl:c,labelTextExcl:w}=e,{originalTaxDisplay:x}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,s.jsxs)("div",{...(0,a.useBlockProps)(),children:[(0,s.jsxs)(a.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,r.__)("Labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,s.jsx)(n.TextControl,{label:(0,r.__)("Including VAT label","tax-switch-for-woocommerce"),value:c,onChange:e=>o({labelTextIncl:e})}),(0,s.jsx)(n.TextControl,{label:(0,r.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:w,onChange:e=>o({labelTextExcl:e})})]}),(0,s.jsx)(a.PanelColorSettings,{title:(0,r.__)("Label colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:l,onChange:e=>o({labelTextColor:e}),label:(0,r.__)("Label excluding VAT color","tax-switch-for-woocommerce")},{value:t,onChange:e=>o({labelTextColorChecked:e}),label:(0,r.__)("Label including VAT color","tax-switch-for-woocommerce")}]})]}),(0,s.jsx)(i.A,{...e,originalTaxDisplay:x})]})},save:function(){return(0,s.jsx)("div",{...a.useBlockProps.save()})}})},790:e=>{e.exports=window.ReactJSXRuntime}},l={};function t(e){var r=l[e];if(void 0!==r)return r.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,t),a.exports}t.m=o,e=[],t.O=(o,l,r,a)=>{if(!l){var n=1/0;for(w=0;w<e.length;w++){for(var[l,r,a]=e[w],i=!0,s=0;s<l.length;s++)(!1&a||n>=a)&&Object.keys(t.O).every(e=>t.O[e](l[s]))?l.splice(s--,1):(i=!1,a<n&&(n=a));if(i){e.splice(w--,1);var c=r();void 0!==c&&(o=c)}}return o}a=a||0;for(var w=e.length;w>0&&e[w-1][2]>a;w--)e[w]=e[w-1];e[w]=[l,r,a]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.j=38,(()=>{var e={38:0,722:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var r,a,[n,i,s]=l,c=0;if(n.some(o=>0!==e[o])){for(r in i)t.o(i,r)&&(t.m[r]=i[r]);if(s)var w=s(t)}for(o&&o(l);c<n.length;c++)a=n[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(w)},l=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var r=t.O(void 0,[320,722],()=>t(487));r=t.O(r)})();1 (()=>{"use strict";var e,o={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},723:e=>{e.exports=window.wp.i18n},790:e=>{e.exports=window.ReactJSXRuntime},840:(e,o,l)=>{const t=window.wp.blocks;var r=l(723);const a=window.wp.blockEditor,n=window.wp.components;var i=l(67),s=l(790);const c=JSON.parse('{"UU":"wdevs/tax-switch-label"}');(0,t.registerBlockType)(c.UU,{edit:function({attributes:e,setAttributes:o}){const{labelTextColor:l,labelTextColorChecked:t,labelTextIncl:c,labelTextExcl:w}=e,{originalTaxDisplay:x}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,s.jsxs)("div",{...(0,a.useBlockProps)(),children:[(0,s.jsxs)(a.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,r.__)("Labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,s.jsx)(n.TextControl,{label:(0,r.__)("Including VAT label","tax-switch-for-woocommerce"),value:c,onChange:e=>o({labelTextIncl:e})}),(0,s.jsx)(n.TextControl,{label:(0,r.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:w,onChange:e=>o({labelTextExcl:e})})]}),(0,s.jsx)(a.PanelColorSettings,{title:(0,r.__)("Label colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:l,onChange:e=>o({labelTextColor:e}),label:(0,r.__)("Label excluding VAT color","tax-switch-for-woocommerce")},{value:t,onChange:e=>o({labelTextColorChecked:e}),label:(0,r.__)("Label including VAT color","tax-switch-for-woocommerce")}]})]}),(0,s.jsx)(i.A,{...e,originalTaxDisplay:x})]})},save:function(){return(0,s.jsx)("div",{...a.useBlockProps.save()})}})}},l={};function t(e){var r=l[e];if(void 0!==r)return r.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,t),a.exports}t.m=o,e=[],t.O=(o,l,r,a)=>{if(!l){var n=1/0;for(w=0;w<e.length;w++){for(var[l,r,a]=e[w],i=!0,s=0;s<l.length;s++)(!1&a||n>=a)&&Object.keys(t.O).every(e=>t.O[e](l[s]))?l.splice(s--,1):(i=!1,a<n&&(n=a));if(i){e.splice(w--,1);var c=r();void 0!==c&&(o=c)}}return o}a=a||0;for(var w=e.length;w>0&&e[w-1][2]>a;w--)e[w]=e[w-1];e[w]=[l,r,a]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.j=38,(()=>{var e={38:0,722:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var r,a,[n,i,s]=l,c=0;if(n.some(o=>0!==e[o])){for(r in i)t.o(i,r)&&(t.m[r]=i[r]);if(s)var w=s(t)}for(o&&o(l);c<n.length;c++)a=n[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(w)},l=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var r=t.O(void 0,[320,722],()=>t(840));r=t.O(r)})(); -
tax-switch-for-woocommerce/trunk/build/shared/shared.asset.php
r3447052 r3460537 1 <?php return array('dependencies' => array(), 'version' => '6 e41829bb611003680aa');1 <?php return array('dependencies' => array(), 'version' => '67d6e6021b66ee1ffc4b'); -
tax-switch-for-woocommerce/trunk/build/shared/shared.js
r3447052 r3460537 1 "use strict";(globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[]).push([[320],{67:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87), n=s(143),c=s(159),a=s(75),l=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s},this.unsubscribe=(0,n.subscribe)(()=>{const t=(0,a.ir)();this.state.isSwitched!==t&&this.setState({isSwitched:t})})}getInitialState(t){const e=c.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,a.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return c.A.displayIncludingVat(t,e)}getCurrentLabel(){const{labelTextIncl:t,labelTextExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}render(){const{labelTextColor:t,labelTextColorChecked:e,labelTextIncl:s,labelTextExcl:i}=this.props;if(!s&&!i)return"";const n=this.displayIncludingVat();return(0,l.jsx)("span",{className:"wdevs-tax-switch-labels "+(n?"wts-price-incl":"wts-price-excl"),style:{"--wts-text-color":t,"--wts-text-color-checked":e},children:(0,l.jsx)("span",{className:"wdevs-tax-switch-label-text",children:this.getCurrentLabel()})})}}const o=/^(38|733)$/.test(s.j)?r:null},75:(t,e,s)=>{s.d(e,{D_:()=>w,WJ:()=>u,ir:()=>d,rj:()=>h,z6:()=>p});var i=s(143);const n="wdevs_tax_switch_is_switched",c="wdevs-tax-switch/store",a="SET_IS_SWITCHED",l="SET_IS_DISABLED",r={setIsSwitched:t=>({type:a,value:t}),saveIsSwitched:t=>(localStorage.setItem(n,JSON.stringify(t)),{type:a,value:t}),setIsDisabled:t=>({type:l,value:t})};let o=(0,i.select)(c);function d(){return(0,i.select)(c).getIsSwitched()}function h(t){return(0,i.dispatch)(c).saveIsSwitched(t)}function u(t){return(0,i.dispatch)(c).setIsSwitched(t)}function w(){return(0,i.select)(c).getIsDisabled()}function p(t){return(0,i.dispatch)(c).setIsDisabled(t)}void 0===o&&(o=(0,i.createReduxStore)(c,{reducer:(t=(()=>{const t=localStorage.getItem(n);return{isSwitched:!!t&&JSON.parse(t),isDisabled:!1}})(),e)=>{switch(e.type){case a:return{...t,isSwitched:e.value};case l:return{...t,isDisabled:e.value};default:return t}},actions:r,selectors:{getIsSwitched:t=>t.isSwitched,getIsDisabled:t=>t.isDisabled}}),(0,i.register)(o))},159:(t,e,s)=>{s.d(e,{A:()=>n});var i=s(75);const n=285!=s.j?class{static togglePriceClasses(t,e){const s=this.displayIncludingVat(t,e);document.querySelectorAll(".wts-price-wrapper").forEach(t=>{const e=t.querySelector(":scope > .wts-price-incl"),i=t.querySelector(":scope > .wts-price-excl");s?(e.classList.remove("wts-inactive"),e.classList.add("wts-active"),i.classList.remove("wts-active"),i.classList.add("wts-inactive")):(e.classList.remove("wts-active"),e.classList.add("wts-inactive"),i.classList.remove("wts-inactive"),i.classList.add("wts-active"))})}static displayIncludingVat(t,e){return null==e&&(e=(0,i.ir)()),"incl"===t&&!e||"excl"===t&&e}static parseBooleanValue(t){return!!t&&JSON.parse(t)}static setPriceClasses(t){return this.togglePriceClasses(t,(0,i.ir)())}static calculateAlternatePrice(t,e,s){if(!t||t<=0||!s)return t;const i=1+s/100;let n;return n="incl"===e?t/i:t*i,Number(n.toFixed(2))}static calculateOriginalPrice(t,e,s){let i="excl";return"excl"===e&&(i="incl"),this.calculateAlternatePrice(t,i,s)}}:null},538:(t,e,s)=>{function i(){return!(window.wtsViewObject||{checkPriceElements:!1}).checkPriceElements||document.querySelectorAll(".wts-price-wrapper").length>0}function n(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t,{once:!0})}s.d(e,{I:()=>i,P:()=>n})},651:(t,e,s)=>{s.d(e,{A:()=>i});const i=/^(202|285|38|657|733|793|894)$/.test(s.j)?null:class{constructor(t){this.originalTaxDisplay=t}build(t,e,s,i=null){const n=this.getPricesBasedOnTaxDisplay(e,s),c=n.including,a=n.excluding;function l(t){return t?"wts-active":"wts-inactive"}function r(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n ${e}\n </span>\n `}let o=`\n <span class="wts-price-container">\n <span class="wts-price-wrapper">\n ${r(c,!0)}\n ${r(a,!1)}\n </span>\n `;if(i){function d(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n ${e}\n </span>\n `}o+=`\n <span class="wts-price-wrapper">\n ${d(i.including,!0)}\n ${d(i.excluding,!1)}\n </span>\n `}return o+="</span>",o.trim()}getPricesBasedOnTaxDisplay(t,e){return"incl"===this.originalTaxDisplay?{including:t,excluding:e}:{including:e,excluding:t}}static getVatTexts(t=null){const e=document.createTextNode(" ").nodeValue;let s,i;if(window.wtsCompatibilityObject&&window.wtsCompatibilityObject.includingVatText&&window.wtsCompatibilityObject.excludingVatText)return s=window.wtsCompatibilityObject.includingVatText,i=window.wtsCompatibilityObject.excludingVatText,{including:e+`<span class="wts-vat-text">${s}</span>`,excluding:e+`<span class="wts-vat-text">${i}</span>`};if(t){const n=jQuery(t);if(s=n.find(".wts-price-incl .wts-vat-text").first(),i=n.find(".wts-price-excl .wts-vat-text").first(),s.length||i.length)return{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}return s=jQuery(".wts-price-wrapper .wts-price-incl .wts-vat-text").first(),i=jQuery(".wts-price-wrapper .wts-price-excl .wts-vat-text").first(),{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}static getVatTextElement(t,e,s){return`<span class="wts-price-wrapper">\n <span class="wts-price-incl ${t?"wts-active":"wts-inactive"}">\n ${e}\n </span>\n <span class="wts-price-excl ${t?"wts-inactive":"wts-active"}">\n ${s}\n </span>\n </span>\n `}}},983:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),n=s(143),c=s(159),a=s(75),l=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s,isDisabled:(0,a.D_)()},this.handleChange=this.handleChange.bind(this),this.unsubscribe=(0,n.subscribe)(()=>{const t=(0,a.ir)(),e=(0,a.D_)();this.state.isSwitched===t&&this.state.isDisabled===e||this.setState({isSwitched:t,isDisabled:e})})}getInitialState(t){const e=c.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,a.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}handleChange(){const t=!this.state.isSwitched;this.setState({isSwitched:t},()=>{this.state.readOnly?(0,a.WJ)(t):((0,a.rj)(t),this.fireSwitchChangeEvent(t)),this.togglePriceClasses()})}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return c.A.displayIncludingVat(t,e)}togglePriceClasses(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return c.A.togglePriceClasses(t,e)}getCurrentLabel(){const{switchLabelIncl:t,switchLabelExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}fireSwitchChangeEvent(t){const e=new CustomEvent("wdevs-tax-switch-changed",{detail:{isSwitched:t,displayIncludingVat:this.displayIncludingVat()}});document.dispatchEvent(e)}renderButtons(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:n,switchLabelIncl:c,switchLabelExcl:a}=this.props,r=this.displayIncludingVat(),{isDisabled:o}=this.state;return(0,l.jsxs)("div",{className:"wdevs-tax-switch wdevs-tax-buttons",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":n},children:[(0,l.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"wdevs-tax-button-active":""),disabled:o,onClick:()=>{r||this.handleChange()},children:c||"Incl. VAT"}),(0,l.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"":"wdevs-tax-button-active"),disabled:o,onClick:()=>{r&&this.handleChange()},children:a||"Excl. VAT"})]})}renderToggleSwitch(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:n,switchLabelIncl:c,switchLabelExcl:a}=this.props,r=this.displayIncludingVat(),o=c||a,{isDisabled:d}=this.state;return(0,l.jsxs)("div",{className:"wdevs-tax-switch",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":n},children:[(0,l.jsxs)("label",{className:"wdevs-tax-switch-label",children:[(0,l.jsx)("input",{type:"checkbox",name:"wdevs-tax-switch-checkbox",onChange:this.handleChange,checked:r,disabled:d,className:"wdevs-tax-switch-checkbox"}),(0,l.jsx)("span",{className:"wdevs-tax-switch-slider"})]}),o&&(0,l.jsx)("span",{className:"wdevs-tax-switch-label-text",onClick:this.handleChange,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleChange())},children:this.getCurrentLabel()})]})}render(){const{switchType:t="switch"}=this.props;return"buttons"===t?this.renderButtons():this.renderToggleSwitch()}}const o=/^(202|793)$/.test(s.j)?r:null}}]);1 "use strict";(globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[]).push([[320],{67:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),c=s(143),n=s(159),a=s(75),l=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s},this.unsubscribe=(0,c.subscribe)(()=>{const t=(0,a.ir)();this.state.isSwitched!==t&&this.setState({isSwitched:t})})}getInitialState(t){const e=n.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,a.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.displayIncludingVat(t,e)}getCurrentLabel(){const{labelTextIncl:t,labelTextExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}render(){const{labelTextColor:t,labelTextColorChecked:e,labelTextIncl:s,labelTextExcl:i}=this.props;if(!s&&!i)return"";const c=this.displayIncludingVat();return(0,l.jsx)("span",{className:"wdevs-tax-switch-labels "+(c?"wts-price-incl":"wts-price-excl"),style:{"--wts-text-color":t,"--wts-text-color-checked":e},children:(0,l.jsx)("span",{className:"wdevs-tax-switch-label-text",children:this.getCurrentLabel()})})}}const o=/^(38|733)$/.test(s.j)?r:null},75:(t,e,s)=>{s.d(e,{D_:()=>u,WJ:()=>w,ir:()=>d,rj:()=>h,z6:()=>p});var i=s(143);const c="wdevs_tax_switch_is_switched",n="wdevs-tax-switch/store",a="SET_IS_SWITCHED",l="SET_IS_DISABLED",r={setIsSwitched:t=>({type:a,value:t}),saveIsSwitched:t=>(localStorage.setItem(c,JSON.stringify(t)),{type:a,value:t}),setIsDisabled:t=>({type:l,value:t})};let o=(0,i.select)(n);function d(){return(0,i.select)(n).getIsSwitched()}function h(t){return(0,i.dispatch)(n).saveIsSwitched(t)}function w(t){return(0,i.dispatch)(n).setIsSwitched(t)}function u(){return(0,i.select)(n).getIsDisabled()}function p(t){return(0,i.dispatch)(n).setIsDisabled(t)}void 0===o&&(o=(0,i.createReduxStore)(n,{reducer:(t=(()=>{const t=localStorage.getItem(c);return{isSwitched:!!t&&JSON.parse(t),isDisabled:!1}})(),e)=>{switch(e.type){case a:return{...t,isSwitched:e.value};case l:return{...t,isDisabled:e.value};default:return t}},actions:r,selectors:{getIsSwitched:t=>t.isSwitched,getIsDisabled:t=>t.isDisabled}}),(0,i.register)(o))},159:(t,e,s)=>{s.d(e,{A:()=>c});var i=s(75);const c=285!=s.j?class{static togglePriceClasses(t,e){const s=this.displayIncludingVat(t,e);document.querySelectorAll(".wts-price-wrapper").forEach(t=>{const e=t.querySelector(":scope > .wts-price-incl"),i=t.querySelector(":scope > .wts-price-excl");s?(e.classList.remove("wts-inactive"),e.classList.add("wts-active"),i.classList.remove("wts-active"),i.classList.add("wts-inactive")):(e.classList.remove("wts-active"),e.classList.add("wts-inactive"),i.classList.remove("wts-inactive"),i.classList.add("wts-active"))})}static displayIncludingVat(t,e){return null==e&&(e=(0,i.ir)()),"incl"===t&&!e||"excl"===t&&e}static parseBooleanValue(t){return!!t&&JSON.parse(t)}static setPriceClasses(t){return this.togglePriceClasses(t,(0,i.ir)())}static calculateAlternatePrice(t,e,s){if(!t||t<=0||!s)return t;const i=1+s/100;let c;return c="incl"===e?t/i:t*i,Number(c.toFixed(2))}static calculateOriginalPrice(t,e,s){let i="excl";return"excl"===e&&(i="incl"),this.calculateAlternatePrice(t,i,s)}}:null},538:(t,e,s)=>{function i(){return!(window.wtsViewObject||{checkPriceElements:!1}).checkPriceElements||document.querySelectorAll(".wts-price-wrapper").length>0}function c(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t,{once:!0})}s.d(e,{I:()=>i,P:()=>c})},651:(t,e,s)=>{s.d(e,{A:()=>i});const i=/^(202|285|38|657|733|793|894)$/.test(s.j)?null:class{constructor(t){this.originalTaxDisplay=t}build(t,e,s,i=null){const c=this.getPricesBasedOnTaxDisplay(e,s),n=c.including,a=c.excluding;function l(t){return t?"wts-active":"wts-inactive"}function r(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n ${e}\n </span>\n `}let o=`\n <span class="wts-price-container">\n <span class="wts-price-wrapper">\n ${r(n,!0)}\n ${r(a,!1)}\n </span>\n `;if(i){function d(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n ${e}\n </span>\n `}o+=`\n <span class="wts-price-wrapper">\n ${d(i.including,!0)}\n ${d(i.excluding,!1)}\n </span>\n `}return o+="</span>",o.trim()}getPricesBasedOnTaxDisplay(t,e){return"incl"===this.originalTaxDisplay?{including:t,excluding:e}:{including:e,excluding:t}}static getVatTexts(t=null){const e=document.createTextNode(" ").nodeValue;let s,i;if(window.wtsCompatibilityObject&&window.wtsCompatibilityObject.includingVatText&&window.wtsCompatibilityObject.excludingVatText)return s=window.wtsCompatibilityObject.includingVatText,i=window.wtsCompatibilityObject.excludingVatText,{including:e+`<span class="wts-vat-text">${s}</span>`,excluding:e+`<span class="wts-vat-text">${i}</span>`};if(t){const c=jQuery(t);if(s=c.find(".wts-price-incl .wts-vat-text").first(),i=c.find(".wts-price-excl .wts-vat-text").first(),s.length||i.length)return{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}return s=jQuery(".wts-price-wrapper .wts-price-incl .wts-vat-text").first(),i=jQuery(".wts-price-wrapper .wts-price-excl .wts-vat-text").first(),{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}static getVatTextElement(t,e,s){return`<span class="wts-price-wrapper">\n <span class="wts-price-incl ${t?"wts-active":"wts-inactive"}">\n ${e}\n </span>\n <span class="wts-price-excl ${t?"wts-inactive":"wts-active"}">\n ${s}\n </span>\n </span>\n `}}},983:(t,e,s)=>{s.d(e,{A:()=>d});var i=s(87),c=s(143),n=s(723),a=s(159),l=s(75),r=s(790);class o extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s,isDisabled:(0,l.D_)()},this.handleChange=this.handleChange.bind(this),this.unsubscribe=(0,c.subscribe)(()=>{const t=(0,l.ir)(),e=(0,l.D_)();this.state.isSwitched===t&&this.state.isDisabled===e||this.setState({isSwitched:t,isDisabled:e})})}getInitialState(t){const e=a.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,l.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}handleChange(){const t=!this.state.isSwitched;this.setState({isSwitched:t},()=>{this.state.readOnly?(0,l.WJ)(t):((0,l.rj)(t),this.fireSwitchChangeEvent(t)),this.togglePriceClasses()})}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return a.A.displayIncludingVat(t,e)}togglePriceClasses(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return a.A.togglePriceClasses(t,e)}getToggleSwitchAriaLabel(){const{switchAriaLabel:t,switchLabelIncl:e,switchLabelExcl:s}=this.props;return t||(e&&s?e+" / "+s:(0,n.__)("Switch between prices including and excluding VAT","tax-switch-for-woocommerce"))}getCurrentLabel(){const{switchLabelIncl:t,switchLabelExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}fireSwitchChangeEvent(t){const e=new CustomEvent("wdevs-tax-switch-changed",{detail:{isSwitched:t,displayIncludingVat:this.displayIncludingVat()}});document.dispatchEvent(e)}renderButtons(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:a,switchLabelExcl:l}=this.props,o=this.displayIncludingVat(),{isDisabled:d}=this.state;return(0,r.jsxs)("div",{className:"wdevs-tax-switch wdevs-tax-buttons",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,r.jsx)("button",{type:"button",className:"wdevs-tax-button "+(o?"wdevs-tax-button-active":""),disabled:d,onClick:()=>{o||this.handleChange()},children:a||(0,n.__)("Incl. VAT","tax-switch-for-woocommerce")}),(0,r.jsx)("button",{type:"button",className:"wdevs-tax-button "+(o?"":"wdevs-tax-button-active"),disabled:d,onClick:()=>{o&&this.handleChange()},children:l||(0,n.__)("Excl. VAT","tax-switch-for-woocommerce")})]})}renderToggleSwitch(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:n,switchLabelExcl:a}=this.props,l=this.displayIncludingVat(),o=n||a,{isDisabled:d}=this.state;return(0,r.jsxs)("div",{className:"wdevs-tax-switch",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,r.jsxs)("label",{className:"wdevs-tax-switch-label",children:[(0,r.jsx)("input",{type:"checkbox",name:"wdevs-tax-switch-checkbox",onChange:this.handleChange,checked:l,disabled:d,className:"wdevs-tax-switch-checkbox","aria-label":this.getToggleSwitchAriaLabel()}),(0,r.jsx)("span",{className:"wdevs-tax-switch-slider"})]}),o&&(0,r.jsx)("span",{className:"wdevs-tax-switch-label-text",onClick:this.handleChange,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleChange())},children:this.getCurrentLabel()})]})}render(){const{switchType:t="switch"}=this.props;return"buttons"===t?this.renderButtons():this.renderToggleSwitch()}}const d=/^(202|793)$/.test(s.j)?o:null}}]); -
tax-switch-for-woocommerce/trunk/build/switch/block.json
r3455509 r3460537 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch", 5 "version": "1.6. 8",5 "version": "1.6.9", 6 6 "title": "Tax Switch for WooCommerce", 7 7 "category": "woocommerce", … … 33 33 "type": "string" 34 34 }, 35 "switchAriaLabel": { 36 "type": "string" 37 }, 35 38 "switchType": { 36 39 "type": "string", -
tax-switch-for-woocommerce/trunk/build/switch/index.asset.php
r3410740 r3460537 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => ' 0908ab0c3c66b5a44e54');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'a6556b91f7baff21f53d'); -
tax-switch-for-woocommerce/trunk/build/switch/index.js
r3410740 r3460537 1 (()=>{"use strict";var o,e={87:o=>{o.exports=window.wp.element},143:o=>{o.exports=window.wp.data}, 295:(o,e,t)=>{const r=window.wp.blocks,c=window.wp.i18n,l=window.wp.blockEditor,i=window.wp.components;var a=t(983),n=t(790);const s=JSON.parse('{"UU":"wdevs/tax-switch"}');(0,r.registerBlockType)(s.UU,{edit:function({attributes:o,setAttributes:e}){const{switchType:t,switchColor:r,switchColorChecked:s,switchBackgroundColor:w,switchBackgroundColorChecked:h,switchTextColor:d,switchLabelIncl:u,switchLabelExcl:x}=o,{originalTaxDisplay:p}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,n.jsxs)("div",{...(0,l.useBlockProps)(),children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsx)(i.PanelBody,{title:(0,c.__)("Display options","tax-switch-for-woocommerce"),initialOpen:!0,children:(0,n.jsx)(i.SelectControl,{label:(0,c.__)("Switch type","tax-switch-for-woocommerce"),value:t,options:[{label:(0,c.__)("Toggle switch","tax-switch-for-woocommerce"),value:"switch"},{label:(0,c.__)("Buttons","tax-switch-for-woocommerce"),value:"buttons"}],onChange:o=>e({switchType:o})})}),(0,n.jsx)(l.PanelColorSettings,{title:(0,c.__)("Switch colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:r,onChange:o=>e({switchColor:o}),label:(0,c.__)("Switch color","tax-switch-for-woocommerce")},{value:s,onChange:o=>e({switchColorChecked:o}),label:(0,c.__)("Switch color checked","tax-switch-for-woocommerce")},{value:w,onChange:o=>e({switchBackgroundColor:o}),label:(0,c.__)("Background color","tax-switch-for-woocommerce")},{value:h,onChange:o=>e({switchBackgroundColorChecked:o}),label:(0,c.__)("Background color checked","tax-switch-for-woocommerce")},{value:d,onChange:o=>e({switchTextColor:o}),label:(0,c.__)("Text color","tax-switch-for-woocommerce")}]}),(0,n.jsxs)(i.PanelBody,{title:(0,c.__)("Switch labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,n.jsx)(i.TextControl,{label:(0,c.__)("Including VAT label","tax-switch-for-woocommerce"),value:u,onChange:o=>e({switchLabelIncl:o})}),(0,n.jsx)(i.TextControl,{label:(0,c.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:x,onChange:o=>e({switchLabelExcl:o})})]})]}),(0,n.jsx)(a.A,{...o,readOnly:!0,originalTaxDisplay:p})]})},save:function({attributes:o}){return(0,n.jsx)("div",{...l.useBlockProps.save()})}})},790:o=>{o.exports=window.ReactJSXRuntime}},t={};function r(o){var c=t[o];if(void 0!==c)return c.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,r),l.exports}r.m=e,o=[],r.O=(e,t,c,l)=>{if(!t){var i=1/0;for(w=0;w<o.length;w++){for(var[t,c,l]=o[w],a=!0,n=0;n<t.length;n++)(!1&l||i>=l)&&Object.keys(r.O).every(o=>r.O[o](t[n]))?t.splice(n--,1):(a=!1,l<i&&(i=l));if(a){o.splice(w--,1);var s=c();void 0!==s&&(e=s)}}return e}l=l||0;for(var w=o.length;w>0&&o[w-1][2]>l;w--)o[w]=o[w-1];o[w]=[t,c,l]},r.n=o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return r.d(e,{a:e}),e},r.d=(o,e)=>{for(var t in e)r.o(e,t)&&!r.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},r.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),r.j=202,(()=>{var o={202:0,422:0};r.O.j=e=>0===o[e];var e=(e,t)=>{var c,l,[i,a,n]=t,s=0;if(i.some(e=>0!==o[e])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(n)var w=n(r)}for(e&&e(t);s<i.length;s++)l=i[s],r.o(o,l)&&o[l]&&o[l][0](),o[l]=0;return r.O(w)},t=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})();var c=r.O(void 0,[320,422],()=>r(295));c=r.O(c)})();1 (()=>{"use strict";var o,e={87:o=>{o.exports=window.wp.element},143:o=>{o.exports=window.wp.data},584:(o,e,t)=>{const r=window.wp.blocks;var c=t(723);const l=window.wp.blockEditor,i=window.wp.components;var a=t(983),s=t(790);const n=JSON.parse('{"UU":"wdevs/tax-switch"}');(0,r.registerBlockType)(n.UU,{edit:function({attributes:o,setAttributes:e}){const{switchType:t,switchColor:r,switchColorChecked:n,switchBackgroundColor:w,switchBackgroundColorChecked:h,switchTextColor:d,switchLabelIncl:x,switchLabelExcl:u,switchAriaLabel:p}=o,{originalTaxDisplay:b}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,s.jsxs)("div",{...(0,l.useBlockProps)(),children:[(0,s.jsxs)(l.InspectorControls,{children:[(0,s.jsx)(i.PanelBody,{title:(0,c.__)("Display options","tax-switch-for-woocommerce"),initialOpen:!0,children:(0,s.jsx)(i.SelectControl,{label:(0,c.__)("Switch type","tax-switch-for-woocommerce"),value:t,options:[{label:(0,c.__)("Toggle switch","tax-switch-for-woocommerce"),value:"switch"},{label:(0,c.__)("Buttons","tax-switch-for-woocommerce"),value:"buttons"}],onChange:o=>e({switchType:o})})}),(0,s.jsx)(l.PanelColorSettings,{title:(0,c.__)("Switch colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:r,onChange:o=>e({switchColor:o}),label:(0,c.__)("Switch color","tax-switch-for-woocommerce")},{value:n,onChange:o=>e({switchColorChecked:o}),label:(0,c.__)("Switch color checked","tax-switch-for-woocommerce")},{value:w,onChange:o=>e({switchBackgroundColor:o}),label:(0,c.__)("Background color","tax-switch-for-woocommerce")},{value:h,onChange:o=>e({switchBackgroundColorChecked:o}),label:(0,c.__)("Background color checked","tax-switch-for-woocommerce")},{value:d,onChange:o=>e({switchTextColor:o}),label:(0,c.__)("Text color","tax-switch-for-woocommerce")}]}),(0,s.jsxs)(i.PanelBody,{title:(0,c.__)("Switch labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,s.jsx)(i.TextControl,{label:(0,c.__)("Including VAT label","tax-switch-for-woocommerce"),value:x,onChange:o=>e({switchLabelIncl:o})}),(0,s.jsx)(i.TextControl,{label:(0,c.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:u,onChange:o=>e({switchLabelExcl:o})}),(0,s.jsx)(i.TextControl,{label:(0,c.__)("Switch aria label","tax-switch-for-woocommerce"),value:p,onChange:o=>e({switchAriaLabel:o})})]})]}),(0,s.jsx)(a.A,{...o,readOnly:!0,originalTaxDisplay:b})]})},save:function({attributes:o}){return(0,s.jsx)("div",{...l.useBlockProps.save()})}})},723:o=>{o.exports=window.wp.i18n},790:o=>{o.exports=window.ReactJSXRuntime}},t={};function r(o){var c=t[o];if(void 0!==c)return c.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,r),l.exports}r.m=e,o=[],r.O=(e,t,c,l)=>{if(!t){var i=1/0;for(w=0;w<o.length;w++){for(var[t,c,l]=o[w],a=!0,s=0;s<t.length;s++)(!1&l||i>=l)&&Object.keys(r.O).every(o=>r.O[o](t[s]))?t.splice(s--,1):(a=!1,l<i&&(i=l));if(a){o.splice(w--,1);var n=c();void 0!==n&&(e=n)}}return e}l=l||0;for(var w=o.length;w>0&&o[w-1][2]>l;w--)o[w]=o[w-1];o[w]=[t,c,l]},r.n=o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return r.d(e,{a:e}),e},r.d=(o,e)=>{for(var t in e)r.o(e,t)&&!r.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},r.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),r.j=202,(()=>{var o={202:0,422:0};r.O.j=e=>0===o[e];var e=(e,t)=>{var c,l,[i,a,s]=t,n=0;if(i.some(e=>0!==o[e])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(s)var w=s(r)}for(e&&e(t);n<i.length;n++)l=i[n],r.o(o,l)&&o[l]&&o[l][0](),o[l]=0;return r.O(w)},t=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})();var c=r.O(void 0,[320,422],()=>r(584));c=r.O(c)})(); -
tax-switch-for-woocommerce/trunk/build/switch/view.asset.php
r3455509 r3460537 1 <?php return array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-data', 'wp-element' ), 'version' => 'eec777325cd6e2556e73');1 <?php return array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '55f1e2913936c240fcf8'); -
tax-switch-for-woocommerce/trunk/build/switch/view.js
r3455509 r3460537 1 (()=>{"use strict";var e,t={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},617:(e,t,s)=>{var a=s(87),n=s(983),o=s(159);const i=window.jQuery;var r=s.n(i);const c=class{static initialize(e){this.registerWooCommerceEvents(e),this.registerDynamicContentEvents()}static registerWooCommerceEvents(e){r()(".variations_form").on("show_variation",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(".variations_form").on("reset_data",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(document).ajaxSuccess(function(t,s,a){a&&a.data&&"string"==typeof a.data&&["get_variable_product_bulk_table"].some(e=>a.data.includes(e))&&setTimeout(function(){o.A.setPriceClasses(e)},10)}),["jet-engine/listing-grid/after-load-more","facetwp-loaded","experimental-flatsome-pjax-request-done","flatsome-relay-request-done","flatsome-infiniteScroll-append","vpd_after_price_fadein","awsShowingResults","wc_fragments_loaded","pjax:success","fibosearch/show-suggestions","wc_price_based_country_after_ajax_geolocation"].forEach(function(t){r()(document).on(t,function(t,s){o.A.setPriceClasses(e)})})}static registerDynamicContentEvents(){["elementor/popup/show"].forEach(function(e){document.addEventListener(e,function(e){document.dispatchEvent(new CustomEvent("wdevs-tax-switch-appeared"))})})}};var l=s(538),d=s(790);let u=!1;const f=()=>{if(!(0,l.I)())return;const e=document.querySelectorAll(".wp-block-wdevs-tax-switch");if(e.length>0){const t=window.wtsViewObject||{originalTaxDisplay:"incl"};(e=>{o.A.setPriceClasses(e.originalTaxDisplay),u||(c.initialize(e.originalTaxDisplay),u=!0)})(t),e.forEach(e=>{e&&((e,t)=>{const s={...e.dataset,...t};(0,a.createRoot)(e).render((0,d.jsx)(a.Suspense,{fallback:(0,d.jsx)("div",{className:"wp-block-placeholder"}),children:(0,d.jsx)(n.A,{...s})}))})(e,t)})}};(0,l.P)(()=>{f()}),document.addEventListener("wdevs-tax-switch-appeared",()=>{f()})},790:e=>{e.exports=window.ReactJSXRuntime}},s={};function a(e){var n=s[e];if(void 0!==n)return n.exports;var o=s[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.m=t,e=[],a.O=(t,s,n,o)=>{if(!s){var i=1/0;for(d=0;d<e.length;d++){for(var[s,n,o]=e[d],r=!0,c=0;c<s.length;c++)(!1&o||i>=o)&&Object.keys(a.O).every(e=>a.O[e](s[c]))?s.splice(c--,1):(r=!1,o<i&&(i=o));if(r){e.splice(d--,1);var l=n();void 0!==l&&(t=l)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[s,n,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.j=793,(()=>{var e={793:0};a.O.j=t=>0===e[t];var t=(t,s)=>{var n,o,[i,r,c]=s,l=0;if(i.some(t=>0!==e[t])){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(c)var d=c(a)}for(t&&t(s);l<i.length;l++)o=i[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(d)},s=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var n=a.O(void 0,[320],()=>a(617));n=a.O(n)})();1 (()=>{"use strict";var e,t={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},617:(e,t,s)=>{var n=s(87),a=s(983),o=s(159);const i=window.jQuery;var r=s.n(i);const c=class{static initialize(e){this.registerWooCommerceEvents(e),this.registerDynamicContentEvents()}static registerWooCommerceEvents(e){r()(".variations_form").on("show_variation",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(".variations_form").on("reset_data",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(document).ajaxSuccess(function(t,s,n){n&&n.data&&"string"==typeof n.data&&["get_variable_product_bulk_table"].some(e=>n.data.includes(e))&&setTimeout(function(){o.A.setPriceClasses(e)},10)}),["jet-engine/listing-grid/after-load-more","facetwp-loaded","experimental-flatsome-pjax-request-done","flatsome-relay-request-done","flatsome-infiniteScroll-append","vpd_after_price_fadein","awsShowingResults","wc_fragments_loaded","pjax:success","fibosearch/show-suggestions","wc_price_based_country_after_ajax_geolocation"].forEach(function(t){r()(document).on(t,function(t,s){o.A.setPriceClasses(e)})})}static registerDynamicContentEvents(){["elementor/popup/show"].forEach(function(e){document.addEventListener(e,function(e){document.dispatchEvent(new CustomEvent("wdevs-tax-switch-appeared"))})})}};var l=s(538),d=s(790);let u=!1;const p=()=>{if(!(0,l.I)())return;const e=document.querySelectorAll(".wp-block-wdevs-tax-switch");if(e.length>0){const t=window.wtsViewObject||{originalTaxDisplay:"incl"};(e=>{o.A.setPriceClasses(e.originalTaxDisplay),u||(c.initialize(e.originalTaxDisplay),u=!0)})(t),e.forEach(e=>{e&&((e,t)=>{const s={...e.dataset,...t};(0,n.createRoot)(e).render((0,d.jsx)(n.Suspense,{fallback:(0,d.jsx)("div",{className:"wp-block-placeholder"}),children:(0,d.jsx)(a.A,{...s})}))})(e,t)})}};(0,l.P)(()=>{p()}),document.addEventListener("wdevs-tax-switch-appeared",()=>{p()})},723:e=>{e.exports=window.wp.i18n},790:e=>{e.exports=window.ReactJSXRuntime}},s={};function n(e){var a=s[e];if(void 0!==a)return a.exports;var o=s[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,s,a,o)=>{if(!s){var i=1/0;for(d=0;d<e.length;d++){for(var[s,a,o]=e[d],r=!0,c=0;c<s.length;c++)(!1&o||i>=o)&&Object.keys(n.O).every(e=>n.O[e](s[c]))?s.splice(c--,1):(r=!1,o<i&&(i=o));if(r){e.splice(d--,1);var l=a();void 0!==l&&(t=l)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[s,a,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.j=793,(()=>{var e={793:0};n.O.j=t=>0===e[t];var t=(t,s)=>{var a,o,[i,r,c]=s,l=0;if(i.some(t=>0!==e[t])){for(a in r)n.o(r,a)&&(n.m[a]=r[a]);if(c)var d=c(n)}for(t&&t(s);l<i.length;l++)o=i[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},s=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var a=n.O(void 0,[320],()=>n(617));a=n.O(a)})(); -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-block-switch.php
r3410740 r3460537 100 100 'switch-label-incl' => '', 101 101 'switch-label-excl' => '', 102 'switch-aria-label' => '', 102 103 ], $attributes ); 103 104 -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-block.php
r3300428 r3460537 73 73 protected function render_shortcode_html( array $attributes, string $container_class_name, string $content, string $element = 'div' ): string { 74 74 $wpml_active = defined( 'ICL_SITEPRESS_VERSION' ); 75 $translatable_attributes = [ 'switch-label-incl', 'switch-label-excl' ];75 $translatable_attributes = [ 'switch-label-incl', 'switch-label-excl', 'switch-aria-label' ]; 76 76 foreach ( $translatable_attributes as $label_key ) { 77 77 if ( ! empty( $attributes[ $label_key ] ) ) { -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json
r3405724 r3460537 1 {"translation-revision-date": "202 5-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Labels": ["Labels"], "Label colors": ["Label colors"], "Label excluding VAT color": ["Label excluding VAT color"], "Label including VAT color": ["Label including VAT color"]}}}1 {"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Labels": ["Labels"], "Label colors": ["Label colors"], "Label excluding VAT color": ["Label excluding VAT color"], "Label including VAT color": ["Label including VAT color"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json
r3405724 r3460537 1 {"translation-revision-date": "202 5-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Switch type"], "Toggle switch": ["Toggle switch"], "Buttons": ["Buttons"], "Switch color": ["Switch color"], "Switch color checked": ["Switch color checked"], "Background color": ["Background color"], "Background color checked": ["Background color checked"], "Text color": ["Text color"], "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Display options": ["Display options"], "Switch colors": ["Switch colors"], "Switch labels": ["Switch labels"]}}}1 {"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Switch type"], "Toggle switch": ["Toggle switch"], "Buttons": ["Buttons"], "Switch color": ["Switch color"], "Switch color checked": ["Switch color checked"], "Background color": ["Background color"], "Background color checked": ["Background color checked"], "Text color": ["Text color"], "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Display options": ["Display options"], "Switch colors": ["Switch colors"], "Switch labels": ["Switch labels"], "Switch aria label": ["Switch aria label"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US.l10n.php
r3405724 r3460537 1 1 <?php 2 2 // generated by Poedit from tax-switch-for-woocommerce-en_US.po, do not edit directly 3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'202 5-11-29 10:32+0100','po-revision-date'=>'2025-11-29 10:33+0100','translation-revision-date'=>'2025-11-29 10:33+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Settings','Tax switch shortcode'=>'Tax switch shortcode','Configure shortcode'=>'Configure shortcode','Copy shortcode'=>'Copy shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Copy this shortcode and paste it where you want the tax switch to appear.','Close modal'=>'Close modal','Switch type'=>'Switch type','Toggle switch'=>'Toggle switch','Buttons'=>'Buttons','Switch style'=>'Switch style','Default style'=>'Default style','Inline style'=>'Inline style','Switch color'=>'Switch color','Default'=>'Default','Switch color checked'=>'Switch color checked','Background color'=>'Background color','Background color checked'=>'Background color checked','Text color'=>'Text color','Including VAT label'=>'Including VAT label','Incl. VAT'=>'Incl. VAT','Excluding VAT label'=>'Excluding VAT label','Excl. VAT'=>'Excl. VAT','CSS classes'=>'CSS classes','Options: is-style-default, is-style-inline or/and custom classes'=>'Options: is-style-default, is-style-inline or/and custom classes','Preview'=>'Preview','This is a preview. The actual style depends on your theme.'=>'This is a preview. De daadwerkelijke stijl hangt af van uw thema.','Generate shortcode'=>'Generate shortcode','Copied'=>'Copied','Labels'=>'Labels','Label colors'=>'Label colors','Label excluding VAT color'=>'Label excluding VAT color','Label including VAT color'=>'Label including VAT color','Display options'=>'Display options','Switch colors'=>'Switch colors','Switch labels'=>'Switch labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Tax switch'=>'Tax switch','Shortcode'=>'Shortcode','Documentation'=>'Documentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Tax switch settings'=>'Tax switch settings','Customize the tax switch settings.'=>'Customize the tax switch settings.','Including VAT text'=>'Including VAT text','Text to append to prices including VAT.'=>'Text to append to prices including VAT.','Excluding VAT text'=>'Excluding VAT text','Text to append to prices excluding VAT.'=>'Text to append to prices excluding VAT.','Where enabled'=>'Where enabled','On all pages'=>'On all pages','Only on WooCommerce pages'=>'Only on WooCommerce pages','Only on pages displaying prices'=>'Only on pages displaying prices','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce pages include: product archives/categories, single product pages and account pages.','On all pages where a Tax Switch block/shortcode is placed.'=>'On all pages where a Tax Switch block/shortcode is placed.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Hidden on pages that are not part of the store. Stops rendering completely.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.','Price switching in mini cart'=>'Price switching in mini cart','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).','Shortcode settings'=>'Shortcode settings','Generate a tax switch shortcode.'=>'Generate a tax switch shortcode.','Tax Switch for WooCommerce'=>'Tax Switch for WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'2026-02-12 15:18+0100','po-revision-date'=>'2026-02-12 15:18+0100','translation-revision-date'=>'2026-02-12 15:18+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.8','messages'=>['Settings'=>'Settings','Tax switch shortcode'=>'Tax switch shortcode','Configure shortcode'=>'Configure shortcode','Copy shortcode'=>'Copy shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Copy this shortcode and paste it where you want the tax switch to appear.','Close modal'=>'Close modal','Switch type'=>'Switch type','Toggle switch'=>'Toggle switch','Buttons'=>'Buttons','Switch style'=>'Switch style','Default style'=>'Default style','Inline style'=>'Inline style','Flat pill'=>'Flat pill','Switch color'=>'Switch color','Default'=>'Default','Switch color checked'=>'Switch color checked','Background color'=>'Background color','Background color checked'=>'Background color checked','Text color'=>'Text color','Including VAT label'=>'Including VAT label','Incl. VAT'=>'Incl. VAT','Excluding VAT label'=>'Excluding VAT label','Excl. VAT'=>'Excl. VAT','CSS classes'=>'CSS classes','Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes'=>'Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes','Preview'=>'Preview','This is a preview. The actual style depends on your theme.'=>'This is a preview. De daadwerkelijke stijl hangt af van uw thema.','Generate shortcode'=>'Generate shortcode','Copied'=>'Copied','Labels'=>'Labels','Label colors'=>'Label colors','Label excluding VAT color'=>'Label excluding VAT color','Label including VAT color'=>'Label including VAT color','Switch between prices including and excluding VAT'=>'Switch between prices including and excluding VAT','Display options'=>'Display options','Switch colors'=>'Switch colors','Switch labels'=>'Switch labels','Switch aria label'=>'Switch aria label','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Tax switch'=>'Tax switch','Shortcode'=>'Shortcode','Documentation'=>'Documentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Tax switch settings'=>'Tax switch settings','Customize the tax switch settings.'=>'Customize the tax switch settings.','Including VAT text'=>'Including VAT text','Text to append to prices including VAT.'=>'Text to append to prices including VAT.','Excluding VAT text'=>'Excluding VAT text','Text to append to prices excluding VAT.'=>'Text to append to prices excluding VAT.','Where enabled'=>'Where enabled','On all pages'=>'On all pages','Only on WooCommerce pages'=>'Only on WooCommerce pages','Only on pages displaying prices'=>'Only on pages displaying prices','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce pages include: product archives/categories, single product pages and account pages.','On all pages where a Tax Switch block/shortcode is placed.'=>'On all pages where a Tax Switch block/shortcode is placed.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Hidden on pages that are not part of the store. Stops rendering completely.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.','Price switching in mini cart'=>'Price switching in mini cart','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).','Shortcode settings'=>'Shortcode settings','Generate a tax switch shortcode.'=>'Generate a tax switch shortcode.','Tax Switch for WooCommerce'=>'Tax Switch for WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']]; -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US.po
r3405724 r3460537 2 2 msgstr "" 3 3 "Project-Id-Version: Tax Switch for WooCommerce\n" 4 "POT-Creation-Date: 202 5-11-29 10:32+0100\n"5 "PO-Revision-Date: 202 5-11-29 10:33+0100\n"4 "POT-Creation-Date: 2026-02-12 15:18+0100\n" 5 "PO-Revision-Date: 2026-02-12 15:18+0100\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 3. 7\n"12 "X-Generator: Poedit 3.8\n" 13 13 "X-Poedit-Basepath: ..\n" 14 14 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 51 51 52 52 #: admin/partials/section-wdevs-tax-switch-shortcode.php:57 53 #: block/src/switch/edit.js:6 753 #: block/src/switch/edit.js:68 54 54 msgid "Switch type" 55 55 msgstr "Switch type" 56 56 57 57 #: admin/partials/section-wdevs-tax-switch-shortcode.php:61 58 #: block/src/switch/edit.js:7 458 #: block/src/switch/edit.js:75 59 59 msgid "Toggle switch" 60 60 msgstr "Toggle switch" 61 61 62 62 #: admin/partials/section-wdevs-tax-switch-shortcode.php:62 63 #: block/src/switch/edit.js:8 163 #: block/src/switch/edit.js:82 64 64 msgid "Buttons" 65 65 msgstr "Buttons" … … 78 78 msgstr "Inline style" 79 79 80 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81 81 #: block/src/switch/edit.js:104 80 #: admin/partials/section-wdevs-tax-switch-shortcode.php:75 81 #: includes/class-wdevs-tax-switch-block-switch.php:56 82 msgid "Flat pill" 83 msgstr "Flat pill" 84 85 #: admin/partials/section-wdevs-tax-switch-shortcode.php:82 86 #: block/src/switch/edit.js:105 82 87 msgid "Switch color" 83 88 msgstr "Switch color" 84 89 85 #: admin/partials/section-wdevs-tax-switch-shortcode.php:8 686 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 787 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 888 #: admin/partials/section-wdevs-tax-switch-shortcode.php:1 1989 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 090 #: admin/partials/section-wdevs-tax-switch-shortcode.php:87 91 #: admin/partials/section-wdevs-tax-switch-shortcode.php:98 92 #: admin/partials/section-wdevs-tax-switch-shortcode.php:109 93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:120 94 #: admin/partials/section-wdevs-tax-switch-shortcode.php:131 90 95 msgid "Default" 91 96 msgstr "Default" 92 97 93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 294 #: block/src/switch/edit.js:11 598 #: admin/partials/section-wdevs-tax-switch-shortcode.php:93 99 #: block/src/switch/edit.js:116 95 100 msgid "Switch color checked" 96 101 msgstr "Switch color checked" 97 102 98 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 399 #: block/src/switch/edit.js:12 6103 #: admin/partials/section-wdevs-tax-switch-shortcode.php:104 104 #: block/src/switch/edit.js:127 100 105 msgid "Background color" 101 106 msgstr "Background color" 102 107 103 #: admin/partials/section-wdevs-tax-switch-shortcode.php:11 4104 #: block/src/switch/edit.js:13 7108 #: admin/partials/section-wdevs-tax-switch-shortcode.php:115 109 #: block/src/switch/edit.js:138 105 110 msgid "Background color checked" 106 111 msgstr "Background color checked" 107 112 108 #: admin/partials/section-wdevs-tax-switch-shortcode.php:12 5109 #: block/src/switch/edit.js:14 8113 #: admin/partials/section-wdevs-tax-switch-shortcode.php:126 114 #: block/src/switch/edit.js:149 110 115 msgid "Text color" 111 116 msgstr "Text color" 112 117 113 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 6114 #: block/src/label/edit.js:61 block/src/switch/edit.js:16 3118 #: admin/partials/section-wdevs-tax-switch-shortcode.php:137 119 #: block/src/label/edit.js:61 block/src/switch/edit.js:164 115 120 msgid "Including VAT label" 116 121 msgstr "Including VAT label" 117 122 118 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140 123 #: admin/partials/section-wdevs-tax-switch-shortcode.php:141 124 #: block/src/switch/components/SwitchComponent.js:180 119 125 #: includes/class-wdevs-tax-switch-block-label.php:64 120 126 #: includes/class-wdevs-tax-switch-block-label.php:82 121 #: includes/class-wdevs-tax-switch-compatibility.php:340122 127 #: includes/class-wdevs-tax-switch-woocommerce.php:253 123 #: public/class-wdevs-tax-switch-public.php:150128 #: includes/trait-wdevs-tax-switch-helper.php:458 124 129 msgid "Incl. VAT" 125 130 msgstr "Incl. VAT" 126 131 127 #: admin/partials/section-wdevs-tax-switch-shortcode.php:14 6128 #: block/src/label/edit.js:71 block/src/switch/edit.js:17 3132 #: admin/partials/section-wdevs-tax-switch-shortcode.php:147 133 #: block/src/label/edit.js:71 block/src/switch/edit.js:174 129 134 msgid "Excluding VAT label" 130 135 msgstr "Excluding VAT label" 131 136 132 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150 137 #: admin/partials/section-wdevs-tax-switch-shortcode.php:151 138 #: block/src/switch/components/SwitchComponent.js:191 133 139 #: includes/class-wdevs-tax-switch-block-label.php:65 134 140 #: includes/class-wdevs-tax-switch-block-label.php:83 135 #: includes/class-wdevs-tax-switch-compatibility.php:341136 141 #: includes/class-wdevs-tax-switch-woocommerce.php:260 137 #: public/class-wdevs-tax-switch-public.php:151142 #: includes/trait-wdevs-tax-switch-helper.php:461 138 143 msgid "Excl. VAT" 139 144 msgstr "Excl. VAT" 140 145 141 #: admin/partials/section-wdevs-tax-switch-shortcode.php:15 6146 #: admin/partials/section-wdevs-tax-switch-shortcode.php:157 142 147 msgid "CSS classes" 143 148 msgstr "CSS classes" 144 149 145 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161 146 msgid "Options: is-style-default, is-style-inline or/and custom classes" 147 msgstr "Options: is-style-default, is-style-inline or/and custom classes" 148 149 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172 150 #: admin/partials/section-wdevs-tax-switch-shortcode.php:162 151 msgid "" 152 "Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom " 153 "classes" 154 msgstr "" 155 "Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom " 156 "classes" 157 158 #: admin/partials/section-wdevs-tax-switch-shortcode.php:173 150 159 msgid "Preview" 151 160 msgstr "Preview" 152 161 153 #: admin/partials/section-wdevs-tax-switch-shortcode.php:17 6162 #: admin/partials/section-wdevs-tax-switch-shortcode.php:177 154 163 msgid "This is a preview. The actual style depends on your theme." 155 164 msgstr "This is a preview. De daadwerkelijke stijl hangt af van uw thema." 156 165 157 #: admin/partials/section-wdevs-tax-switch-shortcode.php:18 2166 #: admin/partials/section-wdevs-tax-switch-shortcode.php:183 158 167 msgid "Generate shortcode" 159 168 msgstr "Generate shortcode" 160 169 161 #: admin/partials/section-wdevs-tax-switch-shortcode.php:20 1170 #: admin/partials/section-wdevs-tax-switch-shortcode.php:202 162 171 msgid "Copied" 163 172 msgstr "Copied" … … 179 188 msgstr "Label including VAT color" 180 189 181 #: block/src/switch/edit.js:60 190 #: block/src/switch/components/SwitchComponent.js:109 191 msgid "Switch between prices including and excluding VAT" 192 msgstr "Switch between prices including and excluding VAT" 193 194 #: block/src/switch/edit.js:61 182 195 msgid "Display options" 183 196 msgstr "Display options" 184 197 185 #: block/src/switch/edit.js:9 4198 #: block/src/switch/edit.js:95 186 199 msgid "Switch colors" 187 200 msgstr "Switch colors" 188 201 189 #: block/src/switch/edit.js:15 6202 #: block/src/switch/edit.js:157 190 203 msgid "Switch labels" 191 204 msgstr "Switch labels" 205 206 #: block/src/switch/edit.js:184 207 msgid "Switch aria label" 208 msgstr "Switch aria label" 192 209 193 210 #: includes/class-wdevs-tax-switch-activator.php:36 … … 351 368 msgid "https://wijnberg.dev/" 352 369 msgstr "https://wijnberg.dev/" 370 371 #~ msgid "Toggle label text" 372 #~ msgstr "Toggle label text" 373 374 #~ msgid "Text used for the toggle switch aria-label." 375 #~ msgstr "Text used for the toggle switch aria-label." 353 376 354 377 #~ msgid "" -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json
r3405724 r3460537 1 {"translation-revision-date": "202 5-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Labels": ["Labels"], "Label colors": ["Labelkleuren"], "Label excluding VAT color": ["Label exclusief btw kleur"], "Label including VAT color": ["Label inclusief btw kleur"]}}}1 {"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Labels": ["Labels"], "Label colors": ["Labelkleuren"], "Label excluding VAT color": ["Label exclusief btw kleur"], "Label including VAT color": ["Label inclusief btw kleur"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json
r3405724 r3460537 1 {"translation-revision-date": "202 5-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Type schakelaar"], "Toggle switch": ["Schakelaar"], "Buttons": ["Knoppen"], "Switch color": ["Schakelaarkleur"], "Switch color checked": ["Schakelaarkleur ingeschakeld"], "Background color": ["Achtergrondkleur"], "Background color checked": ["Achtergrondkleur ingeschakeld"], "Text color": ["Tekstkleur"], "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Display options": ["Weergave opties"], "Switch colors": ["Schakelaarkleuren"], "Switch labels": ["Schakelaar labels"]}}}1 {"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Type schakelaar"], "Toggle switch": ["Schakelaar"], "Buttons": ["Knoppen"], "Switch color": ["Schakelaarkleur"], "Switch color checked": ["Schakelaarkleur ingeschakeld"], "Background color": ["Achtergrondkleur"], "Background color checked": ["Achtergrondkleur ingeschakeld"], "Text color": ["Tekstkleur"], "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Display options": ["Weergave opties"], "Switch colors": ["Schakelaarkleuren"], "Switch labels": ["Schakelaar labels"], "Switch aria label": ["Schakelaar aria label"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL.l10n.php
r3405724 r3460537 1 1 <?php 2 2 // generated by Poedit from tax-switch-for-woocommerce-nl_NL.po, do not edit directly 3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'nl_NL','pot-creation-date'=>'202 5-11-29 10:33+0100','po-revision-date'=>'2025-11-29 10:33+0100','translation-revision-date'=>'2025-11-29 10:33+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Instellingen','Tax switch shortcode'=>'Btw-schakelaar shortcode','Configure shortcode'=>'Shortcode configureren','Copy shortcode'=>'Shortcode kopiëren','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopieer de gegenereerde shortcode en plak het waar u de schakelaar wilt weergeven.','Close modal'=>'Popup sluiten','Switch type'=>'Type schakelaar','Toggle switch'=>'Schakelaar','Buttons'=>'Knoppen','Switch style'=>'Stijl schakelaar','Default style'=>'Standaard stijl','Inline style'=>'Inline stijl','Switch color'=>'Schakelaarkleur','Default'=>'Standaard','Switch color checked'=>'Schakelaarkleur ingeschakeld','Background color'=>'Achtergrondkleur','Background color checked'=>'Achtergrondkleur ingeschakeld','Text color'=>'Tekstkleur','Including VAT label'=>'Label inclusief btw','Incl. VAT'=>'Incl. btw','Excluding VAT label'=>'Label exclusief btw','Excl. VAT'=>'Excl. btw','CSS classes'=>'CSS klassen','Options: is-style-default, is-style-inline or/and custom classes'=>'Opties: is-style-default, is-style-inline of/en eigen klassen','Preview'=>'Voorvertoning','This is a preview. The actual style depends on your theme.'=>'Dit is een voorvertoning. De daadwerkelijke stijl wordt door uw thema bepaald.','Generate shortcode'=>'Shortcode genereren','Copied'=>'Gekopieerd','Labels'=>'Labels','Label colors'=>'Labelkleuren','Label excluding VAT color'=>'Label exclusief btw kleur','Label including VAT color'=>'Label inclusief btw kleur','Display options'=>'Weergave opties','Switch colors'=>'Schakelaarkleuren','Switch labels'=>'Schakelaar labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Deze plugin vereist WooCommerce. Installeer en activeer WooCommerce voordat u deze plugin activeert.','Tax switch'=>'Btw-schakelaar','Shortcode'=>'Shortcode','Documentation'=>'Documentatie','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Btw-schakelaar voor Woocommerce is ontwikkeld door %s. Uw betrouwbare WordPress & WooCommerce pluginpartner uit Nederland.','Tax switch settings'=>'Btw-schakelaar instellingen','Customize the tax switch settings.'=>'Pas de instellingen van de btw-schakelaar aan.','Including VAT text'=>'Tekst inclusief btw','Text to append to prices including VAT.'=>'Tekst om toe te voegen aan prijzen inclusief btw.','Excluding VAT text'=>'Tekst exclusief btw','Text to append to prices excluding VAT.'=>'Tekst om toe te voegen aan prijzen exclusief btw.','Where enabled'=>'Waar ingeschakeld','On all pages'=>'Op alle pagina\'s','Only on WooCommerce pages'=>'Alleen op WooCommerce-pagina\'s','Only on pages displaying prices'=>'Alleen op pagina\'s met prijzen','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-pagina\'s zijn: productarchieven/categorieën, individuele productpagina\'s en accountpagina\'s.','On all pages where a Tax Switch block/shortcode is placed.'=>'Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Verborgen op pagina\'s die niet onderdeel zijn van de webshop. Stopt het renderen volledig.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Verborgen op pagina\'s die geen prijzen weergeven. Wordt gerenderd, maar verborgen (iets langzamer).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>' Btw-schakelaar blocks/shortcodes zijn altijd verborgen op de winkelwagen- en afrekenpagina\'s.','Price switching in mini cart'=>'Prijs aanpassingen in de mini winkelwagen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Geef klanten de mogelijkheid om te wisselen tussen prijzen inclusief en exclusief btw in de standaard WooCommerce mini-winkelwagen.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Standaard is het omwisselen van prijzen in de mini winkelwagen uitgeschakeld om de winkelwagentotalen consistent te houden. Na het wijzigen van deze instelling moet je de mini-winkelwagen leegmaken en de pagina herladen om het bijgewerkte gedrag te zien (de markup van de mini-winkelwagen wordt gecached).','Shortcode settings'=>'Shortcode instellingen','Generate a tax switch shortcode.'=>'Genereer een btw-schakelaar shortcode.','Tax Switch for WooCommerce'=>'Btw-schakelaar voor Woocommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Laat klanten schakelen tussen prijzen inclusief en exclusief btw in uw WooCommerce webshop.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'nl_NL','pot-creation-date'=>'2026-02-12 15:18+0100','po-revision-date'=>'2026-02-12 15:18+0100','translation-revision-date'=>'2026-02-12 15:18+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.8','messages'=>['Settings'=>'Instellingen','Tax switch shortcode'=>'Btw-schakelaar shortcode','Configure shortcode'=>'Shortcode configureren','Copy shortcode'=>'Shortcode kopiëren','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopieer de gegenereerde shortcode en plak het waar u de schakelaar wilt weergeven.','Close modal'=>'Popup sluiten','Switch type'=>'Type schakelaar','Toggle switch'=>'Schakelaar','Buttons'=>'Knoppen','Switch style'=>'Stijl schakelaar','Default style'=>'Standaard stijl','Inline style'=>'Inline stijl','Flat pill'=>'Platte pilvormige stijl','Switch color'=>'Schakelaarkleur','Default'=>'Standaard','Switch color checked'=>'Schakelaarkleur ingeschakeld','Background color'=>'Achtergrondkleur','Background color checked'=>'Achtergrondkleur ingeschakeld','Text color'=>'Tekstkleur','Including VAT label'=>'Label inclusief btw','Incl. VAT'=>'Incl. btw','Excluding VAT label'=>'Label exclusief btw','Excl. VAT'=>'Excl. btw','CSS classes'=>'CSS klassen','Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes'=>'Opties: is-style-default, is-style-inline, is-style-flat-pill of/en eigen klassen','Preview'=>'Voorvertoning','This is a preview. The actual style depends on your theme.'=>'Dit is een voorvertoning. De daadwerkelijke stijl wordt door uw thema bepaald.','Generate shortcode'=>'Shortcode genereren','Copied'=>'Gekopieerd','Labels'=>'Labels','Label colors'=>'Labelkleuren','Label excluding VAT color'=>'Label exclusief btw kleur','Label including VAT color'=>'Label inclusief btw kleur','Switch between prices including and excluding VAT'=>'Schakel tussen prijzen inclusief en exclusief btw','Display options'=>'Weergave opties','Switch colors'=>'Schakelaarkleuren','Switch labels'=>'Schakelaar labels','Switch aria label'=>'Schakelaar aria label','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Deze plugin vereist WooCommerce. Installeer en activeer WooCommerce voordat u deze plugin activeert.','Tax switch'=>'Btw-schakelaar','Shortcode'=>'Shortcode','Documentation'=>'Documentatie','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Btw-schakelaar voor Woocommerce is ontwikkeld door %s. Uw betrouwbare WordPress & WooCommerce pluginpartner uit Nederland.','Tax switch settings'=>'Btw-schakelaar instellingen','Customize the tax switch settings.'=>'Pas de instellingen van de btw-schakelaar aan.','Including VAT text'=>'Tekst inclusief btw','Text to append to prices including VAT.'=>'Tekst om toe te voegen aan prijzen inclusief btw.','Excluding VAT text'=>'Tekst exclusief btw','Text to append to prices excluding VAT.'=>'Tekst om toe te voegen aan prijzen exclusief btw.','Where enabled'=>'Waar ingeschakeld','On all pages'=>'Op alle pagina\'s','Only on WooCommerce pages'=>'Alleen op WooCommerce-pagina\'s','Only on pages displaying prices'=>'Alleen op pagina\'s met prijzen','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-pagina\'s zijn: productarchieven/categorieën, individuele productpagina\'s en accountpagina\'s.','On all pages where a Tax Switch block/shortcode is placed.'=>'Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Verborgen op pagina\'s die niet onderdeel zijn van de webshop. Stopt het renderen volledig.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Verborgen op pagina\'s die geen prijzen weergeven. Wordt gerenderd, maar verborgen (iets langzamer).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>' Btw-schakelaar blocks/shortcodes zijn altijd verborgen op de winkelwagen- en afrekenpagina\'s.','Price switching in mini cart'=>'Prijs aanpassingen in de mini winkelwagen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Geef klanten de mogelijkheid om te wisselen tussen prijzen inclusief en exclusief btw in de standaard WooCommerce mini-winkelwagen.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Standaard is het omwisselen van prijzen in de mini winkelwagen uitgeschakeld om de winkelwagentotalen consistent te houden. Na het wijzigen van deze instelling moet je de mini-winkelwagen leegmaken en de pagina herladen om het bijgewerkte gedrag te zien (de markup van de mini-winkelwagen wordt gecached).','Shortcode settings'=>'Shortcode instellingen','Generate a tax switch shortcode.'=>'Genereer een btw-schakelaar shortcode.','Tax Switch for WooCommerce'=>'Btw-schakelaar voor Woocommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Laat klanten schakelen tussen prijzen inclusief en exclusief btw in uw WooCommerce webshop.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']]; -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL.po
r3405724 r3460537 3 3 "Project-Id-Version: Tax Switch for WooCommerce\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 202 5-11-29 10:33+0100\n"6 "PO-Revision-Date: 202 5-11-29 10:33+0100\n"5 "POT-Creation-Date: 2026-02-12 15:18+0100\n" 6 "PO-Revision-Date: 2026-02-12 15:18+0100\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" … … 11 11 "Content-Type: text/plain; charset=UTF-8\n" 12 12 "Content-Transfer-Encoding: 8bit\n" 13 "X-Generator: Poedit 3. 7\n"13 "X-Generator: Poedit 3.8\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 53 53 54 54 #: admin/partials/section-wdevs-tax-switch-shortcode.php:57 55 #: block/src/switch/edit.js:6 755 #: block/src/switch/edit.js:68 56 56 msgid "Switch type" 57 57 msgstr "Type schakelaar" 58 58 59 59 #: admin/partials/section-wdevs-tax-switch-shortcode.php:61 60 #: block/src/switch/edit.js:7 460 #: block/src/switch/edit.js:75 61 61 msgid "Toggle switch" 62 62 msgstr "Schakelaar" 63 63 64 64 #: admin/partials/section-wdevs-tax-switch-shortcode.php:62 65 #: block/src/switch/edit.js:8 165 #: block/src/switch/edit.js:82 66 66 msgid "Buttons" 67 67 msgstr "Knoppen" … … 80 80 msgstr "Inline stijl" 81 81 82 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81 83 #: block/src/switch/edit.js:104 82 #: admin/partials/section-wdevs-tax-switch-shortcode.php:75 83 #: includes/class-wdevs-tax-switch-block-switch.php:56 84 msgid "Flat pill" 85 msgstr "Platte pilvormige stijl" 86 87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:82 88 #: block/src/switch/edit.js:105 84 89 msgid "Switch color" 85 90 msgstr "Schakelaarkleur" 86 91 87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:8 688 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 789 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 890 #: admin/partials/section-wdevs-tax-switch-shortcode.php:1 1991 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 092 #: admin/partials/section-wdevs-tax-switch-shortcode.php:87 93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:98 94 #: admin/partials/section-wdevs-tax-switch-shortcode.php:109 95 #: admin/partials/section-wdevs-tax-switch-shortcode.php:120 96 #: admin/partials/section-wdevs-tax-switch-shortcode.php:131 92 97 msgid "Default" 93 98 msgstr "Standaard" 94 99 95 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 296 #: block/src/switch/edit.js:11 5100 #: admin/partials/section-wdevs-tax-switch-shortcode.php:93 101 #: block/src/switch/edit.js:116 97 102 msgid "Switch color checked" 98 103 msgstr "Schakelaarkleur ingeschakeld" 99 104 100 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 3101 #: block/src/switch/edit.js:12 6105 #: admin/partials/section-wdevs-tax-switch-shortcode.php:104 106 #: block/src/switch/edit.js:127 102 107 msgid "Background color" 103 108 msgstr "Achtergrondkleur" 104 109 105 #: admin/partials/section-wdevs-tax-switch-shortcode.php:11 4106 #: block/src/switch/edit.js:13 7110 #: admin/partials/section-wdevs-tax-switch-shortcode.php:115 111 #: block/src/switch/edit.js:138 107 112 msgid "Background color checked" 108 113 msgstr "Achtergrondkleur ingeschakeld" 109 114 110 #: admin/partials/section-wdevs-tax-switch-shortcode.php:12 5111 #: block/src/switch/edit.js:14 8115 #: admin/partials/section-wdevs-tax-switch-shortcode.php:126 116 #: block/src/switch/edit.js:149 112 117 msgid "Text color" 113 118 msgstr "Tekstkleur" 114 119 115 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 6116 #: block/src/label/edit.js:61 block/src/switch/edit.js:16 3120 #: admin/partials/section-wdevs-tax-switch-shortcode.php:137 121 #: block/src/label/edit.js:61 block/src/switch/edit.js:164 117 122 msgid "Including VAT label" 118 123 msgstr "Label inclusief btw" 119 124 120 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140 125 #: admin/partials/section-wdevs-tax-switch-shortcode.php:141 126 #: block/src/switch/components/SwitchComponent.js:180 121 127 #: includes/class-wdevs-tax-switch-block-label.php:64 122 128 #: includes/class-wdevs-tax-switch-block-label.php:82 123 #: includes/class-wdevs-tax-switch-compatibility.php:340124 129 #: includes/class-wdevs-tax-switch-woocommerce.php:253 125 #: public/class-wdevs-tax-switch-public.php:150130 #: includes/trait-wdevs-tax-switch-helper.php:458 126 131 msgid "Incl. VAT" 127 132 msgstr "Incl. btw" 128 133 129 #: admin/partials/section-wdevs-tax-switch-shortcode.php:14 6130 #: block/src/label/edit.js:71 block/src/switch/edit.js:17 3134 #: admin/partials/section-wdevs-tax-switch-shortcode.php:147 135 #: block/src/label/edit.js:71 block/src/switch/edit.js:174 131 136 msgid "Excluding VAT label" 132 137 msgstr "Label exclusief btw" 133 138 134 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150 139 #: admin/partials/section-wdevs-tax-switch-shortcode.php:151 140 #: block/src/switch/components/SwitchComponent.js:191 135 141 #: includes/class-wdevs-tax-switch-block-label.php:65 136 142 #: includes/class-wdevs-tax-switch-block-label.php:83 137 #: includes/class-wdevs-tax-switch-compatibility.php:341138 143 #: includes/class-wdevs-tax-switch-woocommerce.php:260 139 #: public/class-wdevs-tax-switch-public.php:151144 #: includes/trait-wdevs-tax-switch-helper.php:461 140 145 msgid "Excl. VAT" 141 146 msgstr "Excl. btw" 142 147 143 #: admin/partials/section-wdevs-tax-switch-shortcode.php:15 6148 #: admin/partials/section-wdevs-tax-switch-shortcode.php:157 144 149 msgid "CSS classes" 145 150 msgstr "CSS klassen" 146 151 147 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161 148 msgid "Options: is-style-default, is-style-inline or/and custom classes" 149 msgstr "Opties: is-style-default, is-style-inline of/en eigen klassen" 150 151 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172 152 #: admin/partials/section-wdevs-tax-switch-shortcode.php:162 153 msgid "" 154 "Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom " 155 "classes" 156 msgstr "" 157 "Opties: is-style-default, is-style-inline, is-style-flat-pill of/en eigen " 158 "klassen" 159 160 #: admin/partials/section-wdevs-tax-switch-shortcode.php:173 152 161 msgid "Preview" 153 162 msgstr "Voorvertoning" 154 163 155 #: admin/partials/section-wdevs-tax-switch-shortcode.php:17 6164 #: admin/partials/section-wdevs-tax-switch-shortcode.php:177 156 165 msgid "This is a preview. The actual style depends on your theme." 157 166 msgstr "" … … 159 168 "bepaald." 160 169 161 #: admin/partials/section-wdevs-tax-switch-shortcode.php:18 2170 #: admin/partials/section-wdevs-tax-switch-shortcode.php:183 162 171 msgid "Generate shortcode" 163 172 msgstr "Shortcode genereren" 164 173 165 #: admin/partials/section-wdevs-tax-switch-shortcode.php:20 1174 #: admin/partials/section-wdevs-tax-switch-shortcode.php:202 166 175 msgid "Copied" 167 176 msgstr "Gekopieerd" … … 183 192 msgstr "Label inclusief btw kleur" 184 193 185 #: block/src/switch/edit.js:60 194 #: block/src/switch/components/SwitchComponent.js:109 195 msgid "Switch between prices including and excluding VAT" 196 msgstr "Schakel tussen prijzen inclusief en exclusief btw" 197 198 #: block/src/switch/edit.js:61 186 199 msgid "Display options" 187 200 msgstr "Weergave opties" 188 201 189 #: block/src/switch/edit.js:9 4202 #: block/src/switch/edit.js:95 190 203 msgid "Switch colors" 191 204 msgstr "Schakelaarkleuren" 192 205 193 #: block/src/switch/edit.js:15 6206 #: block/src/switch/edit.js:157 194 207 msgid "Switch labels" 195 208 msgstr "Schakelaar labels" 209 210 #: block/src/switch/edit.js:184 211 msgid "Switch aria label" 212 msgstr "Schakelaar aria label" 196 213 197 214 #: includes/class-wdevs-tax-switch-activator.php:36 … … 358 375 msgid "https://wijnberg.dev/" 359 376 msgstr "https://wijnberg.dev/" 377 378 #~ msgid "Toggle label text" 379 #~ msgstr "Toggle-labeltekst" 380 381 #~ msgid "Text used for the toggle switch aria-label." 382 #~ msgstr "" 383 #~ "Tekst die wordt gebruikt voor het aria-label van de wisselschakelaar." 360 384 361 385 #~ msgid "" -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json
r3405724 r3460537 1 {"translation-revision-date": "202 5-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Labels": ["Etiketter"], "Label colors": ["Etikett f\u00e4rger"], "Label excluding VAT color": ["Etikett f\u00e4rg exklusive moms"], "Label including VAT color": ["Etikett f\u00e4rg inklusive moms"]}}}1 {"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Labels": ["Etiketter"], "Label colors": ["Etikett f\u00e4rger"], "Label excluding VAT color": ["Etikett f\u00e4rg exklusive moms"], "Label including VAT color": ["Etikett f\u00e4rg inklusive moms"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json
r3405724 r3460537 1 {"translation-revision-date": "202 5-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Byt typ"], "Toggle switch": ["Switch"], "Buttons": ["Knappar"], "Switch color": ["Byt f\u00e4rg"], "Switch color checked": ["Byt f\u00e4rg markerad"], "Background color": ["Bakgrundsf\u00e4rg"], "Background color checked": ["Bakgrundsf\u00e4rg markerad"], "Text color": ["Textf\u00e4rg"], "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Display options": ["Visningsalternativ"], "Switch colors": ["Byt f\u00e4rger"], "Switch labels": ["Byt etiketter"]}}}1 {"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Byt typ"], "Toggle switch": ["Switch"], "Buttons": ["Knappar"], "Switch color": ["Byt f\u00e4rg"], "Switch color checked": ["Byt f\u00e4rg markerad"], "Background color": ["Bakgrundsf\u00e4rg"], "Background color checked": ["Bakgrundsf\u00e4rg markerad"], "Text color": ["Textf\u00e4rg"], "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Display options": ["Visningsalternativ"], "Switch colors": ["Byt f\u00e4rger"], "Switch labels": ["Byt etiketter"], "Switch aria label": ["Byt aria label"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE.l10n.php
r3405724 r3460537 1 1 <?php 2 2 // generated by Poedit from tax-switch-for-woocommerce-sv_SE.po, do not edit directly 3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'sv_SE','pot-creation-date'=>'202 5-11-29 10:33+0100','po-revision-date'=>'2025-11-29 10:33+0100','translation-revision-date'=>'2025-11-29 10:33+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Inställningar','Tax switch shortcode'=>'Momsswitch shortcode','Configure shortcode'=>'Konfigurera shortcode','Copy shortcode'=>'Kopiera shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopiera den genererade shortcoden och klistra in den där du vill att momsswitchen ska visas.','Close modal'=>'Stäng modal','Switch type'=>'Byt typ','Toggle switch'=>'Switch','Buttons'=>'Knappar','Switch style'=>'Byt stil','Default style'=>'Standard-stil','Inline style'=>'Inline-stil','Switch color'=>'Byt färg','Default'=>'Standard','Switch color checked'=>'Byt färg markerad','Background color'=>'Bakgrundsfärg','Background color checked'=>'Bakgrundsfärg markerad','Text color'=>'Textfärg','Including VAT label'=>'Inkl. moms etikett','Incl. VAT'=>'Inkl. moms','Excluding VAT label'=>'Exkl. moms etikett','Excl. VAT'=>'Exkl. moms','CSS classes'=>'CSS-klasser','Options: is-style-default, is-style-inline or/and custom classes'=>'Alternativ: is-style-default, is-style-inline och/eller anpassade klasser','Preview'=>'Förhandsvisning','This is a preview. The actual style depends on your theme.'=>'Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema.','Generate shortcode'=>'Generera shortcode','Copied'=>'Kopierad','Labels'=>'Etiketter','Label colors'=>'Etikett färger','Label excluding VAT color'=>'Etikett färg exklusive moms','Label including VAT color'=>'Etikett färg inklusive moms','Display options'=>'Visningsalternativ','Switch colors'=>'Byt färger','Switch labels'=>'Byt etiketter','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Det här tillägget kräver WooCommerce. Installera och aktivera WooCommerce innan du aktiverar detta tillägg.','Tax switch'=>'Momsswitch','Shortcode'=>'Shortcode','Documentation'=>'Dokumentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Momsswitch för WooCommerce är utvecklad av %s. Din betrodda WordPress- och WooCommerce-pluginpartner från Nederländerna.','Tax switch settings'=>'Inställningar för momsswitch','Customize the tax switch settings.'=>'Anpassa inställningarna för momsswitch.','Including VAT text'=>'Text för inklusive moms','Text to append to prices including VAT.'=>'Text som läggs till på priser inklusive moms.','Excluding VAT text'=>'Text för exklusive moms','Text to append to prices excluding VAT.'=>'Text som läggs till på priser exklusive moms.','Where enabled'=>'Där aktiverat','On all pages'=>'På alla sidor','Only on WooCommerce pages'=>'Endast på WooCommerce-sidor','Only on pages displaying prices'=>'Endast på sidor som visar priser','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-sidor inkluderar: produktarkiv/kategorier, enskilda produktsidor och kontosidor.','On all pages where a Tax Switch block/shortcode is placed.'=>'På alla sidor där ett Tax Switch-block/shortcode är placerat.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Döljs på sidor som inte är en del av butiken. Slutar rendera helt.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Döljs på sidor som inte visar några priser. Renderar fortfarande men döljer komponenterna (något långsammare).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Momsswitch för WooCommerce block/kortkoder är alltid dolda på varukorgen och kassasidorna.','Price switching in mini cart'=>'Prisväxling i minivarukorgen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Tillåt kunder att växla mellan priser inklusive och exklusive moms i WooCommerce standardminivarukorg.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Som standard är prisväxling inaktiverad i minivarukorgen för att hålla varukorgens totalsummor konsekventa. Efter att du ändrat den här inställningen bör du tömma minivarukorgen och ladda om sidan för att se det uppdaterade beteendet (markuppen för minivarukorgen cachas).','Shortcode settings'=>'Shortcode-inställningar','Generate a tax switch shortcode.'=>'Generera en momsswitch shortcode.','Tax Switch for WooCommerce'=>'Momsswitch för WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Låt kunder växla mellan priser inklusive och exklusive moms i din WooCommerce-butik.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'sv_SE','pot-creation-date'=>'2026-02-12 15:18+0100','po-revision-date'=>'2026-02-12 15:18+0100','translation-revision-date'=>'2026-02-12 15:18+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.8','messages'=>['Settings'=>'Inställningar','Tax switch shortcode'=>'Momsswitch shortcode','Configure shortcode'=>'Konfigurera shortcode','Copy shortcode'=>'Kopiera shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopiera den genererade shortcoden och klistra in den där du vill att momsswitchen ska visas.','Close modal'=>'Stäng modal','Switch type'=>'Byt typ','Toggle switch'=>'Switch','Buttons'=>'Knappar','Switch style'=>'Byt stil','Default style'=>'Standard-stil','Inline style'=>'Inline-stil','Flat pill'=>'Platt pillformad','Switch color'=>'Byt färg','Default'=>'Standard','Switch color checked'=>'Byt färg markerad','Background color'=>'Bakgrundsfärg','Background color checked'=>'Bakgrundsfärg markerad','Text color'=>'Textfärg','Including VAT label'=>'Inkl. moms etikett','Incl. VAT'=>'Inkl. moms','Excluding VAT label'=>'Exkl. moms etikett','Excl. VAT'=>'Exkl. moms','CSS classes'=>'CSS-klasser','Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes'=>'Alternativ: is-style-default, is-style-inline, is-style-flat-pill och/eller anpassade klasser','Preview'=>'Förhandsvisning','This is a preview. The actual style depends on your theme.'=>'Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema.','Generate shortcode'=>'Generera shortcode','Copied'=>'Kopierad','Labels'=>'Etiketter','Label colors'=>'Etikett färger','Label excluding VAT color'=>'Etikett färg exklusive moms','Label including VAT color'=>'Etikett färg inklusive moms','Switch between prices including and excluding VAT'=>'Växla mellan priser inklusive och exklusive moms','Display options'=>'Visningsalternativ','Switch colors'=>'Byt färger','Switch labels'=>'Byt etiketter','Switch aria label'=>'Byt aria label','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Det här tillägget kräver WooCommerce. Installera och aktivera WooCommerce innan du aktiverar detta tillägg.','Tax switch'=>'Momsswitch','Shortcode'=>'Shortcode','Documentation'=>'Dokumentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Momsswitch för WooCommerce är utvecklad av %s. Din betrodda WordPress- och WooCommerce-pluginpartner från Nederländerna.','Tax switch settings'=>'Inställningar för momsswitch','Customize the tax switch settings.'=>'Anpassa inställningarna för momsswitch.','Including VAT text'=>'Text för inklusive moms','Text to append to prices including VAT.'=>'Text som läggs till på priser inklusive moms.','Excluding VAT text'=>'Text för exklusive moms','Text to append to prices excluding VAT.'=>'Text som läggs till på priser exklusive moms.','Where enabled'=>'Där aktiverat','On all pages'=>'På alla sidor','Only on WooCommerce pages'=>'Endast på WooCommerce-sidor','Only on pages displaying prices'=>'Endast på sidor som visar priser','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-sidor inkluderar: produktarkiv/kategorier, enskilda produktsidor och kontosidor.','On all pages where a Tax Switch block/shortcode is placed.'=>'På alla sidor där ett Tax Switch-block/shortcode är placerat.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Döljs på sidor som inte är en del av butiken. Slutar rendera helt.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Döljs på sidor som inte visar några priser. Renderar fortfarande men döljer komponenterna (något långsammare).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Momsswitch för WooCommerce block/kortkoder är alltid dolda på varukorgen och kassasidorna.','Price switching in mini cart'=>'Prisväxling i minivarukorgen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Tillåt kunder att växla mellan priser inklusive och exklusive moms i WooCommerce standardminivarukorg.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Som standard är prisväxling inaktiverad i minivarukorgen för att hålla varukorgens totalsummor konsekventa. Efter att du ändrat den här inställningen bör du tömma minivarukorgen och ladda om sidan för att se det uppdaterade beteendet (markuppen för minivarukorgen cachas).','Shortcode settings'=>'Shortcode-inställningar','Generate a tax switch shortcode.'=>'Generera en momsswitch shortcode.','Tax Switch for WooCommerce'=>'Momsswitch för WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Låt kunder växla mellan priser inklusive och exklusive moms i din WooCommerce-butik.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']]; -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE.po
r3405724 r3460537 3 3 "Project-Id-Version: Tax Switch for WooCommerce\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 202 5-11-29 10:33+0100\n"6 "PO-Revision-Date: 202 5-11-29 10:33+0100\n"5 "POT-Creation-Date: 2026-02-12 15:18+0100\n" 6 "PO-Revision-Date: 2026-02-12 15:18+0100\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" … … 11 11 "Content-Type: text/plain; charset=UTF-8\n" 12 12 "Content-Transfer-Encoding: 8bit\n" 13 "X-Generator: Poedit 3. 7\n"13 "X-Generator: Poedit 3.8\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 53 53 54 54 #: admin/partials/section-wdevs-tax-switch-shortcode.php:57 55 #: block/src/switch/edit.js:6 755 #: block/src/switch/edit.js:68 56 56 msgid "Switch type" 57 57 msgstr "Byt typ" 58 58 59 59 #: admin/partials/section-wdevs-tax-switch-shortcode.php:61 60 #: block/src/switch/edit.js:7 460 #: block/src/switch/edit.js:75 61 61 msgid "Toggle switch" 62 62 msgstr "Switch" 63 63 64 64 #: admin/partials/section-wdevs-tax-switch-shortcode.php:62 65 #: block/src/switch/edit.js:8 165 #: block/src/switch/edit.js:82 66 66 msgid "Buttons" 67 67 msgstr "Knappar" … … 80 80 msgstr "Inline-stil" 81 81 82 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81 83 #: block/src/switch/edit.js:104 82 #: admin/partials/section-wdevs-tax-switch-shortcode.php:75 83 #: includes/class-wdevs-tax-switch-block-switch.php:56 84 msgid "Flat pill" 85 msgstr "Platt pillformad" 86 87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:82 88 #: block/src/switch/edit.js:105 84 89 msgid "Switch color" 85 90 msgstr "Byt färg" 86 91 87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:8 688 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 789 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 890 #: admin/partials/section-wdevs-tax-switch-shortcode.php:1 1991 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 092 #: admin/partials/section-wdevs-tax-switch-shortcode.php:87 93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:98 94 #: admin/partials/section-wdevs-tax-switch-shortcode.php:109 95 #: admin/partials/section-wdevs-tax-switch-shortcode.php:120 96 #: admin/partials/section-wdevs-tax-switch-shortcode.php:131 92 97 msgid "Default" 93 98 msgstr "Standard" 94 99 95 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 296 #: block/src/switch/edit.js:11 5100 #: admin/partials/section-wdevs-tax-switch-shortcode.php:93 101 #: block/src/switch/edit.js:116 97 102 msgid "Switch color checked" 98 103 msgstr "Byt färg markerad" 99 104 100 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 3101 #: block/src/switch/edit.js:12 6105 #: admin/partials/section-wdevs-tax-switch-shortcode.php:104 106 #: block/src/switch/edit.js:127 102 107 msgid "Background color" 103 108 msgstr "Bakgrundsfärg" 104 109 105 #: admin/partials/section-wdevs-tax-switch-shortcode.php:11 4106 #: block/src/switch/edit.js:13 7110 #: admin/partials/section-wdevs-tax-switch-shortcode.php:115 111 #: block/src/switch/edit.js:138 107 112 msgid "Background color checked" 108 113 msgstr "Bakgrundsfärg markerad" 109 114 110 #: admin/partials/section-wdevs-tax-switch-shortcode.php:12 5111 #: block/src/switch/edit.js:14 8115 #: admin/partials/section-wdevs-tax-switch-shortcode.php:126 116 #: block/src/switch/edit.js:149 112 117 msgid "Text color" 113 118 msgstr "Textfärg" 114 119 115 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 6116 #: block/src/label/edit.js:61 block/src/switch/edit.js:16 3120 #: admin/partials/section-wdevs-tax-switch-shortcode.php:137 121 #: block/src/label/edit.js:61 block/src/switch/edit.js:164 117 122 msgid "Including VAT label" 118 123 msgstr "Inkl. moms etikett" 119 124 120 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140 125 #: admin/partials/section-wdevs-tax-switch-shortcode.php:141 126 #: block/src/switch/components/SwitchComponent.js:180 121 127 #: includes/class-wdevs-tax-switch-block-label.php:64 122 128 #: includes/class-wdevs-tax-switch-block-label.php:82 123 #: includes/class-wdevs-tax-switch-compatibility.php:340124 129 #: includes/class-wdevs-tax-switch-woocommerce.php:253 125 #: public/class-wdevs-tax-switch-public.php:150130 #: includes/trait-wdevs-tax-switch-helper.php:458 126 131 msgid "Incl. VAT" 127 132 msgstr "Inkl. moms" 128 133 129 #: admin/partials/section-wdevs-tax-switch-shortcode.php:14 6130 #: block/src/label/edit.js:71 block/src/switch/edit.js:17 3134 #: admin/partials/section-wdevs-tax-switch-shortcode.php:147 135 #: block/src/label/edit.js:71 block/src/switch/edit.js:174 131 136 msgid "Excluding VAT label" 132 137 msgstr "Exkl. moms etikett" 133 138 134 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150 139 #: admin/partials/section-wdevs-tax-switch-shortcode.php:151 140 #: block/src/switch/components/SwitchComponent.js:191 135 141 #: includes/class-wdevs-tax-switch-block-label.php:65 136 142 #: includes/class-wdevs-tax-switch-block-label.php:83 137 #: includes/class-wdevs-tax-switch-compatibility.php:341138 143 #: includes/class-wdevs-tax-switch-woocommerce.php:260 139 #: public/class-wdevs-tax-switch-public.php:151144 #: includes/trait-wdevs-tax-switch-helper.php:461 140 145 msgid "Excl. VAT" 141 146 msgstr "Exkl. moms" 142 147 143 #: admin/partials/section-wdevs-tax-switch-shortcode.php:15 6148 #: admin/partials/section-wdevs-tax-switch-shortcode.php:157 144 149 msgid "CSS classes" 145 150 msgstr "CSS-klasser" 146 151 147 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161 148 msgid "Options: is-style-default, is-style-inline or/and custom classes" 149 msgstr "" 150 "Alternativ: is-style-default, is-style-inline och/eller anpassade klasser" 151 152 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172 152 #: admin/partials/section-wdevs-tax-switch-shortcode.php:162 153 msgid "" 154 "Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom " 155 "classes" 156 msgstr "" 157 "Alternativ: is-style-default, is-style-inline, is-style-flat-pill och/eller " 158 "anpassade klasser" 159 160 #: admin/partials/section-wdevs-tax-switch-shortcode.php:173 153 161 msgid "Preview" 154 162 msgstr "Förhandsvisning" 155 163 156 #: admin/partials/section-wdevs-tax-switch-shortcode.php:17 6164 #: admin/partials/section-wdevs-tax-switch-shortcode.php:177 157 165 msgid "This is a preview. The actual style depends on your theme." 158 166 msgstr "Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema." 159 167 160 #: admin/partials/section-wdevs-tax-switch-shortcode.php:18 2168 #: admin/partials/section-wdevs-tax-switch-shortcode.php:183 161 169 msgid "Generate shortcode" 162 170 msgstr "Generera shortcode" 163 171 164 #: admin/partials/section-wdevs-tax-switch-shortcode.php:20 1172 #: admin/partials/section-wdevs-tax-switch-shortcode.php:202 165 173 msgid "Copied" 166 174 msgstr "Kopierad" … … 182 190 msgstr "Etikett färg inklusive moms" 183 191 184 #: block/src/switch/edit.js:60 192 #: block/src/switch/components/SwitchComponent.js:109 193 msgid "Switch between prices including and excluding VAT" 194 msgstr "Växla mellan priser inklusive och exklusive moms" 195 196 #: block/src/switch/edit.js:61 185 197 msgid "Display options" 186 198 msgstr "Visningsalternativ" 187 199 188 #: block/src/switch/edit.js:9 4200 #: block/src/switch/edit.js:95 189 201 msgid "Switch colors" 190 202 msgstr "Byt färger" 191 203 192 #: block/src/switch/edit.js:15 6204 #: block/src/switch/edit.js:157 193 205 msgid "Switch labels" 194 206 msgstr "Byt etiketter" 207 208 #: block/src/switch/edit.js:184 209 msgid "Switch aria label" 210 msgstr "Byt aria label" 195 211 196 212 #: includes/class-wdevs-tax-switch-activator.php:36 … … 354 370 msgid "https://wijnberg.dev/" 355 371 msgstr "https://wijnberg.dev/" 372 373 #~ msgid "Toggle label text" 374 #~ msgstr "Växelns etiketttext" 375 376 #~ msgid "Text used for the toggle switch aria-label." 377 #~ msgstr "Text som används för växelns aria-etikett." 356 378 357 379 #~ msgid "" -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce.pot
r3405724 r3460537 3 3 msgstr "" 4 4 "Project-Id-Version: Tax Switch for WooCommerce\n" 5 "POT-Creation-Date: 202 5-11-29 10:32+0100\n"5 "POT-Creation-Date: 2026-02-12 15:17+0100\n" 6 6 "PO-Revision-Date: 2024-09-16 10:21+0200\n" 7 7 "Last-Translator: \n" … … 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 13 "X-Generator: Poedit 3. 7\n"13 "X-Generator: Poedit 3.8\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 51 51 52 52 #: admin/partials/section-wdevs-tax-switch-shortcode.php:57 53 #: block/src/switch/edit.js:6 753 #: block/src/switch/edit.js:68 54 54 msgid "Switch type" 55 55 msgstr "" 56 56 57 57 #: admin/partials/section-wdevs-tax-switch-shortcode.php:61 58 #: block/src/switch/edit.js:7 458 #: block/src/switch/edit.js:75 59 59 msgid "Toggle switch" 60 60 msgstr "" 61 61 62 62 #: admin/partials/section-wdevs-tax-switch-shortcode.php:62 63 #: block/src/switch/edit.js:8 163 #: block/src/switch/edit.js:82 64 64 msgid "Buttons" 65 65 msgstr "" … … 78 78 msgstr "" 79 79 80 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81 81 #: block/src/switch/edit.js:104 80 #: admin/partials/section-wdevs-tax-switch-shortcode.php:75 81 #: includes/class-wdevs-tax-switch-block-switch.php:56 82 msgid "Flat pill" 83 msgstr "" 84 85 #: admin/partials/section-wdevs-tax-switch-shortcode.php:82 86 #: block/src/switch/edit.js:105 82 87 msgid "Switch color" 83 88 msgstr "" 84 89 85 #: admin/partials/section-wdevs-tax-switch-shortcode.php:8 686 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 787 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 888 #: admin/partials/section-wdevs-tax-switch-shortcode.php:1 1989 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 090 #: admin/partials/section-wdevs-tax-switch-shortcode.php:87 91 #: admin/partials/section-wdevs-tax-switch-shortcode.php:98 92 #: admin/partials/section-wdevs-tax-switch-shortcode.php:109 93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:120 94 #: admin/partials/section-wdevs-tax-switch-shortcode.php:131 90 95 msgid "Default" 91 96 msgstr "" 92 97 93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:9 294 #: block/src/switch/edit.js:11 598 #: admin/partials/section-wdevs-tax-switch-shortcode.php:93 99 #: block/src/switch/edit.js:116 95 100 msgid "Switch color checked" 96 101 msgstr "" 97 102 98 #: admin/partials/section-wdevs-tax-switch-shortcode.php:10 399 #: block/src/switch/edit.js:12 6103 #: admin/partials/section-wdevs-tax-switch-shortcode.php:104 104 #: block/src/switch/edit.js:127 100 105 msgid "Background color" 101 106 msgstr "" 102 107 103 #: admin/partials/section-wdevs-tax-switch-shortcode.php:11 4104 #: block/src/switch/edit.js:13 7108 #: admin/partials/section-wdevs-tax-switch-shortcode.php:115 109 #: block/src/switch/edit.js:138 105 110 msgid "Background color checked" 106 111 msgstr "" 107 112 108 #: admin/partials/section-wdevs-tax-switch-shortcode.php:12 5109 #: block/src/switch/edit.js:14 8113 #: admin/partials/section-wdevs-tax-switch-shortcode.php:126 114 #: block/src/switch/edit.js:149 110 115 msgid "Text color" 111 116 msgstr "" 112 117 113 #: admin/partials/section-wdevs-tax-switch-shortcode.php:13 6114 #: block/src/label/edit.js:61 block/src/switch/edit.js:16 3118 #: admin/partials/section-wdevs-tax-switch-shortcode.php:137 119 #: block/src/label/edit.js:61 block/src/switch/edit.js:164 115 120 msgid "Including VAT label" 116 121 msgstr "" 117 122 118 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140 123 #: admin/partials/section-wdevs-tax-switch-shortcode.php:141 124 #: block/src/switch/components/SwitchComponent.js:180 119 125 #: includes/class-wdevs-tax-switch-block-label.php:64 120 126 #: includes/class-wdevs-tax-switch-block-label.php:82 121 #: includes/class-wdevs-tax-switch-compatibility.php:340122 127 #: includes/class-wdevs-tax-switch-woocommerce.php:253 123 #: public/class-wdevs-tax-switch-public.php:150128 #: includes/trait-wdevs-tax-switch-helper.php:458 124 129 msgid "Incl. VAT" 125 130 msgstr "" 126 131 127 #: admin/partials/section-wdevs-tax-switch-shortcode.php:14 6128 #: block/src/label/edit.js:71 block/src/switch/edit.js:17 3132 #: admin/partials/section-wdevs-tax-switch-shortcode.php:147 133 #: block/src/label/edit.js:71 block/src/switch/edit.js:174 129 134 msgid "Excluding VAT label" 130 135 msgstr "" 131 136 132 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150 137 #: admin/partials/section-wdevs-tax-switch-shortcode.php:151 138 #: block/src/switch/components/SwitchComponent.js:191 133 139 #: includes/class-wdevs-tax-switch-block-label.php:65 134 140 #: includes/class-wdevs-tax-switch-block-label.php:83 135 #: includes/class-wdevs-tax-switch-compatibility.php:341136 141 #: includes/class-wdevs-tax-switch-woocommerce.php:260 137 #: public/class-wdevs-tax-switch-public.php:151142 #: includes/trait-wdevs-tax-switch-helper.php:461 138 143 msgid "Excl. VAT" 139 144 msgstr "" 140 145 141 #: admin/partials/section-wdevs-tax-switch-shortcode.php:15 6146 #: admin/partials/section-wdevs-tax-switch-shortcode.php:157 142 147 msgid "CSS classes" 143 148 msgstr "" 144 149 145 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161 146 msgid "Options: is-style-default, is-style-inline or/and custom classes" 147 msgstr "" 148 149 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172 150 #: admin/partials/section-wdevs-tax-switch-shortcode.php:162 151 msgid "" 152 "Options: is-style-default, is-style-inline, is-style-flat-pill or/and " 153 "custom classes" 154 msgstr "" 155 156 #: admin/partials/section-wdevs-tax-switch-shortcode.php:173 150 157 msgid "Preview" 151 158 msgstr "" 152 159 153 #: admin/partials/section-wdevs-tax-switch-shortcode.php:17 6160 #: admin/partials/section-wdevs-tax-switch-shortcode.php:177 154 161 msgid "This is a preview. The actual style depends on your theme." 155 162 msgstr "" 156 163 157 #: admin/partials/section-wdevs-tax-switch-shortcode.php:18 2164 #: admin/partials/section-wdevs-tax-switch-shortcode.php:183 158 165 msgid "Generate shortcode" 159 166 msgstr "" 160 167 161 #: admin/partials/section-wdevs-tax-switch-shortcode.php:20 1168 #: admin/partials/section-wdevs-tax-switch-shortcode.php:202 162 169 msgid "Copied" 163 170 msgstr "" … … 179 186 msgstr "" 180 187 181 #: block/src/switch/edit.js:60 188 #: block/src/switch/components/SwitchComponent.js:109 189 msgid "Switch between prices including and excluding VAT" 190 msgstr "" 191 192 #: block/src/switch/edit.js:61 182 193 msgid "Display options" 183 194 msgstr "" 184 195 185 #: block/src/switch/edit.js:9 4196 #: block/src/switch/edit.js:95 186 197 msgid "Switch colors" 187 198 msgstr "" 188 199 189 #: block/src/switch/edit.js:15 6200 #: block/src/switch/edit.js:157 190 201 msgid "Switch labels" 202 msgstr "" 203 204 #: block/src/switch/edit.js:184 205 msgid "Switch aria label" 191 206 msgstr "" 192 207 -
tax-switch-for-woocommerce/trunk/public/class-wdevs-tax-switch-public.php
r3447052 r3460537 96 96 } 97 97 98 if ( $this->should_skip_next_price_wrap() ) { 98 $context = [ 99 'return' => $return, 100 'price' => $price, 101 'args' => $args, 102 'unformatted_price' => $unformatted_price, 103 'original_price' => $original_price, 104 ]; 105 106 if ( $this->should_skip_next_price_wrap( $context ) ) { 99 107 return $return; 100 108 } … … 260 268 * @since 1.6.5 261 269 */ 262 public function should_skip_next_price_wrap() { 263 if ( $this->skip_next_wc_price_wrap ) { 270 public function should_skip_next_price_wrap( array $context = [] ) { 271 $skip = $this->skip_next_wc_price_wrap; 272 273 /** 274 * Allow third-party code to skip the next wc_price() call. 275 * 276 * @since 1.6.9 277 * 278 * @param bool $skip Whether to bypass this filter. 279 * @param array $context Context passed from wrap_wc_price(). 280 * @param Wdevs_Tax_Switch_Public $public Current public class instance. 281 */ 282 $skip = (bool) apply_filters( 'wdevs_tax_switch_skip_next_price_wrap', $skip, $context, $this ); 283 284 if ( $skip ) { 264 285 $this->skip_next_wc_price_wrap = false; 265 286 return true; … … 269 290 } 270 291 292 /** 293 * TODO consider this to be implemented OR deleted 294 * This is for <option> elements with prices included. 295 * $this->loader->add_filter( 'woocommerce_dropdown_variation_attribute_options_html', $plugin_public, 'set_price_texts_for_variation_options', 10, 2 ); 296 * 297 * @param string $html Current dropdown HTML. 298 * @param array $args Arguments passed to the dropdown builder. 299 * @return string Modified or original HTML. 300 * @since 1.6.9 301 */ 302 // public function set_price_texts_for_variation_options( $html, $args ) { 303 // if ( empty( $html ) ) { 304 // return $html; 305 // } 306 // 307 // $price_html = wc_price( 10.01 ); 308 // $price_text = wp_strip_all_tags( $price_html ); 309 // 310 // $decimal_separator = preg_quote( wc_get_price_decimal_separator(), '/' ); 311 // $thousand_separator = preg_quote( wc_get_price_thousand_separator(), '/' ); 312 // 313 // if ( '' === $thousand_separator ) { 314 // $number_pattern = '\d+(?:' . $decimal_separator . '\d+)?'; 315 // } else { 316 // $number_pattern = '\d{1,3}(?:' . $thousand_separator . '\d{3})*(?:' . $decimal_separator . '\d+)?'; 317 // } 318 // 319 // $normalized_price_html = trim( preg_replace( '/\s+/u', ' ', html_entity_decode( $price_html, ENT_QUOTES, 'UTF-8' ) ) ); 320 // $number_matches_html = []; 321 // preg_match( '/\d+(?:[.,\s]\d+)*/u', $normalized_price_html, $number_matches_html, PREG_OFFSET_CAPTURE ); 322 // if ( empty( $number_matches_html ) ) { 323 // $pattern_html = '/' . preg_quote( $normalized_price_html, '/' ) . '/u'; 324 // } else { 325 // $start_html = $number_matches_html[0][1]; 326 // $end_html = $start_html + strlen( $number_matches_html[0][0] ); 327 // $pattern_html = '/' . preg_quote( substr( $normalized_price_html, 0, $start_html ), '/' ) . '(' . $number_pattern . ')' . preg_quote( substr( $normalized_price_html, $end_html ), '/' ) . '/u'; 328 // } 329 // 330 // $normalized_price_text = trim( preg_replace( '/\s+/u', ' ', html_entity_decode( $price_text, ENT_QUOTES, 'UTF-8' ) ) ); 331 // $number_matches_text = []; 332 // preg_match( '/\d+(?:[.,\s]\d+)*/u', $normalized_price_text, $number_matches_text, PREG_OFFSET_CAPTURE ); 333 // if ( empty( $number_matches_text ) ) { 334 // $pattern_text = '/' . preg_quote( $normalized_price_text, '/' ) . '/u'; 335 // } else { 336 // $start_text = $number_matches_text[0][1]; 337 // $end_text = $start_text + strlen( $number_matches_text[0][0] ); 338 // $pattern_text = '/' . preg_quote( substr( $normalized_price_text, 0, $start_text ), '/' ) . '(' . $number_pattern . ')' . preg_quote( substr( $normalized_price_text, $end_text ), '/' ) . '/u'; 339 // } 340 // 341 // $option_pattern = '/<option\b([^>]*)>(.*?)<\/option>/is'; 342 // if ( ! preg_match_all( $option_pattern, $html, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE ) ) { 343 // return $html; 344 // } 345 // 346 // $result = ''; 347 // $last_pos = 0; 348 // foreach ( $matches as $match ) { 349 // $full_match = $match[0][0]; 350 // $start = $match[0][1]; 351 // $result .= substr( $html, $last_pos, $start - $last_pos ); 352 // 353 // $attributes = $match[1][0]; 354 // $label_html = $match[2][0]; 355 // 356 // $normalized_option_html = trim( preg_replace( '/\s+/u', ' ', $label_html ) ); 357 // $plain_label = html_entity_decode( strip_tags( $label_html ), ENT_QUOTES, 'UTF-8' ); 358 // $normalized_option_text = trim( preg_replace( '/\s+/u', ' ', $plain_label ) ); 359 // 360 // $price_matches = []; 361 // if ( preg_match_all( $pattern_html, $normalized_option_html, $found_html, PREG_OFFSET_CAPTURE ) ) { 362 // foreach ( $found_html[0] as $found ) { 363 // $price_matches[] = [ 364 // 'text' => $found[0], 365 // 'start' => $found[1], 366 // 'end' => $found[1] + strlen( $found[0] ), 367 // ]; 368 // } 369 // } 370 // 371 // if ( count( $price_matches ) < 2 && preg_match_all( $pattern_text, $normalized_option_text, $found_text, PREG_OFFSET_CAPTURE ) ) { 372 // foreach ( $found_text[0] as $found ) { 373 // $price_matches[] = [ 374 // 'text' => $found[0], 375 // 'start' => $found[1], 376 // 'end' => $found[1] + strlen( $found[0] ), 377 // ]; 378 // } 379 // } 380 // 381 // if ( count( $price_matches ) < 2 ) { 382 // $result .= $full_match; 383 // $last_pos = $start + strlen( $full_match ); 384 // continue; 385 // } 386 // 387 // $unique = []; 388 // foreach ( $price_matches as $price_match ) { 389 // $key = $price_match['start'] . ':' . $price_match['end']; 390 // if ( ! isset( $unique[ $key ] ) ) { 391 // $unique[ $key ] = $price_match; 392 // } 393 // } 394 // 395 // $price_matches = array_values( $unique ); 396 // $starts = array_column( $price_matches, 'start' ); 397 // array_multisort( $starts, SORT_NUMERIC, $price_matches ); 398 // 399 // if ( count( $price_matches ) < 2 ) { 400 // $result .= $full_match; 401 // $last_pos = $start + strlen( $full_match ); 402 // continue; 403 // } 404 // 405 // $first = $price_matches[0]; 406 // $second = $price_matches[1]; 407 // 408 // $between_first_and_second = substr( $normalized_option_text, $first['end'], $second['start'] - $first['end'] ); 409 // 410 // $primary_label = substr( $normalized_option_text, 0, $second['start'] ) . substr( $normalized_option_text, $second['end'] ); 411 // $alternate_label = substr( $normalized_option_text, 0, $first['start'] ) . $second['text'] . $between_first_and_second . substr( $normalized_option_text, $second['end'] ); 412 // 413 // $primary_label = trim( preg_replace( '/\s+/u', ' ', $primary_label ) ); 414 // $alternate_label = trim( preg_replace( '/\s+/u', ' ', $alternate_label ) ); 415 // 416 // if ( '' === $primary_label || '' === $alternate_label ) { 417 // $result .= $full_match; 418 // $last_pos = $start + strlen( $full_match ); 419 // continue; 420 // } 421 // 422 // $data_attributes = sprintf( 423 // ' data-vat-price-text="%s" data-vat-price-alternate-text="%s"', 424 // esc_attr( $primary_label ), 425 // esc_attr( $alternate_label ) 426 // ); 427 // 428 // $result .= sprintf( 429 // '<option%s%s>%s</option>', 430 // $attributes ? ' ' . trim( $attributes ) : '', 431 // $data_attributes, 432 // esc_html( $primary_label ) 433 // ); 434 // 435 // $last_pos = $start + strlen( $full_match ); 436 // } 437 // 438 // $result .= substr( $html, $last_pos ); 439 // 440 // return $result; 441 // } 442 271 443 } -
tax-switch-for-woocommerce/trunk/wdevs-tax-switch.php
r3455509 r3460537 17 17 * Plugin URI: https://wijnberg.dev 18 18 * Description: Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store. 19 * Version: 1.6. 819 * Version: 1.6.9 20 20 * Author: Wijnberg Developments 21 21 * Author URI: https://wijnberg.dev/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.6. 8' );43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.6.9' ); 44 44 45 45 /**
Note: See TracChangeset
for help on using the changeset viewer.