Language\L10n method name fixes, update Smarty block.t.php
__pn for context plural has now correct name __np Update smarty plugin block.t.php to use __* named gettext methods for all calls, for __n/__np/__/__p calls we fallback to check internal set class on l10n object variable. This will be removed in future calls
This commit is contained in:
@@ -545,7 +545,7 @@ final class CoreLibsLanguageL10nTest extends TestCase
|
||||
} else {
|
||||
$this->assertEquals(
|
||||
$expected,
|
||||
$l10n->__pn($context, $original_single, $original_plural, $n),
|
||||
$l10n->__np($context, $original_single, $original_plural, $n),
|
||||
'assert failed for plural: ' . $n . ' in context: ' . $context
|
||||
);
|
||||
}
|
||||
@@ -967,7 +967,7 @@ final class CoreLibsLanguageL10nTest extends TestCase
|
||||
|
||||
/**
|
||||
* fuctions check
|
||||
* TODO: others d/dn/dp/dpn gettext functions
|
||||
* TODO: others d/dn/dp/dnp gettext functions
|
||||
*
|
||||
* @covers __setlocale
|
||||
* @covers __bindtextdomain
|
||||
|
||||
Reference in New Issue
Block a user