Changeset 3487037
- Timestamp:
- 03/20/2026 08:38:14 AM (11 days ago)
- Location:
- ecomm-reels
- Files:
-
- 8 added
- 6 edited
- 1 copied
-
tags/4.1.21 (copied) (copied from ecomm-reels/trunk)
-
tags/4.1.21/CHANGELOG.md (modified) (1 diff)
-
tags/4.1.21/ecomm-reels.php (modified) (3 diffs)
-
tags/4.1.21/languages/ecomm-reels-ar_SA-ecomm-reels-block-editor.json (added)
-
tags/4.1.21/languages/ecomm-reels-ar_SA-ecommreels-ecomm-reels-build-script.json (added)
-
tags/4.1.21/languages/ecomm-reels-ar_SA.mo (added)
-
tags/4.1.21/languages/ecomm-reels-ar_SA.po (added)
-
tags/4.1.21/readme.txt (modified) (2 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/ecomm-reels.php (modified) (3 diffs)
-
trunk/languages/ecomm-reels-ar_SA-ecomm-reels-block-editor.json (added)
-
trunk/languages/ecomm-reels-ar_SA-ecommreels-ecomm-reels-build-script.json (added)
-
trunk/languages/ecomm-reels-ar_SA.mo (added)
-
trunk/languages/ecomm-reels-ar_SA.po (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ecomm-reels/tags/4.1.21/CHANGELOG.md
r3485493 r3487037 1 1 # Changelog 2 3 ## [4.1.21](https://github.com/dstudio-asia/reels-wp/compare/v4.1.20...v4.1.21) (2026-03-20) 4 5 6 ### Features 7 8 * add Arabic translation alias support ([af16350](https://github.com/dstudio-asia/reels-wp/commit/af1635045f1e168ea58aa0b50ce0d7f1e9639f03)) 2 9 3 10 ## [4.1.20](https://github.com/dstudio-asia/reels-wp/compare/v4.1.19...v4.1.20) (2026-03-18) -
ecomm-reels/tags/4.1.21/ecomm-reels.php
r3485493 r3487037 3 3 * Plugin Name: ReelsWp - Shoppable Videos & Vertical Reels Carousels 4 4 * Description: Create Insta style reels and stories with ReelsWP and add them anywhere on your WordPress site. Add fast, mobile friendly video grid and carousel layouts to your homepage, blog or news articles, and product pages. 5 * Version: 4.1.2 05 * Version: 4.1.21 6 6 * Requires at least: 5.8 7 7 * Requires PHP: 7.4 … … 20 20 define('ECOMMREELS_ASSETS', plugins_url('/', __FILE__)); 21 21 define('ECOMMREELS_FILE_PREFIX', 'class-'); 22 define('WP_REELS_VER', '4.1.20'); 22 define('WP_REELS_VER', '4.1.21'); 23 24 function ecommreels_get_translation_locale_alias($locale) 25 { 26 if (!is_string($locale) || $locale === '') { 27 return $locale; 28 } 29 30 if ($locale === 'ar' || $locale === 'ary' || strpos($locale, 'ar_') === 0) { 31 return 'ar_SA'; 32 } 33 34 return $locale; 35 } 23 36 24 37 // 1) Composer autoloader (optional, guarded) … … 51 64 }, 1); 52 65 66 add_filter('plugin_locale', function ($locale, $domain) { 67 if ($domain !== 'ecomm-reels') { 68 return $locale; 69 } 70 71 $aliased_locale = ecommreels_get_translation_locale_alias($locale); 72 $translation_file = ECOMMREELS_PATH . 'languages/ecomm-reels-' . $aliased_locale . '.mo'; 73 74 if ($aliased_locale !== $locale && file_exists($translation_file)) { 75 return $aliased_locale; 76 } 77 78 return $locale; 79 }, 10, 2); 80 81 add_filter('load_script_translation_file', function ($file, $handle, $domain) { 82 if ($domain !== 'ecomm-reels' || !$file) { 83 return $file; 84 } 85 86 $locale = determine_locale(); 87 $aliased_locale = ecommreels_get_translation_locale_alias($locale); 88 89 if ($aliased_locale === $locale) { 90 return $file; 91 } 92 93 $aliased_file = str_replace( 94 'ecomm-reels-' . $locale . '-' . $handle . '.json', 95 'ecomm-reels-' . $aliased_locale . '-' . $handle . '.json', 96 $file 97 ); 98 99 if ($aliased_file !== $file && file_exists($aliased_file)) { 100 return $aliased_file; 101 } 102 103 return $file; 104 }, 10, 3); 105 53 106 // Bootstrap the router so it can hook into rest_api_init: 54 107 add_action('plugins_loaded', function () { -
ecomm-reels/tags/4.1.21/readme.txt
r3485493 r3487037 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 4.1.2 07 Stable tag: 4.1.21 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 122 122 == Changelog == 123 123 124 = 4.1.21 - 2026-03-20 = 125 - New: Add Arabic language support. 126 - Tweak: Add Arabic locale alias support for translation loading. 127 124 128 = 4.1.20 - 2026-03-18 = 125 129 - New: Added multilingual support for the feedback modal. -
ecomm-reels/trunk/CHANGELOG.md
r3485493 r3487037 1 1 # Changelog 2 3 ## [4.1.21](https://github.com/dstudio-asia/reels-wp/compare/v4.1.20...v4.1.21) (2026-03-20) 4 5 6 ### Features 7 8 * add Arabic translation alias support ([af16350](https://github.com/dstudio-asia/reels-wp/commit/af1635045f1e168ea58aa0b50ce0d7f1e9639f03)) 2 9 3 10 ## [4.1.20](https://github.com/dstudio-asia/reels-wp/compare/v4.1.19...v4.1.20) (2026-03-18) -
ecomm-reels/trunk/ecomm-reels.php
r3485493 r3487037 3 3 * Plugin Name: ReelsWp - Shoppable Videos & Vertical Reels Carousels 4 4 * Description: Create Insta style reels and stories with ReelsWP and add them anywhere on your WordPress site. Add fast, mobile friendly video grid and carousel layouts to your homepage, blog or news articles, and product pages. 5 * Version: 4.1.2 05 * Version: 4.1.21 6 6 * Requires at least: 5.8 7 7 * Requires PHP: 7.4 … … 20 20 define('ECOMMREELS_ASSETS', plugins_url('/', __FILE__)); 21 21 define('ECOMMREELS_FILE_PREFIX', 'class-'); 22 define('WP_REELS_VER', '4.1.20'); 22 define('WP_REELS_VER', '4.1.21'); 23 24 function ecommreels_get_translation_locale_alias($locale) 25 { 26 if (!is_string($locale) || $locale === '') { 27 return $locale; 28 } 29 30 if ($locale === 'ar' || $locale === 'ary' || strpos($locale, 'ar_') === 0) { 31 return 'ar_SA'; 32 } 33 34 return $locale; 35 } 23 36 24 37 // 1) Composer autoloader (optional, guarded) … … 51 64 }, 1); 52 65 66 add_filter('plugin_locale', function ($locale, $domain) { 67 if ($domain !== 'ecomm-reels') { 68 return $locale; 69 } 70 71 $aliased_locale = ecommreels_get_translation_locale_alias($locale); 72 $translation_file = ECOMMREELS_PATH . 'languages/ecomm-reels-' . $aliased_locale . '.mo'; 73 74 if ($aliased_locale !== $locale && file_exists($translation_file)) { 75 return $aliased_locale; 76 } 77 78 return $locale; 79 }, 10, 2); 80 81 add_filter('load_script_translation_file', function ($file, $handle, $domain) { 82 if ($domain !== 'ecomm-reels' || !$file) { 83 return $file; 84 } 85 86 $locale = determine_locale(); 87 $aliased_locale = ecommreels_get_translation_locale_alias($locale); 88 89 if ($aliased_locale === $locale) { 90 return $file; 91 } 92 93 $aliased_file = str_replace( 94 'ecomm-reels-' . $locale . '-' . $handle . '.json', 95 'ecomm-reels-' . $aliased_locale . '-' . $handle . '.json', 96 $file 97 ); 98 99 if ($aliased_file !== $file && file_exists($aliased_file)) { 100 return $aliased_file; 101 } 102 103 return $file; 104 }, 10, 3); 105 53 106 // Bootstrap the router so it can hook into rest_api_init: 54 107 add_action('plugins_loaded', function () { -
ecomm-reels/trunk/readme.txt
r3485493 r3487037 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 4.1.2 07 Stable tag: 4.1.21 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 122 122 == Changelog == 123 123 124 = 4.1.21 - 2026-03-20 = 125 - New: Add Arabic language support. 126 - Tweak: Add Arabic locale alias support for translation loading. 127 124 128 = 4.1.20 - 2026-03-18 = 125 129 - New: Added multilingual support for the feedback modal.
Note: See TracChangeset
for help on using the changeset viewer.