Make WordPress Core


Ignore:
Timestamp:
01/31/2024 09:49:08 PM (2 years ago)
Author:
swissspidy
Message:

I18N: Revert [57386] pending further investigation.

Reverts the change for fallback string lookup due to a performance regression in the bad case scenario.

See #59656.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php

    r57386 r57505  
    200200        $this->assertSame( 'translation0 with context', $controller->translate_plural( array( 'plural0 with context', 'plural1 with context' ), 1, 'context', 'unittest' ) );
    201201        $this->assertSame( 'translation1 with context', $controller->translate_plural( array( 'plural0 with context', 'plural1 with context' ), 2, 'context', 'unittest' ) );
    202 
    203         $this->assertSame( 'Produkt', $controller->translate( 'Product', '', 'unittest' ) );
    204         $this->assertSame( 'Produkt', $controller->translate_plural( array( 'Product', 'Products' ), 1, '', 'unittest' ) );
    205         $this->assertSame( 'Produkte', $controller->translate_plural( array( 'Product', 'Products' ), 2, '', 'unittest' ) );
    206202    }
    207203
Note: See TracChangeset for help on using the changeset viewer.