• Resolved Nick name

    (@gr0b1)


    View post on imgur.com

    wp-performance-pack/modules/l10n_improvements/class.wppp_mo_dynamic.php
    Line 562
    Fixes notice for undefined nplurals

    
    if ( $t !== false ) {
        $ts = isset($this->_nplurals) ? explode( self::PLURAL_SEP, $t, $this->_nplurals ) : null;
        $i = $this->gettext_select_plural_form( $count );
        if ( $ts && isset( $ts[ $i ] ) ) {
            return $ts[ $i ];
        } else { 
            return $default;
        }
    } else {
        $this->translations[$s] = $singular . self::PLURAL_SEP . $plural;
        $this->modified = true;
        return $default;
    }
    
    • This topic was modified 4 years, 11 months ago by Nick name.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Nick name

    (@gr0b1)

    
    if ( $t !== false ) {
    	$ts = isset($this->_nplurals) ? explode( self::PLURAL_SEP, $t, $this->_nplurals ) : null;
    	if(!$ts) return $default;
    	$i = $this->gettext_select_plural_form( $count );
    	if ( isset( $ts[ $i ] ) ) {
    		return $ts[ $i ];
    	} else { 
    		return $default;
    	}
    } else {
    	$this->translations[$s] = $singular . self::PLURAL_SEP . $plural;
    	$this->modified = true;
    	return $default;
    }
    

    Having this error also. Same here, if you have a public Github I’m happy to contribute.

    Plugin Author Bjoern

    (@greencp)

    Thanks for pointing it out. I’ll integrate the fix in the next release.

    Plugin Author Bjoern

    (@greencp)

    The fix is integrated into 2.3.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘More Fixes for alternative mo mode’ is closed to new replies.