PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
← All changes | core/ProCompatibility.php +6 -0 3.0.4trunk View file →
@@ -152,8 +152,9 @@
152 152
153 153 // Different messages based on Yatra Pro status
154 154 if ($yatra_pro_status['needs_installation']) {
155 155 $message = sprintf(
156 + /* translators: %s: comma-separated list of legacy Yatra add-on plugin names that now ship with Yatra Pro 2.0. */
156 157 _n(
157 158 'The following plugin has been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. To use these features, you need to install Yatra Pro 2.0.0. <em>Note: Updates for this plugin will only be available in Yatra Pro from now onwards.</em>',
158 159 'The following plugins have been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. To use these features, you need to install Yatra Pro 2.0.0. <em>Note: Updates for these plugins will only be available in Yatra Pro from now onwards.</em>',
159 160 $plugin_count,
@@ -162,8 +163,9 @@
162 163 $plugin_list
163 164 );
164 165 } elseif ($yatra_pro_status['needs_activation']) {
165 166 $message = sprintf(
167 + /* translators: %s: comma-separated list of legacy Yatra add-on plugin names that now ship with Yatra Pro 2.0. */
166 168 _n(
167 169 'The following plugin has been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. Please activate Yatra Pro 2.0.0 to use these features. <em>Note: Updates for this plugin will only be available in Yatra Pro from now onwards.</em>',
168 170 'The following plugins have been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. Please activate Yatra Pro 2.0.0 to use these features. <em>Note: Updates for these plugins will only be available in Yatra Pro from now onwards.</em>',
169 171 $plugin_count,
@@ -172,8 +174,9 @@
172 174 $plugin_list
173 175 );
174 176 } elseif ($yatra_pro_status['needs_upgrade']) {
175 177 $message = sprintf(
178 + /* translators: %s: comma-separated list of legacy Yatra add-on plugin names that now ship with Yatra Pro 2.0. */
176 179 _n(
177 180 'The following plugin has been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. Please upgrade Yatra Pro to version 2.0.0 or higher to use these features. <em>Note: Updates for this plugin will only be available in Yatra Pro from now onwards.</em>',
178 181 'The following plugins have been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. Please upgrade Yatra Pro to version 2.0.0 or higher to use these features. <em>Note: Updates for these plugins will only be available in Yatra Pro from now onwards.</em>',
179 182 $plugin_count,
@@ -182,8 +185,9 @@
182 185 $plugin_list
183 186 );
184 187 } else {
185 188 $message = sprintf(
189 + /* translators: %s: comma-separated list of legacy Yatra add-on plugin names that now ship with Yatra Pro 2.0. */
186 190 _n(
187 191 'The following plugin has been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. Please make sure you have updated Yatra Pro to version 2.0.0, enable the related features, and deactivate this plugin. <em>Note: Updates for this plugin will only be available in Yatra Pro from now onwards.</em>',
188 192 'The following plugins have been integrated into Yatra Pro 2.0.0 and onwards: <strong>%s</strong>. Please make sure you have updated Yatra Pro to version 2.0.0, enable the related features, and deactivate these plugins. <em>Note: Updates for these plugins will only be available in Yatra Pro from now onwards.</em>',
189 193 $plugin_count,
@@ -631,8 +635,9 @@
631 635 }
632 636 }
633 637
634 638 $message = sprintf(
639 + /* translators: %d: number of legacy add-on plugins that were deactivated. */
635 640 __('Successfully deactivated %d plugin(s) and enabled corresponding features in Yatra Pro 2.0.0. The page will reload shortly.', 'yatra'),
636 641 count($deactivated_plugins)
637 642 );
638 643
@@ -703,8 +708,9 @@
703 708 $plugin_file = 'yatra-pro/yatra-pro.php';
704 709 $result = activate_plugin($plugin_file);
705 710
706 711 if (is_wp_error($result)) {
712 + /* translators: %s: WordPress activation error message returned by activate_plugin(). */
707 713 wp_send_json_error(array('message' => sprintf(__('Failed to activate Yatra Pro: %s', 'yatra'), $result->get_error_message())));
708 714 }
709 715
710 716 // Check if activation was successful