ucfirst Smarty modifier is deprecated
See https://github.com/smarty-php/smarty/issues/813
This commit is contained in:
parent
71647158d3
commit
9564764633
3 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ class Locale
|
|||
*/
|
||||
public function getFullName(): string
|
||||
{
|
||||
return PHPLocale::getDisplayName($this->getIso15897(), $this->getIso15897());
|
||||
return mb_convert_case(PHPLocale::getDisplayName($this->getIso15897(), $this->getIso15897()), MB_CASE_TITLE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{if $supportedLocale->getCountry()}
|
||||
{$supportedLocale->getCountry()->getEmoji()}
|
||||
{/if}
|
||||
{$supportedLocale->getFullName()|ucfirst}
|
||||
{$supportedLocale->getFullName()}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
|
|
@ -54,7 +54,7 @@ class LocaleTest extends ContainerTest
|
|||
*/
|
||||
public function testGetFullName()
|
||||
{
|
||||
$this->assertEquals('français (France)', $this->localeObject->getFullName());
|
||||
$this->assertEquals('Français (France)', $this->localeObject->getFullName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue