Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intl - Name missing exception #4636

Closed
John-Betong opened this issue May 2, 2021 · 1 comment
Closed

intl - Name missing exception #4636

John-Betong opened this issue May 2, 2021 · 1 comment

Comments

@John-Betong
Copy link

Solved the following infuriating cryptic message:

File: ./system/Language/Core.php
'missingExtension' => 'The framework needs the following extension(s) installed and loaded: {0}.',

File: ./system/Language/Language.php
`protected function formatMessage($message, array $args = [])
{
if (! $this->intlSupport || $args === [])
{
// John_Betong - ADDED THE FOLLOWING
$message = $args ? $message .= $args[0] : $message;

return $message;
}

if (is_array($message))
{
	foreach ($message as $index => $value)
	{
		$message[$index] = $this->formatMessage($value, $args);
	}

	return $message;
}

return MessageFormatter::formatMessage($this->locale, $message, $args);

}// endfunc
`

@paulbalandan
Copy link
Member

Already fixed by #4549

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants