Changeset 3788916
- Timestamp:
- 11/07/2026 01:30:13 AM (less than one hour ago)
- Location:
- sourcecrate-post-purchase-survey
- Files:
-
- 4 added
- 16 edited
- 1 copied
-
tags/1.1.1 (copied) (copied from sourcecrate-post-purchase-survey/trunk )
-
tags/1.1.1/CHANGELOG.md (modified) (1 diff)
-
tags/1.1.1/includes/class-scps-checkout.php (modified) (3 diffs)
-
tags/1.1.1/includes/class-scps-frontend.php (modified) (2 diffs)
-
tags/1.1.1/includes/class-scps-plugin.php (modified) (2 diffs)
-
tags/1.1.1/includes/class-scps-translations.php (added)
-
tags/1.1.1/languages/sourcecrate-post-purchase-survey.pot (modified) (6 diffs)
-
tags/1.1.1/readme.txt (modified) (5 diffs)
-
tags/1.1.1/sourcecrate-post-purchase-survey.php (modified) (2 diffs)
-
tags/1.1.1/uninstall.php (modified) (1 diff)
-
tags/1.1.1/wpml-config.xml (added)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/includes/class-scps-checkout.php (modified) (3 diffs)
-
trunk/includes/class-scps-frontend.php (modified) (2 diffs)
-
trunk/includes/class-scps-plugin.php (modified) (2 diffs)
-
trunk/includes/class-scps-translations.php (added)
-
trunk/languages/sourcecrate-post-purchase-survey.pot (modified) (6 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/sourcecrate-post-purchase-survey.php (modified) (2 diffs)
-
trunk/uninstall.php (modified) (1 diff)
-
trunk/wpml-config.xml (added)
Legend:
- Unmodified
- Added
- Removed
-
sourcecrate-post-purchase-survey/tags/1.1.1/CHANGELOG.md
r3782957 r3788916 1 1 # Changelog 2 3 ## 1.1.1 — 2026-11-06 4 5 - Questions, answers, card title and thank-you message are registered with WPML String Translation and Polylang, and translated on the card and both checkouts. Reports, the order screen and `_scps_attribution` keep the original words. 6 - `wpml-config.xml` keeps `scps_question` out of WPML's post translation. 2 7 3 8 ## 1.1.0 — 2026-11-04 -
sourcecrate-post-purchase-survey/tags/1.1.1/includes/class-scps-checkout.php
r3782957 r3788916 118 118 return; 119 119 } 120 121 $question = SCPS_Translations::translate_question( $question ); 120 122 121 123 $settings = scps_get_settings(); … … 195 197 } 196 198 199 $question = SCPS_Translations::translate_question( $question ); 200 197 201 $settings = scps_get_settings(); 198 202 … … 239 243 } 240 244 245 $question = SCPS_Translations::translate_question( $question ); 246 241 247 if ( ! array_key_exists( $value, $this->get_choices( $question ) ) ) { 242 248 /* translators: %s: the question, e.g. "How did you hear about us?". */ -
sourcecrate-post-purchase-survey/tags/1.1.1/includes/class-scps-frontend.php
r3782957 r3788916 87 87 88 88 foreach ( $questions as &$question ) { 89 $question = SCPS_Translations::translate_question( $question ); 90 89 91 if ( $question['shuffle'] ) { 90 92 shuffle( $question['options'] ); … … 95 97 $this->enqueue_assets( $order ); 96 98 97 $settings = scps_get_settings();99 $settings = SCPS_Translations::translate_settings( scps_get_settings() ); 98 100 99 101 include SCPS_PATH . 'templates/survey-card.php'; -
sourcecrate-post-purchase-survey/tags/1.1.1/includes/class-scps-plugin.php
r3782957 r3788916 98 98 new SCPS_Checkout(); 99 99 new SCPS_Import(); 100 new SCPS_Translations(); 100 101 101 102 if ( is_admin() ) { … … 135 136 require_once SCPS_PATH . 'includes/class-scps-checkout.php'; 136 137 require_once SCPS_PATH . 'includes/class-scps-import.php'; 138 require_once SCPS_PATH . 'includes/class-scps-translations.php'; 137 139 138 140 if ( is_admin() ) { -
sourcecrate-post-purchase-survey/tags/1.1.1/languages/sourcecrate-post-purchase-survey.pot
r3782957 r3788916 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1. 0\n"5 "Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sourcecrate-post-purchase-survey\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-11-0 3T04:58:44+00:00\n"12 "POT-Creation-Date: 2026-11-06T17:17:39+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 65 65 66 66 #: includes/admin/class-scps-admin-builder.php:116 67 #: includes/class-scps-checkout.php:13 768 #: includes/class-scps-checkout.php:20 467 #: includes/class-scps-checkout.php:139 68 #: includes/class-scps-checkout.php:208 69 69 #: templates/survey-card.php:85 70 70 msgid "Choose an answer" … … 311 311 #. translators: 1: current question number, 2: number of questions. 312 312 #: includes/admin/class-scps-admin-builder.php:176 313 #: includes/class-scps-frontend.php:12 5313 #: includes/class-scps-frontend.php:127 314 314 #: templates/survey-card.php:34 315 315 #, php-format … … 1051 1051 1052 1052 #. translators: %s: the question, e.g. "How did you hear about us?". 1053 #: includes/class-scps-checkout.php:24 31053 #: includes/class-scps-checkout.php:249 1054 1054 #, php-format 1055 1055 msgid "Please choose an answer to \"%s\"." 1056 1056 msgstr "" 1057 1057 1058 #: includes/class-scps-frontend.php:12 31058 #: includes/class-scps-frontend.php:125 1059 1059 msgid "Something went wrong. Please try again." 1060 1060 msgstr "" … … 1102 1102 msgstr "" 1103 1103 1104 #: includes/class-scps-plugin.php:17 71104 #: includes/class-scps-plugin.php:179 1105 1105 msgid "SourceCrate requires WooCommerce to be installed and active." 1106 1106 msgstr "" -
sourcecrate-post-purchase-survey/tags/1.1.1/readme.txt
r3782957 r3788916 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 37 37 * **Switching from Where Did You Hear About Us Checkout Field?** Import its answers in one click, with their revenue and order dates, even after you deactivate it. 38 38 * **CSV export** of every answer. 39 * **Multilingual stores:** translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer in every language. 39 40 * **Block and classic checkout**, HPOS compatible. 40 41 * **Private by design:** answers stay in your WordPress database. Nothing is sent anywhere, no account needed. Works with WordPress's personal data export and erasure tools. … … 109 110 Yes. Every string uses the `sourcecrate-post-purchase-survey` text domain and can be translated on translate.wordpress.org. Your own questions and answers are typed in whatever language you like. 110 111 112 = Does it work with WPML or Polylang? = 113 114 Yes. Your questions, answers, card title and thank-you message are registered as strings in the "SourceCrate" group. Translate them in WPML → String Translation or Languages → Translations in Polylang, and buyers see the card and the checkout question in their language. Reports keep one row per answer whatever language the buyer saw. 115 111 116 = Is any data sent to you or a third party? = 112 117 … … 132 137 == Changelog == 133 138 139 = 1.1.1 = 140 * New: translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer across languages. 141 134 142 = 1.1.0 = 135 143 * New: ask "How did you hear about us?" at checkout, on the thank-you page, or at checkout and again after payment if skipped. Works on the block and the classic checkout, optional or required. … … 151 159 == Upgrade Notice == 152 160 161 = 1.1.1 = 162 Translate your survey with WPML or Polylang. 163 153 164 = 1.1.0 = 154 165 Ask at checkout, import from Where Did You Hear About Us Checkout Field, a My Account second chance and a dashboard widget. -
sourcecrate-post-purchase-survey/tags/1.1.1/sourcecrate-post-purchase-survey.php
r3782957 r3788916 4 4 * Plugin URI: https://techzigya.com/sourcecrate 5 5 * Description: Ask buyers how they found you on the thank-you page and see which marketing channels actually bring in revenue. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: @wpmilan 8 8 * Author URI: https://milanc.com.np/ … … 23 23 24 24 if ( ! defined( 'SCPS_VERSION' ) ) { 25 define( 'SCPS_VERSION', '1.1. 0' );25 define( 'SCPS_VERSION', '1.1.1' ); 26 26 } 27 27 -
sourcecrate-post-purchase-survey/tags/1.1.1/uninstall.php
r3782957 r3788916 18 18 delete_option( 'scps_settings' ); 19 19 delete_option( 'scps_import_wccs' ); 20 delete_option( 'scps_wpml_strings_hash' ); 20 21 delete_transient( 'scps_answered_orders' ); 21 22 delete_metadata( 'user', 0, 'scps_review_notice', '', true ); -
sourcecrate-post-purchase-survey/trunk/CHANGELOG.md
r3782957 r3788916 1 1 # Changelog 2 3 ## 1.1.1 — 2026-11-06 4 5 - Questions, answers, card title and thank-you message are registered with WPML String Translation and Polylang, and translated on the card and both checkouts. Reports, the order screen and `_scps_attribution` keep the original words. 6 - `wpml-config.xml` keeps `scps_question` out of WPML's post translation. 2 7 3 8 ## 1.1.0 — 2026-11-04 -
sourcecrate-post-purchase-survey/trunk/includes/class-scps-checkout.php
r3782957 r3788916 118 118 return; 119 119 } 120 121 $question = SCPS_Translations::translate_question( $question ); 120 122 121 123 $settings = scps_get_settings(); … … 195 197 } 196 198 199 $question = SCPS_Translations::translate_question( $question ); 200 197 201 $settings = scps_get_settings(); 198 202 … … 239 243 } 240 244 245 $question = SCPS_Translations::translate_question( $question ); 246 241 247 if ( ! array_key_exists( $value, $this->get_choices( $question ) ) ) { 242 248 /* translators: %s: the question, e.g. "How did you hear about us?". */ -
sourcecrate-post-purchase-survey/trunk/includes/class-scps-frontend.php
r3782957 r3788916 87 87 88 88 foreach ( $questions as &$question ) { 89 $question = SCPS_Translations::translate_question( $question ); 90 89 91 if ( $question['shuffle'] ) { 90 92 shuffle( $question['options'] ); … … 95 97 $this->enqueue_assets( $order ); 96 98 97 $settings = scps_get_settings();99 $settings = SCPS_Translations::translate_settings( scps_get_settings() ); 98 100 99 101 include SCPS_PATH . 'templates/survey-card.php'; -
sourcecrate-post-purchase-survey/trunk/includes/class-scps-plugin.php
r3782957 r3788916 98 98 new SCPS_Checkout(); 99 99 new SCPS_Import(); 100 new SCPS_Translations(); 100 101 101 102 if ( is_admin() ) { … … 135 136 require_once SCPS_PATH . 'includes/class-scps-checkout.php'; 136 137 require_once SCPS_PATH . 'includes/class-scps-import.php'; 138 require_once SCPS_PATH . 'includes/class-scps-translations.php'; 137 139 138 140 if ( is_admin() ) { -
sourcecrate-post-purchase-survey/trunk/languages/sourcecrate-post-purchase-survey.pot
r3782957 r3788916 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1. 0\n"5 "Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sourcecrate-post-purchase-survey\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-11-0 3T04:58:44+00:00\n"12 "POT-Creation-Date: 2026-11-06T17:17:39+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 65 65 66 66 #: includes/admin/class-scps-admin-builder.php:116 67 #: includes/class-scps-checkout.php:13 768 #: includes/class-scps-checkout.php:20 467 #: includes/class-scps-checkout.php:139 68 #: includes/class-scps-checkout.php:208 69 69 #: templates/survey-card.php:85 70 70 msgid "Choose an answer" … … 311 311 #. translators: 1: current question number, 2: number of questions. 312 312 #: includes/admin/class-scps-admin-builder.php:176 313 #: includes/class-scps-frontend.php:12 5313 #: includes/class-scps-frontend.php:127 314 314 #: templates/survey-card.php:34 315 315 #, php-format … … 1051 1051 1052 1052 #. translators: %s: the question, e.g. "How did you hear about us?". 1053 #: includes/class-scps-checkout.php:24 31053 #: includes/class-scps-checkout.php:249 1054 1054 #, php-format 1055 1055 msgid "Please choose an answer to \"%s\"." 1056 1056 msgstr "" 1057 1057 1058 #: includes/class-scps-frontend.php:12 31058 #: includes/class-scps-frontend.php:125 1059 1059 msgid "Something went wrong. Please try again." 1060 1060 msgstr "" … … 1102 1102 msgstr "" 1103 1103 1104 #: includes/class-scps-plugin.php:17 71104 #: includes/class-scps-plugin.php:179 1105 1105 msgid "SourceCrate requires WooCommerce to be installed and active." 1106 1106 msgstr "" -
sourcecrate-post-purchase-survey/trunk/readme.txt
r3782957 r3788916 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 37 37 * **Switching from Where Did You Hear About Us Checkout Field?** Import its answers in one click, with their revenue and order dates, even after you deactivate it. 38 38 * **CSV export** of every answer. 39 * **Multilingual stores:** translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer in every language. 39 40 * **Block and classic checkout**, HPOS compatible. 40 41 * **Private by design:** answers stay in your WordPress database. Nothing is sent anywhere, no account needed. Works with WordPress's personal data export and erasure tools. … … 109 110 Yes. Every string uses the `sourcecrate-post-purchase-survey` text domain and can be translated on translate.wordpress.org. Your own questions and answers are typed in whatever language you like. 110 111 112 = Does it work with WPML or Polylang? = 113 114 Yes. Your questions, answers, card title and thank-you message are registered as strings in the "SourceCrate" group. Translate them in WPML → String Translation or Languages → Translations in Polylang, and buyers see the card and the checkout question in their language. Reports keep one row per answer whatever language the buyer saw. 115 111 116 = Is any data sent to you or a third party? = 112 117 … … 132 137 == Changelog == 133 138 139 = 1.1.1 = 140 * New: translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer across languages. 141 134 142 = 1.1.0 = 135 143 * New: ask "How did you hear about us?" at checkout, on the thank-you page, or at checkout and again after payment if skipped. Works on the block and the classic checkout, optional or required. … … 151 159 == Upgrade Notice == 152 160 161 = 1.1.1 = 162 Translate your survey with WPML or Polylang. 163 153 164 = 1.1.0 = 154 165 Ask at checkout, import from Where Did You Hear About Us Checkout Field, a My Account second chance and a dashboard widget. -
sourcecrate-post-purchase-survey/trunk/sourcecrate-post-purchase-survey.php
r3782957 r3788916 4 4 * Plugin URI: https://techzigya.com/sourcecrate 5 5 * Description: Ask buyers how they found you on the thank-you page and see which marketing channels actually bring in revenue. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: @wpmilan 8 8 * Author URI: https://milanc.com.np/ … … 23 23 24 24 if ( ! defined( 'SCPS_VERSION' ) ) { 25 define( 'SCPS_VERSION', '1.1. 0' );25 define( 'SCPS_VERSION', '1.1.1' ); 26 26 } 27 27 -
sourcecrate-post-purchase-survey/trunk/uninstall.php
r3782957 r3788916 18 18 delete_option( 'scps_settings' ); 19 19 delete_option( 'scps_import_wccs' ); 20 delete_option( 'scps_wpml_strings_hash' ); 20 21 delete_transient( 'scps_answered_orders' ); 21 22 delete_metadata( 'user', 0, 'scps_review_notice', '', true );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)