Plugin Directory

Changeset 3755836


Ignore:
Timestamp:
10/20/2026 03:01:44 AM (3 hours ago)
Author:
domclic
Message:

1.8.7: translations (pot, po, mo) for 8 locales

Location:
effortless-simple-parallax-carousel/trunk
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • effortless-simple-parallax-carousel/trunk/effortless-simple-parallax-carousel.php

    r3752892 r3755836  
    33 * Plugin Name:       EffortLess Simple Parallax Carousel
    44 * Description:       Adds parallax backgrounds, scroll-triggered text fade-in animations and a swipeable carousel for galleries placed in cover and full-width group blocks.
    5  * Version:           1.8.6
     5 * Version:           1.8.7
    66 * Requires at least: 6.2
    77 * Requires PHP:      7.4
    … …  
    1010 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    1111 * Text Domain:       effortless-simple-parallax-carousel
     12 * Domain Path:       /languages
    1213 * Donate link:       https://id7.dev/donate/
    1314 *
    … …  
    1718defined( 'ABSPATH' ) || exit;
    1819
    19 define( 'ELSPC_VERSION', '1.8.6' );
     20add_action( 'init', 'elspc_load_bundled_translations', 1 );
     21add_action( 'change_locale', 'elspc_load_bundled_translations' );
     22/**
     23 * Load the plugin's bundled translation for the current locale when no language pack exists.
     24 *
     25 * WordPress loads translations from translate.wordpress.org language packs on its own. Until a
     26 * language has an approved pack, the .mo files bundled in /languages are used instead; an
     27 * installed language pack always wins.
     28 */
     29function elspc_load_bundled_translations() {
     30        $domain = 'effortless-simple-parallax-carousel';
     31        $locale = determine_locale();
     32
     33        if ( 'en_US' === $locale ) {
     34                return;
     35        }
     36
     37        $pack = WP_LANG_DIR . '/plugins/' . $domain . '-' . $locale;
     38
     39        if ( file_exists( $pack . '.mo' ) || file_exists( $pack . '.l10n.php' ) ) {
     40                return;
     41        }
     42
     43        $bundled = __DIR__ . '/languages/' . $domain . '-' . $locale . '.mo';
     44
     45        if ( file_exists( $bundled ) ) {
     46                load_textdomain( $domain, $bundled );
     47        }
     48}
     49
     50define( 'ELSPC_VERSION', '1.8.7' );
    2051define( 'ELSPC_DB_VERSION', '1' );
    2152
  • effortless-simple-parallax-carousel/trunk/readme.txt

    r3752892 r3755836  
    66Tested up to: 7.1
    77Requires PHP: 7.4
    8 Stable tag: 1.8.6
     8Stable tag: 1.8.7
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    9898== Changelog ==
    9999
     100= 1.8.7 =
     101* Translation files (.pot, .po, .mo) for Spanish, Traditional Chinese, Korean, French, Japanese, German, Italian and Brazilian Portuguese are included in the `languages` folder.
     102
    100103= 1.8.6 =
    101104* Carousel: clicking or tapping the arrows, dots or slides no longer stops autoplay; it pauses only for a mouse hover or keyboard focus.
Note: See TracChangeset for help on using the changeset viewer.