SprintfFormatter.php (cakephp-4.2.2) | : | SprintfFormatter.php (cakephp-4.2.3) | ||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
* Returns a string with all passed variables interpolated into the original | * Returns a string with all passed variables interpolated into the original | |||
* message. Variables are interpolated using the sprintf format. | * message. Variables are interpolated using the sprintf format. | |||
* | * | |||
* @param string $locale The locale in which the message is presented. | * @param string $locale The locale in which the message is presented. | |||
* @param string $message The message to be translated | * @param string $message The message to be translated | |||
* @param array $tokenValues The list of values to interpolate in the messag e | * @param array $tokenValues The list of values to interpolate in the messag e | |||
* @return string The formatted message | * @return string The formatted message | |||
*/ | */ | |||
public function format(string $locale, string $message, array $tokenValues): string | public function format(string $locale, string $message, array $tokenValues): string | |||
{ | { | |||
unset($tokenValues['_singular']); | ||||
return vsprintf($message, $tokenValues); | return vsprintf($message, $tokenValues); | |||
} | } | |||
} | } | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 0 lines changed or added |