From 0fb4cf2a39df90cb2df6ab2a433561ce10c2e6eb Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Fri, 5 Apr 2024 17:10:16 +0300 Subject: [PATCH] ref #73401 Editing the error text Moving a block in settings --- resources/pot/retailcrm-es_ES.pot | 4 +- resources/pot/retailcrm-ru_RU.pot | 4 +- .../class-wc-retailcrm-abstracts-settings.php | 70 +++++++++--------- src/include/class-wc-retailcrm-base.php | 2 +- src/languages/retailcrm-es_ES.mo | Bin 14331 -> 14427 bytes src/languages/retailcrm-ru_RU.mo | Bin 17689 -> 17803 bytes 6 files changed, 40 insertions(+), 40 deletions(-) diff --git a/resources/pot/retailcrm-es_ES.pot b/resources/pot/retailcrm-es_ES.pot index 3623bac..0df73ae 100644 --- a/resources/pot/retailcrm-es_ES.pot +++ b/resources/pot/retailcrm-es_ES.pot @@ -466,5 +466,5 @@ msgstr "Condiciones del tratamiento de datos personales" msgid "Insert the terms and conditions for processing personal data" msgstr "Inserte las condiciones para el tratamiento de datos personales" -msgid "To activate the loyalty program it is necessary to activate the work with coupons!" -msgstr "Para activar el programa de fidelidad es necesario activar el trabajo con cupones" +msgid "To activate the loyalty program it is necessary to activate the 'enable use of coupons option'" +msgstr "Para activar el programa de fidelización es necesario activar la opción 'habilitar uso de cupones'." diff --git a/resources/pot/retailcrm-ru_RU.pot b/resources/pot/retailcrm-ru_RU.pot index c03bb3a..c148d14 100644 --- a/resources/pot/retailcrm-ru_RU.pot +++ b/resources/pot/retailcrm-ru_RU.pot @@ -475,5 +475,5 @@ msgstr "Условия обработки персональных данных" msgid "Insert the terms and conditions for processing personal data" msgstr "Вставьте условия обработки персональных данных" -msgid "To activate the loyalty program it is necessary to activate the work with coupons!" -msgstr "Для активации программы лояльности необходимо активировать работу с купонами!" +msgid "To activate the loyalty program it is necessary to activate the 'enable use of coupons option'" +msgstr "Для активации программы лояльности необходимо активировать опцию 'включить использование купонов'" diff --git a/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php b/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php index 1cf74fd..f96b518 100644 --- a/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php +++ b/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php @@ -391,41 +391,6 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration ]; } - /** - * Loyalty Program - */ - - $this->form_fields[] = [ - 'title' => __('Loyalty program', 'retailcrm'), - 'type' => 'heading', - 'description' => '', - 'id' => 'loyalty_options' - ]; - - $this->form_fields['loyalty'] = [ - 'label' => __('Activate program loyalty', 'retailcrm'), - 'title' => __('Loyalty program', 'retailcrm'), - 'class' => 'checkbox', - 'type' => 'checkbox', - 'description' => __('Enable this setting for activate program loyalty on site', 'retailcrm') - ]; - - $this->form_fields['loyalty_terms'] = [ - 'title' => __('Terms of loyalty program', 'retailcrm'), - 'css' => 'width:400px; height:215px; resize: horizontal;', - 'type' => 'textarea', - 'id' => 'loyalty_terms', - 'placeholder' => __('Insert the terms and conditions of the loyalty program', 'retailcrm') - ]; - - $this->form_fields['loyalty_personal'] = [ - 'title' => __('Conditions of personal data processing', 'retailcrm'), - 'css' => 'width:400px; height:215px; resize: horizontal;', - 'type' => 'textarea', - 'id' => 'loyalty_personal', - 'placeholder' => __('Insert the terms and conditions for processing personal data', 'retailcrm') - ]; - /** * Meta data options */ @@ -617,6 +582,41 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration 'description' => __('WhatsApp chat will be opened with this contact', 'retailcrm') ]; + /** + * Loyalty Program + */ + + $this->form_fields[] = [ + 'title' => __('Loyalty program', 'retailcrm'), + 'type' => 'heading', + 'description' => '', + 'id' => 'loyalty_options' + ]; + + $this->form_fields['loyalty'] = [ + 'label' => __('Activate program loyalty', 'retailcrm'), + 'title' => __('Loyalty program', 'retailcrm'), + 'class' => 'checkbox', + 'type' => 'checkbox', + 'description' => __('Enable this setting for activate program loyalty on site', 'retailcrm') + ]; + + $this->form_fields['loyalty_terms'] = [ + 'title' => __('Terms of loyalty program', 'retailcrm'), + 'css' => 'width:400px; height:215px; resize: horizontal;', + 'type' => 'textarea', + 'id' => 'loyalty_terms', + 'placeholder' => __('Insert the terms and conditions of the loyalty program', 'retailcrm') + ]; + + $this->form_fields['loyalty_personal'] = [ + 'title' => __('Conditions of personal data processing', 'retailcrm'), + 'css' => 'width:400px; height:215px; resize: horizontal;', + 'type' => 'textarea', + 'id' => 'loyalty_personal', + 'placeholder' => __('Insert the terms and conditions for processing personal data', 'retailcrm') + ]; + /** * Generate icml file */ diff --git a/src/include/class-wc-retailcrm-base.php b/src/include/class-wc-retailcrm-base.php index 2d8843b..a81e095 100644 --- a/src/include/class-wc-retailcrm-base.php +++ b/src/include/class-wc-retailcrm-base.php @@ -609,7 +609,7 @@ if (!class_exists('WC_Retailcrm_Base')) { 'coupon_status' => get_option('woocommerce_enable_coupons'), 'translate' => [ 'coupon_warning' => __( - 'To activate the loyalty program it is necessary to activate the work with coupons!', + "To activate the loyalty program it is necessary to activate the 'enable use of coupons option'", 'retailcrm' ) ] diff --git a/src/languages/retailcrm-es_ES.mo b/src/languages/retailcrm-es_ES.mo index b3c3808966eb6d1a91998a795003c84591768229..ff37eac100f20d93e40fcd6fdadfd5181d931c42 100644 GIT binary patch delta 1667 zcmaLXUuct87{~Fav9YGsx@lvlY4zP7n`zf}T6IO!xQZ4L=SX$xZl-V3w{1pAG85TA zXqe&{%2uH&PA?q8KR6YXP$#_-{KqC!)G0#oO2wkW+|5Sk2K)X@u6Ol0?>Q&udCqgr z$&1uT`pj?Ra{XpjR%2F+U!f0=;6yx*uV5bEz)Ls*ALDp@j??h3;&>&C%;I|OX;#aR~i*83T9? zr{EoY2S-tf2c1GfGg0#!oSa!Hjb=KsC1i~XbozA$aTpbF6t$B-Q33swqY8sam(9i3 za5a{rhi_rJIKB^;@%V>9{18V`nYO%b)`1&QJ2;6t zf?rV;yN}xO6KuyZ)Q;aLJ00D6)OZ)FA{m^HyKoWl?FfzSbc~=f{bX(-fm5h6{Rb5= zSYNmkvr(mAi%W3_uE2}-28%x?96b({7K~`gyz|<7KmnWKSj>4SPwqv(Iz3W;`d=?Zi`C z)2U>}Nu{%iR5BcCa-;c=YvxxE4%7t(_cT|v_qmM46BqMI=YN;&bvqM%iLASYl~Yca S=ft(JmwCBlV}7`~t@J-fE!=DX delta 1558 zcmXZcSxD4T6vy#1E=`&`IyqKmH7%N@W-i$#MbbuOqM})Z;RagNSXo(N(}IK+Q7B|Z zL=P1~VBtfHrVm9Ag)I=0v`|qG679W2kbQqRAoIEZ`@i>|bI<)>U)BHh-FOk~FETS{ zg4rb8h(XwhWAFe*<1w6u9XJ}haTGqlID8y<{{g4)9Liz~FcG7$94F#7oP#Z>dABE- z->PUlrK1qDCYyP%8SmnGR3fFU8iADCm9s7{Y*tfuY7mF#;I8=!fQS0QQ z5-CEBZ$MSV-%cZu#s$<_-$w;}f&AHbeiYEdps|>Ydd|gJSb&_KH3kxbT@irRr6bp)4C6}ySraWAgKe$=hf$@E zr>^rc1+{P$s=o=jSauR?@H%RJH`#Y!68e>K9}NX~jv6qC>i>c|>tPH-_gu4an1D(o z8^>TVj>gT%nOZICcAP^c&>65F`7G=+wqr~N_2)aVE6iGs{m4ZycP824Jk*(Q!bNxx zOYjb=n?ZVbZr7>OT||4sH2ITdqJ?r>b3P5nb@tfWJM)}j*Fj(iSw z8g+)-d+4yPitwXBj>fJ}5tT0YUf<5G-o14V nwcaYGGpeVAS diff --git a/src/languages/retailcrm-ru_RU.mo b/src/languages/retailcrm-ru_RU.mo index 0341e33387c73f7bc904900890ac3c24e9b0c13f..6aaec635745737aab7d090c5edb2b1d027a8507b 100644 GIT binary patch delta 1719 zcmaLXSxA&o6u|K_R;HF|mPS_k**2}3m6hd;OGSpXm<25;Og5TiGea}2l0ym^8b#U) znJrKd5uzEUZ4f9#4>R?Um9)?fJ`_O@QPBVN&2ta(yZ3(c-E;1_=kr{>rJ=#n`eBg2 zT10%~MJC`648xI3hT&+8MFS^dI!54n498+jz-^d_Rj9u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