Changeset 3159591
- Timestamp:
- 09/30/2024 02:04:26 AM (6 months ago)
- Location:
- fluentc-translation
- Files:
-
- 364 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fluentc-translation/trunk/fluentc_wordpress_plugin.php
r3159574 r3159591 7 7 * Plugin URI: https://github.com/fluentc/wordpress-plugin 8 8 * Description: A plugin that enables website owners to easily install the FluentC Translation on their WordPress site. 9 * Version: 1.9. 39 * Version: 1.9.4 10 10 * Author: FluentC 11 11 * Author URI: https://www.fluentc.ai … … 17 17 define( 'FLUENTC_DIR', __DIR__ ); 18 18 define( 'FLUENTC_SLUG', 'fluentc_translation' ); 19 define( 'FLUENTC_TRANSLATION_VERSION', "1.9. 3" );19 define( 'FLUENTC_TRANSLATION_VERSION', "1.9.4" ); 20 20 define( 'FLUENTC_TRANSLATION_PLUGIN_DIR', plugin_dir_path(__FILE__) ); 21 21 define( 'FLUENTC_TRANSLATION_PLUGIN_URL', plugin_dir_url(__FILE__) ); -
fluentc-translation/trunk/readme.txt
r3159574 r3159591 5 5 Requires at least: 4.6 6 6 Tested up to: 6.6.2 7 Stable tag: 1.9. 37 Stable tag: 1.9.4 8 8 Requires PHP: 7.3 9 9 License: GPLv2 or later -
fluentc-translation/trunk/src/actions/class-wordpress.php
r3159410 r3159591 143 143 144 144 if (!$this->should_process_content($block_content)) { 145 do_action('qm/info', 'Content not processed: language code missing or content empty');146 145 return $block_content; 147 146 } … … 155 154 if (!empty($texts_to_translate)) { 156 155 $this->process_translations($texts_to_translate, $entry_map, $entry_skip_map); 157 do_action('qm/info', 'Translations processed');158 } else {159 do_action('qm/info', 'No texts to translate');160 156 } 161 157 … … 244 240 */ 245 241 public function filter_content( $content ) { 246 do_action('qm/info', 'Starting filter_block');247 242 248 243 if (!$this->should_process_content($content)) { … … 261 256 $html = $this->get_processed_html($dom); 262 257 263 do_action('qm/info', 'Finished filter_block');264 258 return $html ?: $content; 265 259 } … … 276 270 public function fluentcFilterTitle($title, $id = null) 277 271 { 278 do_action('qm/info', 'Starting fluentcFilterTitle');279 272 280 273 if (!$this->language_code) { … … 322 315 public function fluentcFilterWidgetText( $text, $instance ) { 323 316 { 324 do_action('qm/info', 'Starting filter_block');325 317 326 318 if (!$this->should_process_content($text)) { … … 339 331 $html = $this->get_processed_html($dom); 340 332 341 do_action('qm/info', 'Finished filter_block');342 333 return $html ?: $text; 343 334 } … … 353 344 public function fluentc_woocommerce_checkout_shortcode_filter( $output, $tag, $attr ){ 354 345 { 355 do_action('qm/info', 'Starting filter_block');356 346 357 347 if (!$this->should_process_content($output)) { … … 370 360 $html = $this->get_processed_html($dom); 371 361 372 do_action('qm/info', 'Finished filter_block');373 362 return $html ?: $output; 374 363 } -
fluentc-translation/trunk/src/models/class-fluentc-links-model.php
r3159410 r3159591 24 24 // Example options initialization: 25 25 return array( 26 'force_lang' => ' 2',26 'force_lang' => '1', 27 27 'hide_default' => true 28 28 // Add more options as needed. -
fluentc-translation/trunk/src/services/class-connect.php
r3153653 r3159591 162 162 // Re-index the array. 163 163 $languages = array_values( $languages ); 164 164 $this->heartbeat($widgetapikey); 165 165 // Return the requested fields or the full language objects. 166 166 return empty( $args['fields'] ) ? $languages : wp_list_pluck( $languages, $args['fields'] );
Note: See TracChangeset
for help on using the changeset viewer.