Plugin Directory

Changeset 3487037


Ignore:
Timestamp:
03/20/2026 08:38:14 AM (11 days ago)
Author:
debuggersstudio
Message:

Update to version 4.1.21 from GitHub

Location:
ecomm-reels
Files:
8 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ecomm-reels/tags/4.1.21/CHANGELOG.md

    r3485493 r3487037  
    11# 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))
    29
    310## [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  
    33 * Plugin Name:       ReelsWp - Shoppable Videos & Vertical Reels Carousels
    44 * 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.20
     5 * Version:           4.1.21
    66 * Requires at least: 5.8
    77 * Requires PHP:      7.4
     
    2020define('ECOMMREELS_ASSETS', plugins_url('/', __FILE__));
    2121define('ECOMMREELS_FILE_PREFIX', 'class-');
    22 define('WP_REELS_VER', '4.1.20');
     22define('WP_REELS_VER', '4.1.21');
     23
     24function 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}
    2336
    2437// 1) Composer autoloader (optional, guarded)
     
    5164}, 1);
    5265
     66add_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
     81add_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
    53106// Bootstrap the router so it can hook into rest_api_init:
    54107add_action('plugins_loaded', function () {
  • ecomm-reels/tags/4.1.21/readme.txt

    r3485493 r3487037  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 4.1.20
     7Stable tag: 4.1.21
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    122122== Changelog ==
    123123
     124= 4.1.21 - 2026-03-20 =
     125- New: Add Arabic language support.
     126- Tweak: Add Arabic locale alias support for translation loading.
     127
    124128= 4.1.20 - 2026-03-18 =
    125129- New: Added multilingual support for the feedback modal.
  • ecomm-reels/trunk/CHANGELOG.md

    r3485493 r3487037  
    11# 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))
    29
    310## [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  
    33 * Plugin Name:       ReelsWp - Shoppable Videos & Vertical Reels Carousels
    44 * 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.20
     5 * Version:           4.1.21
    66 * Requires at least: 5.8
    77 * Requires PHP:      7.4
     
    2020define('ECOMMREELS_ASSETS', plugins_url('/', __FILE__));
    2121define('ECOMMREELS_FILE_PREFIX', 'class-');
    22 define('WP_REELS_VER', '4.1.20');
     22define('WP_REELS_VER', '4.1.21');
     23
     24function 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}
    2336
    2437// 1) Composer autoloader (optional, guarded)
     
    5164}, 1);
    5265
     66add_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
     81add_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
    53106// Bootstrap the router so it can hook into rest_api_init:
    54107add_action('plugins_loaded', function () {
  • ecomm-reels/trunk/readme.txt

    r3485493 r3487037  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 4.1.20
     7Stable tag: 4.1.21
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    122122== Changelog ==
    123123
     124= 4.1.21 - 2026-03-20 =
     125- New: Add Arabic language support.
     126- Tweak: Add Arabic locale alias support for translation loading.
     127
    124128= 4.1.20 - 2026-03-18 =
    125129- New: Added multilingual support for the feedback modal.
Note: See TracChangeset for help on using the changeset viewer.