ucfirst Smarty modifier is deprecated

See https://github.com/smarty-php/smarty/issues/813
This commit is contained in:
Pierre Rudloff 2023-03-21 20:25:47 +01:00
parent 71647158d3
commit 9564764633
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}
/**

View file

@ -18,7 +18,7 @@
{if $supportedLocale->getCountry()}
{$supportedLocale->getCountry()->getEmoji()}
{/if}
{$supportedLocale->getFullName()|ucfirst}
{$supportedLocale->getFullName()}
</a>
</li>
{/if}

View file

@ -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());
}
/**