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:
@@ -601,7 +601,7 @@ class L10n
|
||||
* @param int $number number value
|
||||
* @return string
|
||||
*/
|
||||
public function __pn(string $context, string $single, string $plural, int $number): string
|
||||
public function __np(string $context, string $single, string $plural, int $number): string
|
||||
{
|
||||
if ($this->l10n === null) {
|
||||
return $number > 1 ? $plural : $single;
|
||||
|
||||
Reference in New Issue
Block a user